# Unable to add bot into website

**URL:** <https://forum.rasa.com/t/unable-to-add-bot-into-website/51287>\
**Category:** \[Deprecated\] Rasa X Community Edition\
**Created:** [February 11, 2022, 3:25pm UTC](https://forum.rasa.com/t/unable-to-add-bot-into-website/51287 "2022-02-11T15:25:56Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Prem24](https://avatars.discourse-cdn.com/v4/letter/p/e274bd/32.png) [@Prem24](https://forum.rasa.com/u/Prem24)\
**Post date:** [February 11, 2022, 3:25pm UTC](https://forum.rasa.com/t/unable-to-add-bot-into-website/51287/1 "2022-02-11T15:25:56Z")

</div>

Trained RASA X bot in docker-compose. Unable to add my website.

---

<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:** [February 11, 2022, 5:48pm UTC](https://forum.rasa.com/t/unable-to-add-bot-into-website/51287/2 "2022-02-11T17:48:08Z")

</div>

@Prem24 what is your front end (chatbot) for the website?

---

<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:** [February 11, 2022, 10:39pm UTC](https://forum.rasa.com/t/unable-to-add-bot-into-website/51287/3 "2022-02-11T22:39:41Z")

</div>

Welcome to the forum.

I highly suggest you read [How to ask a great question](http://forum.rasa.com/t/how-to-ask-a-great-question/15009) so that you can help us help you.

---

<div class="post-metadata">

**Author:** ![surendra10125](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/surendra10125/32/19419_2.png) [@surendra10125](https://forum.rasa.com/u/surendra10125)\
**Post date:** [February 12, 2022, 5:02am UTC](https://forum.rasa.com/t/unable-to-add-bot-into-website/51287/4 "2022-02-12T05:02:36Z")

</div>

Hi Nik

We are trying to integrate our rasa x chat bot into our website by using [socket.io](http://socket.io) we are unable to get response from bot

docker ps

 ![Screenshot_20220211_185446](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/f/8/f8ad6fb12bd354ee3e02d1404220f81b20b597d7.png)

snippetcode

 ![Screenshot_20220209_225742](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/e/b/eb7b8eb6275a016d75f17ca44d1c52dd1c73fe9c.png)

---

<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:** [February 12, 2022, 7:36am UTC](https://forum.rasa.com/t/unable-to-add-bot-into-website/51287/5 "2022-02-12T07:36:37Z")

</div>

Your second picture shows you did not change `data-websocket-url`. Change it to `http://<server_ip>:5005/webhooks/rest/webhook`.

* * *

Then, to verify the connection, using a tool like Postman, try sending a `POST` request to `http://<server_ip>:5005/webhooks/rest/webhook` with the following format:

```auto
{
    "sender": "Postman",
    "message": "Hello, World!"
}

```

Of course, the two machines (website and Rasa server) need to be connected. Either via LAN, Ethernet, or Internet, but you should be able to ping the website from the Rasa server or vice-versa.

---

<div class="post-metadata">

**Author:** ![surendra10125](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/surendra10125/32/19419_2.png) [@surendra10125](https://forum.rasa.com/u/surendra10125)\
**Post date:** [February 12, 2022, 7:49am UTC](https://forum.rasa.com/t/unable-to-add-bot-into-website/51287/6 "2022-02-12T07:49:26Z")

</div>

Hello Chris

I have tried the method you added but got an error response in the postman

I have modified the request without giving a port number then it worked for me

---

<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:** [February 12, 2022, 7:50am UTC](https://forum.rasa.com/t/unable-to-add-bot-into-website/51287/7 "2022-02-12T07:50:16Z")

</div>

Great 🙂

What about changing the URL in the HTML? (Also don’t put the port there if that’s what worked for you)

---

<div class="post-metadata">

**Author:** ![surendra10125](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/surendra10125/32/19419_2.png) [@surendra10125](https://forum.rasa.com/u/surendra10125)\
**Post date:** [February 12, 2022, 7:53am UTC](https://forum.rasa.com/t/unable-to-add-bot-into-website/51287/8 "2022-02-12T07:53:05Z")

</div>

I have added the same URL in the HTML script and tried but not working

Even I tried adding webhooks/rest/webhook in the HTML script but no use

---

<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:** [February 12, 2022, 8:08am UTC](https://forum.rasa.com/t/unable-to-add-bot-into-website/51287/9 "2022-02-12T08:08:32Z")

</div>

Are your website and chatbot on the same server?

---

<div class="post-metadata">

**Author:** ![surendra10125](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/surendra10125/32/19419_2.png) [@surendra10125](https://forum.rasa.com/u/surendra10125)\
**Post date:** [February 12, 2022, 9:02am UTC](https://forum.rasa.com/t/unable-to-add-bot-into-website/51287/10 "2022-02-12T09:02:29Z")

</div>

No …my website i am running that im my local system and rasa in cloud and we have communication between local system and server

---

<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:** [February 12, 2022, 11:38am UTC](https://forum.rasa.com/t/unable-to-add-bot-into-website/51287/11 "2022-02-12T11:38:11Z")

</div>

@surendra10125 change the IP address with `http://localhost:80` but you required DNS and SSL for socket URL OR you can you ngrok and paste the genrated HTTPs link. Good Luck!

---

<div class="post-metadata">

**Author:** ![surendra10125](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/surendra10125/32/19419_2.png) [@surendra10125](https://forum.rasa.com/u/surendra10125)\
**Post date:** [February 12, 2022, 11:41am UTC](https://forum.rasa.com/t/unable-to-add-bot-into-website/51287/12 "2022-02-12T11:41:45Z")

</div>

Hi nik

can we access the bot without all these? i have gone through documentation after enabling [socket.io](http://socket.io) we can get the data from the bot

---

<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:** [February 12, 2022, 11:44am UTC](https://forum.rasa.com/t/unable-to-add-bot-into-website/51287/13 "2022-02-12T11:44:03Z")

</div>

@surendra10125 Is your bot is working now?

---

<div class="post-metadata">

**Author:** ![surendra10125](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/surendra10125/32/19419_2.png) [@surendra10125](https://forum.rasa.com/u/surendra10125)\
**Post date:** [February 12, 2022, 11:44am UTC](https://forum.rasa.com/t/unable-to-add-bot-into-website/51287/14 "2022-02-12T11:44:56Z")

</div>

Yes nik my bot is working now and also can get the actions also

---

<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:** [February 12, 2022, 11:46am UTC](https://forum.rasa.com/t/unable-to-add-bot-into-website/51287/15 "2022-02-12T11:46:05Z")

</div>

@surendra10125 the suggestions work, can you be specific? its not for me but for othe readers.

---

<div class="post-metadata">

**Author:** ![surendra10125](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/surendra10125/32/19419_2.png) [@surendra10125](https://forum.rasa.com/u/surendra10125)\
**Post date:** [February 12, 2022, 11:48am UTC](https://forum.rasa.com/t/unable-to-add-bot-into-website/51287/16 "2022-02-12T11:48:41Z")

</div>

Nik

I am able to use my bot after login into rasa x UI but I am trying to add my bot to the website so that our team can check

when I have added a snippet in my HTML code my bot is not responding there

---

<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:** [February 12, 2022, 11:55am UTC](https://forum.rasa.com/t/unable-to-add-bot-into-website/51287/17 "2022-02-12T11:55:30Z")

</div>

> [@surendra10125](#):
>
> Yes nik my bot is working now and also can get the actions also

I am asking that your snippet is working on the website? yes or no?

---

<div class="post-metadata">

**Author:** ![surendra10125](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/surendra10125/32/19419_2.png) [@surendra10125](https://forum.rasa.com/u/surendra10125)\
**Post date:** [February 12, 2022, 11:56am UTC](https://forum.rasa.com/t/unable-to-add-bot-into-website/51287/18 "2022-02-12T11:56:00Z")

</div>

yes snippet is working but not able to get data from bot

---

<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:** [February 12, 2022, 11:56am UTC](https://forum.rasa.com/t/unable-to-add-bot-into-website/51287/19 "2022-02-12T11:56:52Z")

</div>

@surendra10125 what method you have used to install rasa x?

---

<div class="post-metadata">

**Author:** ![surendra10125](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/surendra10125/32/19419_2.png) [@surendra10125](https://forum.rasa.com/u/surendra10125)\
**Post date:** [February 12, 2022, 11:57am UTC](https://forum.rasa.com/t/unable-to-add-bot-into-website/51287/20 "2022-02-12T11:57:17Z")

</div>

we have used docker-compose method

I have attached images above

[Next page](https://forum.rasa.com/t/unable-to-add-bot-into-website/51287.md?page=2)
