# Rasa webchat for mulitiple chatbots

**URL:** <https://forum.rasa.com/t/rasa-webchat-for-mulitiple-chatbots/48666>\
**Category:** Rasa Open Source\
**Created:** [October 22, 2021, 8:31am UTC](https://forum.rasa.com/t/rasa-webchat-for-mulitiple-chatbots/48666 "2021-10-22T08:31:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![miner](https://avatars.discourse-cdn.com/v4/letter/m/c67d28/32.png) [@miner](https://forum.rasa.com/u/miner)\
**Post date:** [October 22, 2021, 8:31am UTC](https://forum.rasa.com/t/rasa-webchat-for-mulitiple-chatbots/48666/1 "2021-10-22T08:31:51Z")

</div>

Hi,

I am finding a way to deploy two chatbots (e.g. [http://firstbot.com](http://firstbot.com) / [http://secondbot.com](http://secondbot.com)) by rasa\_webchat ([https://github.com/botfront/rasa-webchat](https://github.com/botfront/rasa-webchat)). Seemingly, I can deploy one of my chatbots by filling out `socketUrl` as depicted below:

```auto
<script>!(function () {
  let e = document.createElement("script"),
    t = document.head || document.getElementsByTagName("head")[0];
  (e.src =
    "https://cdn.jsdelivr.net/npm/rasa-webchat@1.x.x/lib/index.js"),
    // Replace 1.x.x with the version that you want
    (e.async = !0),
    (e.onload = () => {
      window.WebChat.default(
        {
          customData: { language: "en" },
          socketUrl: "https://bf-botfront.development.agents.botfront.cloud",
          // add other props here
        },
        null
      );
    }),
    t.insertBefore(e, t.firstChild);
})();
</script>

```

Is there any way to deploy two chatbots using rasa\_webchat? Seems it won’t work if I add another `socketUrl` . Any help would be greatly appreciated. Thanks!

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [October 22, 2021, 9:35am UTC](https://forum.rasa.com/t/rasa-webchat-for-mulitiple-chatbots/48666/2 "2021-10-22T09:35:15Z")

</div>

@miner Hello, I guess you want to deploy your two bot using single code? Right. Ok But, that can’t be possible I guess. If you have two chatbots means you have two different project for sure, if they are not running on two different server, then you can use two different project code in either bots (importing chatbots); But, I am afraid you can not render two chatbot widgets using two chatbots while using one snippet code.

1. A chatbot → Code → Webchat snippet → Server → Website
2. B chatbot → Code → Webchat snippet → Server → Website

Not possible (I not used) : A chatbot, B chatbot → A+B Code → Webchat snippet → Server (not idle scenario ) → Website

Single project, single rasa Webchat!

Please do discuss if you have any further issue or thoughts

---

<div class="post-metadata">

**Author:** ![miner](https://avatars.discourse-cdn.com/v4/letter/m/c67d28/32.png) [@miner](https://forum.rasa.com/u/miner)\
**Post date:** [October 22, 2021, 9:52am UTC](https://forum.rasa.com/t/rasa-webchat-for-mulitiple-chatbots/48666/3 "2021-10-22T09:52:02Z")

</div>

Well noted. I think so too. Thanks for your answer!!

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [October 22, 2021, 10:07am UTC](https://forum.rasa.com/t/rasa-webchat-for-mulitiple-chatbots/48666/4 "2021-10-22T10:07:43Z")

</div>

@miner No worries! Please close this thread [Rasa webchat for mulitiple chatbots - #2 by nik202](http://forum.rasa.com/t/rasa-webchat-for-mulitiple-chatbots/48666/2) for your reference and for others. 🙂
