# Chat-bot is not working when multiple user uses it

**URL:** <https://forum.rasa.com/t/chat-bot-is-not-working-when-multiple-user-uses-it/40656>\
**Category:** Rasa Open Source\
**Created:** [February 26, 2021, 9:44am UTC](https://forum.rasa.com/t/chat-bot-is-not-working-when-multiple-user-uses-it/40656 "2021-02-26T09:44:57Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![rashmi\_49](https://avatars.discourse-cdn.com/v4/letter/r/ea5d25/32.png) [@rashmi\_49](https://forum.rasa.com/u/rashmi_49)\
**Post date:** [February 26, 2021, 9:44am UTC](https://forum.rasa.com/t/chat-bot-is-not-working-when-multiple-user-uses-it/40656/1 "2021-02-26T09:44:57Z")

</div>

Hello, I have prepare a chat-bot using rasa and i have made sure to complete it with all dependent module as a chat-bot necessarily requires in it. my action server is working fine i guess, as well as i integrated it with a staging web-site also and it is integrated successfully.

It is functionally all good when i use it on my local as the rasa server i developed is on local only but when multiple user tests the functionality of the chat bot , it response in uncertain way. As I have trained it well on interactive mode.

what i presume is that when i deploying it on a website it is not responding as it should be. so please help me in the same.

I am using latest version of rasa i.e 2.3.x

---

<div class="post-metadata">

**Author:** ![snek](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/snek/32/13510_2.png) [@snek](https://forum.rasa.com/u/snek)\
**Post date:** [February 26, 2021, 10:13am UTC](https://forum.rasa.com/t/chat-bot-is-not-working-when-multiple-user-uses-it/40656/2 "2021-02-26T10:13:16Z")

</div>

What is the sender id you are sending to Rasa through your web-integration? Is it different each time?

---

<div class="post-metadata">

**Author:** ![rashmi\_49](https://avatars.discourse-cdn.com/v4/letter/r/ea5d25/32.png) [@rashmi\_49](https://forum.rasa.com/u/rashmi_49)\
**Post date:** [February 26, 2021, 10:25am UTC](https://forum.rasa.com/t/chat-bot-is-not-working-when-multiple-user-uses-it/40656/3 "2021-02-26T10:25:15Z")

</div>

@snek i don’t quite understand what you actually referring because i’am new to rasa and its my first time doing such project. can you explain me a little more how can i check about sender id? attaching the script i added to my html and then i added this script to my final webpage html

 ![html](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/1/14017e1be359a176cad6e06d84c2c89fb7c80b3d.png)

and for integrating the bot to the web i follow this blog

> **[GitHub - scalableminds/chatroom: React-based Chatroom Component for Rasa Stack](https://github.com/scalableminds/chatroom)**
>
> React-based Chatroom Component for Rasa Stack. Contribute to scalableminds/chatroom development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![snek](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/snek/32/13510_2.png) [@snek](https://forum.rasa.com/u/snek)\
**Post date:** [February 26, 2021, 10:41am UTC](https://forum.rasa.com/t/chat-bot-is-not-working-when-multiple-user-uses-it/40656/4 "2021-02-26T10:41:53Z")

</div>

> [@rashmi\_49](#):
>
> @snek i don’t quite understand what you actually referring because i’am new to rasa and its my first time doing such project. can you explain me a little more how can i check about sender id? attaching the script i added to my html and then i added this script to my final webpage html

Sorry! Sure, I can explain. Rasa differentiates whom it’s speaking to using the sender\_id. So I was wondering if the weird behavior was caused by Rasa thinking it’s speaking to the same person when they are actually multiple people (and because they have the same sender\_id, so Rasa thinks they are one person).

I am assuming the integration you are using is sending out unique sender\_ids when new conversations are started.

Could you give some examples of the weird behavior vs how the bot behaves while you test it?

---

<div class="post-metadata">

**Author:** ![rashmi\_49](https://avatars.discourse-cdn.com/v4/letter/r/ea5d25/32.png) [@rashmi\_49](https://forum.rasa.com/u/rashmi_49)\
**Post date:** [February 26, 2021, 10:52am UTC](https://forum.rasa.com/t/chat-bot-is-not-working-when-multiple-user-uses-it/40656/5 "2021-02-26T10:52:40Z")

</div>

@snek Thanks for replying so thoroughly, yeah i can explain it, it behaves weird as in it is not following the story path and responding other utterance for a respective intent and also after breaking the story line its stop responding anything. like no response is being coming from bot’s end. and i’am not sure if i have given any parameter to describe sender id in any file of the model.

---

<div class="post-metadata">

**Author:** ![snek](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/snek/32/13510_2.png) [@snek](https://forum.rasa.com/u/snek)\
**Post date:** [February 26, 2021, 11:03am UTC](https://forum.rasa.com/t/chat-bot-is-not-working-when-multiple-user-uses-it/40656/6 "2021-02-26T11:03:17Z")

</div>

Unfortunately it’s difficult to help if you don’t tell us exactly how the behaviour is strange. Some reasons for strange behaviour could include poorly classifying intents or entities, not having enough stories to correctly predict the next action, etc.

One way to understand why things are happening the way they are is to check the logs while conversations are happening. Could you show us the logs of a problematic conversation?

---

<div class="post-metadata">

**Author:** ![rashmi\_49](https://avatars.discourse-cdn.com/v4/letter/r/ea5d25/32.png) [@rashmi\_49](https://forum.rasa.com/u/rashmi_49)\
**Post date:** [February 26, 2021, 11:51am UTC](https://forum.rasa.com/t/chat-bot-is-not-working-when-multiple-user-uses-it/40656/7 "2021-02-26T11:51:11Z")

</div>

sorry if i’am unable to explain it, but when i’am using it on my local system where my rasa server i’am using with this `rasa run -m models --enable-api --cors "*" --debug` command. and action server in another terminal with `rasa run actions --actions actions -vv` command it is working great , but when i share the web credential to test it , it is not following the correct story line and breaking the story for example if one intent should enable a action to utter something it is enable the form action ,and after a while stop responding at all.
