Azure bot responses to webhook

Viewed 121

Is there a way for bot to send responses to my webhook? Direct-line channel works fine but communication is done via websockets or via polling. I would like to have an option where bot sends responses to my rest api endpoint.

I've tried to create an adapter but in that case I have to manage all the conversations logic and incoming/outgoing messages.

What would be the best solution for this?

ps. I'm using bot composer to create bot.

1 Answers

There is no out-of-box way to additionally send responses to your endpoint with Composer. You can use the Send an HTTP action in composer, but that is for specific and isolated calls.

What would be the best solution for this?

Are you wanting to send all responses to your webhook? or just make calls to your webhook under certain scenarios?

I'm not sure i'm understanding the ask entirely, but if you are just wanting to send responses additionally to your endpoint (not changing the response back to the channel connector and client, etc), you could create middleware. Depending on your specific needs, you might even be able to utilize/inherit/customize the inspection middleware.

Related