Microsoft Bot Service: Sending User Chat Information to a 3rd Party API

Austin 41 Reputation points
2020-07-23T01:01:26.393+00:00

I'm just beginning the research phase of implementing a Chat Bot using Microsoft's Bot Service. I was wondering if it's possible to send general information collected from the chat, such as the user's name, phone number, and email address, to a 3rd party api? If so, can you point me in the direction of where I might learn what's required to do something like that?

Azure AI Bot Service
Azure AI Bot Service
An Azure service that provides an integrated environment for bot development.
752 questions
0 comments No comments
{count} votes

Accepted answer
  1. Showndarya Madhavan 321 Reputation points
    2020-07-23T05:49:11.527+00:00

    Hi @Austin-3185

    One way to achieve this that I know of would be to save the context of the conversation ( Bot Framework State ) to Azure Cosmos DB or Blob storage and have your API listen to the storage. You can chose which property bag you want to store, like UserData or ConversationData or use custom prompts to collect the data from the user.

    This can give you an idea: https://learn.microsoft.com/en-us/azure/bot-service/bot-builder-howto-v4-storage?view=azure-bot-service-4.0

    You can then have an Azure Cosmos DB or Blob Storage function trigger to run your api when there is a new entry in your storage: https://learn.microsoft.com/en-us/azure/azure-functions/functions-create-cosmos-db-triggered-function

    Hope this helps!

    3 people found this answer helpful.

0 additional answers

Sort by: Most helpful