How can I get all the chat history of a bot and the user?

Laura Huico 21 Reputation points
2021-01-27T20:25:23.61+00:00

I created a bot using the bot framework composer and need all the chat history of an user and the bot in a session , how can I get the data? Please help me out in this.

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

Accepted answer
  1. romungi-MSFT 43,696 Reputation points Microsoft Employee
    2021-01-28T07:19:20.053+00:00

    @Laura Huico For a bot created using bot framework you need to enable storage of the conversations to a database like cosmos DB or blob storage to get the chat conversation history. The official documentation details steps to create this configuration for a bot. This is basically creating a app settings file with the details of your storage and referencing then in the bot to store the conversation data.

    Since you have used the composer to create the bot it might have a memory system to store some information about your chat like user profile, information, session data etc, but saving entire chat conversations might be limited at this point of time. A recent thread on how you can use blob storage for basic conversation scenarios is detailed in the thread but scenarios like handover to humans might still need custom code or you can configure cosmos DB and store the data in DB as mentioned by the user in the thread. I hope this helps.


0 additional answers

Sort by: Most helpful