# Multiple agent with single rasa project

**URL:** <https://forum.rasa.com/t/multiple-agent-with-single-rasa-project/15458>\
**Category:** Rasa Open Source\
**Created:** [September 10, 2019, 8:11am UTC](https://forum.rasa.com/t/multiple-agent-with-single-rasa-project/15458 "2019-09-10T08:11:03Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![abhishek1](https://avatars.discourse-cdn.com/v4/letter/a/c89c15/32.png) [@abhishek1](https://forum.rasa.com/u/abhishek1)\
**Post date:** [September 10, 2019, 8:11am UTC](https://forum.rasa.com/t/multiple-agent-with-single-rasa-project/15458/1 "2019-09-10T08:11:03Z")

</div>

Can anyone tell me how to make multiple agent bots with single rasa project. I want to run two bot weather bots and stock market bot at a time with two different user and it should interrupt each other at a time.

Conversation flow should be different

---

<div class="post-metadata">

**Author:** ![ganeshv](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/ganeshv/32/4644_2.png) [@ganeshv](https://forum.rasa.com/u/ganeshv)\
**Post date:** [September 10, 2019, 8:16am UTC](https://forum.rasa.com/t/multiple-agent-with-single-rasa-project/15458/2 "2019-09-10T08:16:13Z")

</div>

Could you give an example of a conversation? Not sure I’m able to picture it correctly.

---

<div class="post-metadata">

**Author:** ![abhishek1](https://avatars.discourse-cdn.com/v4/letter/a/c89c15/32.png) [@abhishek1](https://forum.rasa.com/u/abhishek1)\
**Post date:** [September 10, 2019, 8:37am UTC](https://forum.rasa.com/t/multiple-agent-with-single-rasa-project/15458/3 "2019-09-10T08:37:05Z")

</div>

I want to make two different chatbot with single rasa project? Is it possible ? If no then How can we run rasa server with different port and action.py too with different port

---

<div class="post-metadata">

**Author:** ![Manthan](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/manthan/32/4670_2.png) [@Manthan](https://forum.rasa.com/u/Manthan)\
**Post date:** [September 10, 2019, 8:55am UTC](https://forum.rasa.com/t/multiple-agent-with-single-rasa-project/15458/4 "2019-09-10T08:55:51Z")

</div>

Hello @abhishek1 you can use --port 80 at the time of run like

action server: python3 -m rasa run actions --actions actions --debug --port 5056

Rasa run: sudo python3 -m rasa run --enable-api --cors “\*” --debug --port 80

---

<div class="post-metadata">

**Author:** ![capgos17](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/capgos17/32/3895_2.png) [@capgos17](https://forum.rasa.com/u/capgos17)\
**Post date:** [September 10, 2019, 8:58am UTC](https://forum.rasa.com/t/multiple-agent-with-single-rasa-project/15458/5 "2019-09-10T08:58:52Z")

</div>

run the different bots in different ports

---

<div class="post-metadata">

**Author:** ![abhishek1](https://avatars.discourse-cdn.com/v4/letter/a/c89c15/32.png) [@abhishek1](https://forum.rasa.com/u/abhishek1)\
**Post date:** [September 10, 2019, 9:24am UTC](https://forum.rasa.com/t/multiple-agent-with-single-rasa-project/15458/6 "2019-09-10T09:24:22Z")

</div>

I did it now How can we use different bots agent with single server and port

---

<div class="post-metadata">

**Author:** ![abhishek1](https://avatars.discourse-cdn.com/v4/letter/a/c89c15/32.png) [@abhishek1](https://forum.rasa.com/u/abhishek1)\
**Post date:** [September 10, 2019, 9:26am UTC](https://forum.rasa.com/t/multiple-agent-with-single-rasa-project/15458/7 "2019-09-10T09:26:10Z")

</div>

Can you please tell me How can we run multiple bots with single project Like for bank and hotel two different bot with single rasa project

---

<div class="post-metadata">

**Author:** ![swagat-panda](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/swagat-panda/32/1615_2.png) [@swagat-panda](https://forum.rasa.com/u/swagat-panda)\
**Post date:** [September 10, 2019, 10:19am UTC](https://forum.rasa.com/t/multiple-agent-with-single-rasa-project/15458/8 "2019-09-10T10:19:13Z")

</div>

Ya you can run 2 dialogue model in one server by creating 2 agents and this 2 agents can have different dialogue flow

---

<div class="post-metadata">

**Author:** ![abhishek1](https://avatars.discourse-cdn.com/v4/letter/a/c89c15/32.png) [@abhishek1](https://forum.rasa.com/u/abhishek1)\
**Post date:** [September 10, 2019, 10:49am UTC](https://forum.rasa.com/t/multiple-agent-with-single-rasa-project/15458/9 "2019-09-10T10:49:09Z")

</div>

How can we do that can you pleas show an example

---

<div class="post-metadata">

**Author:** ![cr33dx](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/cr33dx/32/5206_2.png) [@cr33dx](https://forum.rasa.com/u/cr33dx)\
**Post date:** [September 10, 2019, 4:03pm UTC](https://forum.rasa.com/t/multiple-agent-with-single-rasa-project/15458/10 "2019-09-10T16:03:48Z")

</div>

Maybe u can use rasa docker to run 2 different instances of bot.

---

<div class="post-metadata">

**Author:** ![anurags](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/anurags/32/4500_2.png) [@anurags](https://forum.rasa.com/u/anurags)\
**Post date:** [November 28, 2019, 2:09pm UTC](https://forum.rasa.com/t/multiple-agent-with-single-rasa-project/15458/11 "2019-11-28T14:09:25Z")

</div>

Just create separate agents for each model. Use separate tracker\_store objects, separate interpreter objects and separate models of course.

Then write a function that returns the correct agent for your use case.

Like this:

```
agent = Agent.load('./models/dialogue', interpreter=custom_interpreter, action_endpoint=_action_endpoint, tracker_store=custom_tracker_store)

agent2 = Agent.load('./models/dialogue2', interpreter=custom_interpreter2, action_endpoint=_action_endpoint2, tracker_store=custom_tracker_store2)

def foo(integer):
    if integer == 0:
        return agent
    else:
	return agent2

```

Hope this helps if you haven’t figured out already.

---

<div class="post-metadata">

**Author:** ![JoukoSalonen](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/joukosalonen/32/2849_2.png) [@JoukoSalonen](https://forum.rasa.com/u/JoukoSalonen)\
**Post date:** [March 26, 2020, 5:51pm UTC](https://forum.rasa.com/t/multiple-agent-with-single-rasa-project/15458/12 "2020-03-26T17:51:14Z")

</div>

@Abhishek did you succeed in implementing a multi-bot set–up? Would you be willing to share what was your solution?
