chatbot using Direct Line is mixing responses between users
See original GitHub issueScreenshots
Version
4.5.1
Describe the bug
when two users are posing questions to the chatbot using Direct Line, after few questions, the answer of first user’s question is being sent to second user and vice-versa
Steps to reproduce
- Go to ‘…’
- Click on ‘…’
- Scroll down to ‘…’
- See error
Expected behavior
Each user should get response of his own question and not any others
Additional context
[Bug]
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Key concepts in Direct Line API 3.0 - Azure - Microsoft Learn
Using Direct Line API 3.0, a client can send messages to your bot by issuing HTTP POST requests. A client may send a...
Read more >The Complete Guide to Chatbots for Marketing - Sprout Social
In this guide, you'll learn how to effectively use chatbots on your website, social and other marketing channels to streamline your online efforts....
Read more >My Chatbot Companion - a Study of Human-Chatbot ...
In this paper, we aim to bridge this knowledge gap by investigating relationships between humans and social chatbots of a social and affective...
Read more >What is a chatbot + how does it work? - Zendesk
Bots use predefined conversation flows, natural language processing, and/or machine learning to answer questions and guide customers through ...
Read more >azure - Microsoft Chat BOT with multiple BOTs integration
@RajeeshMenoth - Our requirement has each department having individual BOT. We need to create one parent BOT that takes input from user and ......
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
@scch1002 Yes, if the developer does not provide a token through either Web Chat’s props or does not generate a Direct Line token with a user id, then Web Chat will generate a random user id.
https://github.com/microsoft/BotFramework-WebChat/blob/17f406974253eac292637a33f87d6ce07092fb8d/packages/core/src/sagas/connectSaga.js#L40
If the developer uses the same user id whether it is through Web Chat’s props or through the token in multiple conversations, then the conversations will all share the same user data on the bot side. So reusing user ids can cause issues in the conversation.
Closing due to lack of activity