question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Conversation not logging in CosmosDB

See original GitHub issue

I 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:

image

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:14 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
joshgummersallcommented, Mar 16, 2021

@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.

0reactions
hsachinrajcommented, Mar 22, 2021

Thank you so much @joshgummersall and @dmvtech . I will give this a try. Appreciate the support!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found