# How to start conversations for different users via RESTful api simultaneously

**URL:** <https://forum.rasa.com/t/how-to-start-conversations-for-different-users-via-restful-api-simultaneously/48213>\
**Category:** Rasa Open Source\
**Created:** [October 5, 2021, 6:51am UTC](https://forum.rasa.com/t/how-to-start-conversations-for-different-users-via-restful-api-simultaneously/48213 "2021-10-05T06:51:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![arthurchan](https://avatars.discourse-cdn.com/v4/letter/a/5f9b8f/32.png) [@arthurchan](https://forum.rasa.com/u/arthurchan)\
**Post date:** [October 5, 2021, 6:51am UTC](https://forum.rasa.com/t/how-to-start-conversations-for-different-users-via-restful-api-simultaneously/48213/1 "2021-10-05T06:51:12Z")

</div>

I am trying to create RESTful api for my application. In my implementation, I need to make a http call from a web server to rasa server in order to retrieve responses from the bot. I have several questions to ask:

1, In order to distinguish different users, a conversation id is required. How can a http call be make from the web server to get a conversation id at the beginning of the conversation?

2, Is any conversation distinguishable from one another? That is, I can tell which conversation is started by which user according to conversation\_id or sender\_id?

3, What is the maximum concurrent users for rasa server? What I mean concurrent is the number of sessions/conversation the bot handles at a given period, but not concurrent messages at the same time.

Thanks!

---

<div class="post-metadata">

**Author:** ![ChrisRahme](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/chrisrahme/32/15572_2.png) [@ChrisRahme](https://forum.rasa.com/u/ChrisRahme)\
**Post date:** [October 5, 2021, 4:20pm UTC](https://forum.rasa.com/t/how-to-start-conversations-for-different-users-via-restful-api-simultaneously/48213/2 "2021-10-05T16:20:43Z")

</div>

> [@arthurchan](#):
>
> 1, In order to distinguish different users, a conversation id is required. How can a http call be make from the web server to get a conversation id at the beginning of the conversation?

You need to send the ID via REST from your frontend in the format `{sender_id, message}`.

You can generate a unique ID by using, for example, in JavaScript, the `uuidv4()` function like in line 19 [here](https://github.com/ChrisRahme/fyp-webapp/blob/main/assets/js/script_full.js#L19).

> [@arthurchan](#):
>
> 2, Is any conversation distinguishable from one another? That is, I can tell which conversation is started by which user according to conversation\_id or sender\_id?

You decide this.

If you have a login system or any way to identify the same user across different sessions, you can set `sender_id` to be a username, IP address, [localStorage](https://www.w3schools.com/jsref/prop_win_localstorage.asp) information, …

> [@arthurchan](#):
>
> 3, What is the maximum concurrent users for rasa server? What I mean concurrent is the number of sessions/conversation the bot handles at a given period, but not concurrent messages at the same time.

There’s no exact number, but for a default server installation, it’s in the hundreds. And you can always replicate your pods/containers if you need more of them.
