# Multiple simultaneous chat conversation

**URL:** <https://forum.rasa.com/t/multiple-simultaneous-chat-conversation/2335>\
**Category:** Rasa Open Source\
**Created:** [October 31, 2018, 10:29am UTC](https://forum.rasa.com/t/multiple-simultaneous-chat-conversation/2335 "2018-10-31T10:29:54Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![neerajb1](https://avatars.discourse-cdn.com/v4/letter/n/90ced4/32.png) [@neerajb1](https://forum.rasa.com/u/neerajb1)\
**Post date:** [October 31, 2018, 10:29am UTC](https://forum.rasa.com/t/multiple-simultaneous-chat-conversation/2335/1 "2018-10-31T10:29:54Z")

</div>

Hi All ,

How we can run multiple chat window simultaneous. Currently i can talk one at a time. I used [GitHub - scalableminds/chatroom: React-based Chatroom Component for Rasa Stack](https://github.com/scalableminds/chatroom) for UI.

---

<div class="post-metadata">

**Author:** ![funchmeister](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/funchmeister/32/392_2.png) [@funchmeister](https://forum.rasa.com/u/funchmeister)\
**Post date:** [November 4, 2018, 1:10am UTC](https://forum.rasa.com/t/multiple-simultaneous-chat-conversation/2335/2 "2018-11-04T01:10:54Z")

</div>

From my understanding you need to enable it by using the appropriate tracker store. You should probably look at using the RedisTrackerStore [rasa\_core/tracker\_store.py at 95e430f3a6307b82cac0509f0db9d4472fd46709 · RasaHQ/rasa\_core · GitHub](https://github.com/RasaHQ/rasa_core/blob/95e430f3a6307b82cac0509f0db9d4472fd46709/rasa_core/tracker_store.py#L132)

---

<div class="post-metadata">

**Author:** ![neerajb1](https://avatars.discourse-cdn.com/v4/letter/n/90ced4/32.png) [@neerajb1](https://forum.rasa.com/u/neerajb1)\
**Post date:** [November 5, 2018, 7:20am UTC](https://forum.rasa.com/t/multiple-simultaneous-chat-conversation/2335/3 "2018-11-05T07:20:19Z")

</div>

> [@funchmeister](#):
>
> appropriate

Hi [Aanchan](http://forum.rasa.com/u/funchmeister) , Thanks for your response. I am using mongodbstore , but when one user is asking something other user is on waiting state

---

<div class="post-metadata">

**Author:** ![neerajb1](https://avatars.discourse-cdn.com/v4/letter/n/90ced4/32.png) [@neerajb1](https://forum.rasa.com/u/neerajb1)\
**Post date:** [November 8, 2018, 10:08am UTC](https://forum.rasa.com/t/multiple-simultaneous-chat-conversation/2335/4 "2018-11-08T10:08:04Z")

</div>

> [@neerajb1](#):
>
> simultaneous

Hi All ,

Anyone already worked on live chat please help me. How rasa is handling multiple user.

---

<div class="post-metadata">

**Author:** ![znat](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/znat/32/553_2.png) [@znat](https://forum.rasa.com/u/znat)\
**Post date:** [November 9, 2018, 2:00am UTC](https://forum.rasa.com/t/multiple-simultaneous-chat-conversation/2335/5 "2018-11-09T02:00:52Z")

</div>

I have never used scalableminds/chat but I made recent tests with the [rasa-webchat](https://github.com/mrbot-ai/rasa-webchat), a package we maintain. The socket id is used as the sender id, so handling multiple conversations is not a problem. Using an external tracker store is useful for persistence or horizontally scalable deployments, but not required for simultaneous conversations. The MemoryTrackerstore works just fine.

---

<div class="post-metadata">

**Author:** ![neerajb1](https://avatars.discourse-cdn.com/v4/letter/n/90ced4/32.png) [@neerajb1](https://forum.rasa.com/u/neerajb1)\
**Post date:** [November 9, 2018, 6:25am UTC](https://forum.rasa.com/t/multiple-simultaneous-chat-conversation/2335/6 "2018-11-09T06:25:42Z")

</div>

Hi Nathan ,

Thanks for advice. I will check it

---

<div class="post-metadata">

**Author:** ![neel17](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/neel17/32/298_2.png) [@neel17](https://forum.rasa.com/u/neel17)\
**Post date:** [November 28, 2018, 7:04am UTC](https://forum.rasa.com/t/multiple-simultaneous-chat-conversation/2335/7 "2018-11-28T07:04:36Z")

</div>

Hi @neerajb1,

Kindly share the what you have got on multi chat on the rasa. I am also exploring the same issue. I would share if I find something on this.

Thanks,

Neel

---

<div class="post-metadata">

**Author:** ![hemamalini](https://avatars.discourse-cdn.com/v4/letter/h/7feea3/32.png) [@hemamalini](https://forum.rasa.com/u/hemamalini)\
**Post date:** [June 8, 2019, 3:45pm UTC](https://forum.rasa.com/t/multiple-simultaneous-chat-conversation/2335/8 "2019-06-08T15:45:31Z")

</div>

Hi, I faced the same issue. U can solve by using different sender id

---

<div class="post-metadata">

**Author:** ![hemamalini](https://avatars.discourse-cdn.com/v4/letter/h/7feea3/32.png) [@hemamalini](https://forum.rasa.com/u/hemamalini)\
**Post date:** [June 8, 2019, 3:47pm UTC](https://forum.rasa.com/t/multiple-simultaneous-chat-conversation/2335/9 "2019-06-08T15:47:24Z")

</div>

Use user\_id=tracker.sender\_id to get sender id

---

<div class="post-metadata">

**Author:** ![emover](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/emover/32/3485_2.png) [@emover](https://forum.rasa.com/u/emover)\
**Post date:** [July 1, 2019, 5:57pm UTC](https://forum.rasa.com/t/multiple-simultaneous-chat-conversation/2335/10 "2019-07-01T17:57:25Z")

</div>

HI, What the ConversationID in the conversations/{conversation\_id}/messages would be? If I want to start a new conversation where I can get this before adding messages to the tracker?

---

<div class="post-metadata">

**Author:** ![emover](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/emover/32/3485_2.png) [@emover](https://forum.rasa.com/u/emover)\
**Post date:** [July 2, 2019, 12:27am UTC](https://forum.rasa.com/t/multiple-simultaneous-chat-conversation/2335/11 "2019-07-02T00:27:49Z")

</div>

Figure this out. Just need to generate random conversation id

---

<div class="post-metadata">

**Author:** ![alihejazi](https://avatars.discourse-cdn.com/v4/letter/a/7ba0ec/32.png) [@alihejazi](https://forum.rasa.com/u/alihejazi)\
**Post date:** [July 19, 2019, 4:22pm UTC](https://forum.rasa.com/t/multiple-simultaneous-chat-conversation/2335/12 "2019-07-19T16:22:03Z")

</div>

@znat Can you please explain if possible? I’m quite confused right now as I can only chat to the chatbot from one client. If I load my chatbot UI multiple times, the server still only understands the messages as one client, not as multiple.

Is Rasa multithreaded? How do I get the server to deal with multiple, simultaneous clients?

Any help is hugely appreciated. Thanks!

---

<div class="post-metadata">

**Author:** ![kabeer](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/kabeer/32/5310_2.png) [@kabeer](https://forum.rasa.com/u/kabeer)\
**Post date:** [November 28, 2019, 8:10am UTC](https://forum.rasa.com/t/multiple-simultaneous-chat-conversation/2335/13 "2019-11-28T08:10:20Z")

</div>

@hemamalini, In which function we need use this `user_id=tracker.sender_id` ? Actually i am initiating a conversation from my custom web page using rest api.

```
url: "http://localhost:5005/webhooks/rest/webhook",
	contentType:"application/json; charset=utf-8",
	type:"POST",
	data:
		JSON.stringify({
			"sender":"{conversation_id}",// Here we need to pass conversation id. ( May be we can generate a random number and pass it, right?)
			"message":userMsg
		}), 

```

still its not clear for me. If you have any sample please provide, that will be very helpfull.

---

<div class="post-metadata">

**Author:** ![kabeer](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/kabeer/32/5310_2.png) [@kabeer](https://forum.rasa.com/u/kabeer)\
**Post date:** [November 28, 2019, 8:13am UTC](https://forum.rasa.com/t/multiple-simultaneous-chat-conversation/2335/14 "2019-11-28T08:13:10Z")

</div>

@alihejazi did you get any solution?

---

<div class="post-metadata">

**Author:** ![rashmi.metri](https://avatars.discourse-cdn.com/v4/letter/r/f9ae1b/32.png) [@rashmi.metri](https://forum.rasa.com/u/rashmi.metri)\
**Post date:** [February 18, 2020, 12:15pm UTC](https://forum.rasa.com/t/multiple-simultaneous-chat-conversation/2335/15 "2020-02-18T12:15:45Z")

</div>

Anyone with the solution for this ? Is it on git ? Thanks for your help in advance!
