Conversation not logging in CosmosDB
See original GitHub issueI am a newbie using the Bot Composer. I am trying to log conversation of the bot in CosmosDB. Here is how I have setup the CosmosDB settings in the Bot Composer Publish Profile:
"cosmosDb": {
"cosmosDBEndpoint": "https://dhsjhksahjks.documents.azure.com:443/",
"authKey": "lkasjlaslkjsla==",
"databaseId": "botstate-db",
"containerId": "botstate-container",
"collectionId": "botstate-collection"
},
"blobStorage": {
"connectionString": "dnskshjkshsjkhsdajk==",
"container": "transcripts",
"name": "himalayabot"
},
I ran the bot in both local emulator and on Web chat from the Azure Portal. But no conversation is getting captured in comosDB. Are there any additional steps that needs to be done to achieve this? is there documentation that has instructions to do this from Composer (not from SDK)?
I am using Bot Composer version 1.3.1 on MacOS and I use Edge browser.
Here is the screenshot of my CosmosDB:
Issue Analytics
- State:
- Created 3 years ago
- Comments:14 (9 by maintainers)
Top Results From Across the Web
Logging Conversations to cosmos · Issue #2339 - GitHub
Can we log all the conversations of the bots developed in the Composer? -- I am trying to store all the conversations which...
Read more >Bot conversation history with Azure Cosmos DB
If you run your bot and open your Cosmos DB service on Azure Portal, you can see all stored documents (clicking on Data...
Read more >Log the conversation to Azure CosmosDB with nodejs
I created a custom logger to do this. This is implemented in index.js via TranscriptLoggerMiddleware (part of botbuilderlibrary).
Read more >Azure Cosmos DB Intra-account container copy for SQL and ...
Welcome back to Azure Cosmos DB Live TV. This week we provide a previously recorded conversation between your host Mark Brown and Shweta ......
Read more >Diagnosing Azure Cosmos DB High Resource Unit Spikes | Blog
Implementing Log Analytics on Azure Cosmos DB Diagnostic Logs ... If you do not want to set up LogAnalytics then you could stop...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@hsachinraj and @dmvtech we are in the process of writing v2 of the Javascript runtime. Unfortunately, this is taking precedence over changes to the existing preview runtime. You could certainly modify your Node.js runtime to create a transcript logger middleware on the adapter. I put together a diff here that you should be able to follow to get something working. You will need to “eject” your runtime and modify source code files, but that will unblock you for the time being.
Thank you so much @joshgummersall and @dmvtech . I will give this a try. Appreciate the support!