azurebotframeworkazure-bot-service

Get chatbot message logs from Azure bot


I build a chatbot with MS Bot Framework composer and published it on Azure. I embedded the bot in a webpage. When I tested the bot with the emulator, I could see a log of all the messages that were sent back and forth between the user and the bot. I need a log file of all the messages while the bot is hosted on Azure.

I also activated Azure Insights. But I couldn't find a tool to extract all the messages from the conversations with the bot.


Solution

  • Since you're using Composer, the easy built in way is to just setup blob storage and configure transcript logging in the bots settings:

    {
      "runtimeSettings": {
        "features": {
          "blobTranscript": {
            "connectionString": "<CONNECTIONSTRING>",
            "containerName": "<CONTAINERNAME>"
          }
        }
      }
    }