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.

chatbot using Direct Line is mixing responses between users

See original GitHub issue

Screenshots

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

  1. Go to ‘…’
  2. Click on ‘…’
  3. Scroll down to ‘…’
  4. See error

Expected behavior

Each user should get response of his own question and not any others

Additional context

[Bug]

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
tdurnfordcommented, Feb 12, 2020

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

0reactions
v-kydelacommented, Feb 19, 2020

Closing due to lack of activity

Read more comments on GitHub >

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

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