# Rasa Webchat Integration

**URL:** <https://forum.rasa.com/t/rasa-webchat-integration/19930>\
**Category:** Tutorials, Resources & Videos\
**Tags:** webchat, contribution\
**Created:** [October 17, 2019, 4:09am UTC](https://forum.rasa.com/t/rasa-webchat-integration/19930 "2019-10-17T04:09:20Z")\
**Posts on this page:** 20\
**Page:** 5

<div class="post-metadata">

**Author:** ![Kejender](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/kejender/32/1243_2.png) [@Kejender](https://forum.rasa.com/u/Kejender)\
**Post date:** [April 22, 2020, 7:29am UTC](https://forum.rasa.com/t/rasa-webchat-integration/19930/84 "2020-04-22T07:29:00Z")

</div>

I think I know what the problem is. I’m serving the Webchat app with Apache. It is probably not allowing access to Rasa server. I’m trying to find out how to configure it.

Any alternative server suggestions are welcome! Also if you find anything wrong with the Rasa server logs, please reply…

---

<div class="post-metadata">

**Author:** ![Kejender](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/kejender/32/1243_2.png) [@Kejender](https://forum.rasa.com/u/Kejender)\
**Post date:** [April 22, 2020, 5:01pm UTC](https://forum.rasa.com/t/rasa-webchat-integration/19930/85 "2020-04-22T17:01:25Z")

</div>

I guess Apache is not the problem: I tested the app with my laptop’s Apache and it worked. There should not be any special configurations there.

---

<div class="post-metadata">

**Author:** ![lluchini](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/lluchini/32/7609_2.png) [@lluchini](https://forum.rasa.com/u/lluchini)\
**Post date:** [April 22, 2020, 10:36pm UTC](https://forum.rasa.com/t/rasa-webchat-integration/19930/86 "2020-04-22T22:36:31Z")

</div>

Hello @Kejender,

The only line with fail on load is the one below, so I’ll plot the answer on it.

> [@Kejender](#):
>
> Failed to load model for ‘ResponseSelector’.

It says that is the model for the component _ResponseSelector_ so I dug a little and found this link on documentation.

Link: [faqs-response-selector](https://rasa.com/docs/rasa/user-guide/building-assistants/#faqs-response-selector)

Reading the documentation I started to wonder that you configured your **config.yml** to use the _ResponseSelector_ component but didn’t feed the **responses.md** file.

Can you check the items above and if it’s not any of them reply with all your configs files?

Cya!

---

<div class="post-metadata">

**Author:** ![Kejender](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/kejender/32/1243_2.png) [@Kejender](https://forum.rasa.com/u/Kejender)\
**Post date:** [April 23, 2020, 12:09pm UTC](https://forum.rasa.com/t/rasa-webchat-integration/19930/87 "2020-04-23T12:09:31Z")

</div>

Hi, thanks. I removed the ResponseSelector and that error is not coming any longer. This is the initial “moodbot”, created with rasa init. The problem still persists. I still suspect it is related to Apache. I have been checking the .conf files in both servers but they seem similar.

---

<div class="post-metadata">

**Author:** ![lluchini](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/lluchini/32/7609_2.png) [@lluchini](https://forum.rasa.com/u/lluchini)\
**Post date:** [April 23, 2020, 3:14pm UTC](https://forum.rasa.com/t/rasa-webchat-integration/19930/88 "2020-04-23T15:14:20Z")

</div>

@Kejender,

1o. You’re welcome!

2o. Don’t you have a registry of the attempts anywhere? (rasa, apache, OS logs, firewall, proxy and etc.)

Any additional information can help us to help you… 😁

---

<div class="post-metadata">

**Author:** ![Kejender](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/kejender/32/1243_2.png) [@Kejender](https://forum.rasa.com/u/Kejender)\
**Post date:** [April 23, 2020, 6:09pm UTC](https://forum.rasa.com/t/rasa-webchat-integration/19930/89 "2020-04-23T18:09:41Z")

</div>

I may have a solution coming up, let’s see tomorrow…

---

<div class="post-metadata">

**Author:** ![lluchini](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/lluchini/32/7609_2.png) [@lluchini](https://forum.rasa.com/u/lluchini)\
**Post date:** [April 23, 2020, 6:23pm UTC](https://forum.rasa.com/t/rasa-webchat-integration/19930/90 "2020-04-23T18:23:34Z")

</div>

@Kejender

> [@Kejender](#):
>
> I may have a solution coming up, let’s see tomorrow…

Great!!! 😁

Please share with us if it works!

---

<div class="post-metadata">

**Author:** ![Kejender](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/kejender/32/1243_2.png) [@Kejender](https://forum.rasa.com/u/Kejender)\
**Post date:** [May 1, 2020, 3:21pm UTC](https://forum.rasa.com/t/rasa-webchat-integration/19930/91 "2020-05-01T15:21:02Z")

</div>

Hi! Now it is working. I’m afraid I had some misconceptions about networking. I’m still not sure if I fixed it right, feel free to comment…my bot is in my internal network so it should be safe.

First I had to open the port 5005 in my server. Then in WebChat’s configuration, replaced “localhost” with server’s public ip.

---

<div class="post-metadata">

**Author:** ![lluchini](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/lluchini/32/7609_2.png) [@lluchini](https://forum.rasa.com/u/lluchini)\
**Post date:** [May 3, 2020, 11:27pm UTC](https://forum.rasa.com/t/rasa-webchat-integration/19930/92 "2020-05-03T23:27:22Z")

</div>

Hello @Kejender,

glad it worked out!

Please mark your reply as solution.

Cya!

---

<div class="post-metadata">

**Author:** ![tusharm78](https://avatars.discourse-cdn.com/v4/letter/t/b38774/32.png) [@tusharm78](https://forum.rasa.com/u/tusharm78)\
**Post date:** [June 7, 2020, 5:58am UTC](https://forum.rasa.com/t/rasa-webchat-integration/19930/93 "2020-06-07T05:58:11Z")

</div>

Hey buddy…thanks for such an informative tutorial…could you please help me in putting the persistent menu in the header for the webchat widget that is there in botfront or other tutorials…i’ve added the webchat code in my dummy website and there it is a REACT code, so how to bring the persistent menu in header with the options of Clear, Restart, and Close. help wud be much appreciated. thnx

---

<div class="post-metadata">

**Author:** ![lkrishnaprasad](https://avatars.discourse-cdn.com/v4/letter/l/f04885/32.png) [@lkrishnaprasad](https://forum.rasa.com/u/lkrishnaprasad)\
**Post date:** [June 9, 2020, 6:23am UTC](https://forum.rasa.com/t/rasa-webchat-integration/19930/94 "2020-06-09T06:23:05Z")

</div>

@JiteshGaikwad i followed this instructions but i got blank values

---

<div class="post-metadata">

**Author:** ![JiteshGaikwad](https://avatars.discourse-cdn.com/v4/letter/j/77aa72/32.png) [@JiteshGaikwad](https://forum.rasa.com/u/JiteshGaikwad)\
**Post date:** [June 20, 2020, 9:37am UTC](https://forum.rasa.com/t/rasa-webchat-integration/19930/95 "2020-06-20T09:37:40Z")

</div>

@lkrishnaprasad can you show error logs or screenshot?

---

<div class="post-metadata">

**Author:** ![lkrishnaprasad](https://avatars.discourse-cdn.com/v4/letter/l/f04885/32.png) [@lkrishnaprasad](https://forum.rasa.com/u/lkrishnaprasad)\
**Post date:** [June 21, 2020, 4:14am UTC](https://forum.rasa.com/t/rasa-webchat-integration/19930/96 "2020-06-21T04:14:46Z")

</div>

This problem is resolved. Thanks. i had missed some steps you had given. Now its okay.

---

<div class="post-metadata">

**Author:** ![shanrock](https://avatars.discourse-cdn.com/v4/letter/s/3e96dc/32.png) [@shanrock](https://forum.rasa.com/u/shanrock)\
**Post date:** [July 9, 2020, 6:27am UTC](https://forum.rasa.com/t/rasa-webchat-integration/19930/97 "2020-07-09T06:27:47Z")

</div>

Hey @Aashay1. I’m stuck in the same situation. I need to send the userid from my website session data to chatbot and set in my custom action and pass on to the api. How do i do that?

---

<div class="post-metadata">

**Author:** ![shanrock](https://avatars.discourse-cdn.com/v4/letter/s/3e96dc/32.png) [@shanrock](https://forum.rasa.com/u/shanrock)\
**Post date:** [July 9, 2020, 6:29am UTC](https://forum.rasa.com/t/rasa-webchat-integration/19930/98 "2020-07-09T06:29:55Z")

</div>

Were you able to retrieve data from your website to bot using customData and print it?

---

<div class="post-metadata">

**Author:** ![shanrock](https://avatars.discourse-cdn.com/v4/letter/s/3e96dc/32.png) [@shanrock](https://forum.rasa.com/u/shanrock)\
**Post date:** [July 9, 2020, 6:31am UTC](https://forum.rasa.com/t/rasa-webchat-integration/19930/99 "2020-07-09T06:31:39Z")

</div>

@JiteshGaikwad I need help in sending the data in my website session i.e., userId to my api via custom actions using customData.

---

<div class="post-metadata">

**Author:** ![Aashay1](https://avatars.discourse-cdn.com/v4/letter/a/df788c/32.png) [@Aashay1](https://forum.rasa.com/u/Aashay1)\
**Post date:** [July 9, 2020, 6:38am UTC](https://forum.rasa.com/t/rasa-webchat-integration/19930/101 "2020-07-09T06:38:43Z")

</div>

// Or you can replace latest with a specific version WebChat.default.init({ selector: "#webchat", initPayload : '/get\_started{"userID":"163","user\_name":"Aashay"}' , customData:{"userID":"163","user\_name":"Aashay"}, // arbitrary custom data. Stay minimal as this will be added to the socket socketUrl: "http://localhost:5005", socketPath: "/socket.io/", title: "Beehive Bot", subtitle: "I'am still under development", params :{ storage : "session" } })

---

<div class="post-metadata">

**Author:** ![shanrock](https://avatars.discourse-cdn.com/v4/letter/s/3e96dc/32.png) [@shanrock](https://forum.rasa.com/u/shanrock)\
**Post date:** [July 9, 2020, 6:45am UTC](https://forum.rasa.com/t/rasa-webchat-integration/19930/102 "2020-07-09T06:45:01Z")

</div>

Hey do you have a email or something? This work needs more contact than just comments.

---

<div class="post-metadata">

**Author:** ![shanrock](https://avatars.discourse-cdn.com/v4/letter/s/3e96dc/32.png) [@shanrock](https://forum.rasa.com/u/shanrock)\
**Post date:** [July 9, 2020, 6:50am UTC](https://forum.rasa.com/t/rasa-webchat-integration/19930/103 "2020-07-09T06:50:04Z")

</div>

Why you defined UserID twice? Once in payload and once in customData? And also like is there a way where i can pass session data in my website to customdata

---

<div class="post-metadata">

**Author:** ![lkrishnaprasad](https://avatars.discourse-cdn.com/v4/letter/l/f04885/32.png) [@lkrishnaprasad](https://forum.rasa.com/u/lkrishnaprasad)\
**Post date:** [July 9, 2020, 8:18am UTC](https://forum.rasa.com/t/rasa-webchat-integration/19930/104 "2020-07-09T08:18:06Z")

</div>

Yes

[Previous page](https://forum.rasa.com/t/rasa-webchat-integration/19930.md?page=4)

[Next page](https://forum.rasa.com/t/rasa-webchat-integration/19930.md?page=6)
