# Rasa webbot

**URL:** https://forum.rasa.com/t/rasa-webbot/41319
**Category:** Rasa Open Source
**Created:** [March 16, 2021, 2:10am UTC](https://forum.rasa.com/t/rasa-webbot/41319 "2021-03-16T02:10:35Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Pardhu\_555](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/pardhu_555/32/13886_2.png) [@Pardhu\_555](https://forum.rasa.com/u/Pardhu_555)
#### Post date: [March 16, 2021, 2:10am UTC](https://forum.rasa.com/t/rasa-webbot/41319/1 "2021-03-16T02:10:35Z")

</div>

I couldn’t able integrate my rasa chat bot with webchat. I have seen videos and articles but i am not getting

---

<div class="post-metadata">

### Author: ![Horizon733](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/horizon733/32/20855_2.png) [@Horizon733](https://forum.rasa.com/u/Horizon733)
#### Post date: [March 16, 2021, 5:31am UTC](https://forum.rasa.com/t/rasa-webbot/41319/2 "2021-03-16T05:31:33Z")

</div>

Try to integrate with this video as a reference and let me know if this works or not

[![](https://img.youtube.com/vi/eJMT2FovZsM/maxresdefault.jpg "Rasa chatbot website integration | Quick tutorial") ](https://www.youtube.com/watch?v=eJMT2FovZsM)

---

<div class="post-metadata">

### Author: ![tide90](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/tide90/32/13879_2.png) [@tide90](https://forum.rasa.com/u/tide90)
#### Post date: [March 16, 2021, 8:52am UTC](https://forum.rasa.com/t/rasa-webbot/41319/3 "2021-03-16T08:52:13Z")

</div>

Sorry, I followed you video exatcly but my index.html is blank and does not show the chatbot…

---

<div class="post-metadata">

### Author: ![tide90](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/tide90/32/13879_2.png) [@tide90](https://forum.rasa.com/u/tide90)
#### Post date: [March 16, 2021, 8:56am UTC](https://forum.rasa.com/t/rasa-webbot/41319/4 "2021-03-16T08:56:04Z")

</div>

Do you have any other soruces like text or video how to set this up?

---

<div class="post-metadata">

### Author: ![tide90](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/tide90/32/13879_2.png) [@tide90](https://forum.rasa.com/u/tide90)
#### Post date: [March 16, 2021, 10:06am UTC](https://forum.rasa.com/t/rasa-webbot/41319/5 "2021-03-16T10:06:46Z")

</div>

This is is a mess again… There are 50% of the peopel where this works and for the rest it works not…And no one has a solution since 4 month?

[http://forum.rasa.com/search?q=webchat%20order:latest](http://forum.rasa.com/search?q=webchat%20order:latest)

---

<div class="post-metadata">

### Author: ![Horizon733](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/horizon733/32/20855_2.png) [@Horizon733](https://forum.rasa.com/u/Horizon733)
#### Post date: [March 16, 2021, 10:52am UTC](https://forum.rasa.com/t/rasa-webbot/41319/6 "2021-03-16T10:52:24Z")

</div>

Please check if anything comes up in inspect in the console. Look at the image below

 ![Screenshot from 2021-03-16 16-21-11](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/9/9a6d30ba852028c083a8c9ed744147155db5974d.png)

---

<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: [March 16, 2021, 12:24pm UTC](https://forum.rasa.com/t/rasa-webbot/41319/7 "2021-03-16T12:24:20Z")

</div>

hey @tide90 just try the below code and check if it works

```auto
<script>
  !(function () {
    let e = document.createElement("script"),
      t = document.head || document.getElementsByTagName("head")[0];
    (e.src = "https://cdn.jsdelivr.net/npm/rasa-webchat/lib/index.js"),
      (e.async = !0),
      (e.onload = () => {
        window.WebChat.default(
          {
            socketUrl: "http://localhost:5005",
            // add other props here
          },
          null
        );
      }),
      t.insertBefore(e, t.firstChild);
  })();
</script>

```

the main issue lies with the socketUrl if you try to add it like

> "socketUrl: “[http://localhost:5005/socket.io](http://localhost:5005/socket.io)”

it won’t work as the path `/socket.io` is already added in the URL

I hope this helps

Thanks, Jitesh

---

<div class="post-metadata">

### Author: ![tide90](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/tide90/32/13879_2.png) [@tide90](https://forum.rasa.com/u/tide90)
#### Post date: [March 16, 2021, 1:23pm UTC](https://forum.rasa.com/t/rasa-webbot/41319/8 "2021-03-16T13:23:43Z")

</div>

Hey, thanks @JiteshGaikwad what exactly were thhe chnages?

I think I found it. t is an issue with the current rasa version. I will try downgrade it:

> <https://github.com/botfront/rasa-webchat/issues/344>
>
> Rasa 2.3 upgraded to python-socketio version 5.x which is not compatible with JavaScript Socket.IO v1.x & 2.x.
> Need to upgrade the socket.io...

---

<div class="post-metadata">

### Author: ![tide90](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/tide90/32/13879_2.png) [@tide90](https://forum.rasa.com/u/tide90)
#### Post date: [March 16, 2021, 1:25pm UTC](https://forum.rasa.com/t/rasa-webbot/41319/9 "2021-03-16T13:25:05Z")

</div>

What rasa version are you using where it will work? Is 2.2 enough?

---

<div class="post-metadata">

### Author: ![tide90](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/tide90/32/13879_2.png) [@tide90](https://forum.rasa.com/u/tide90)
#### Post date: [March 16, 2021, 1:32pm UTC](https://forum.rasa.com/t/rasa-webbot/41319/10 "2021-03-16T13:32:10Z")

</div>

So it works with rasa version 2.2! SO actually everyone here with this problem can be now be given a solution just as simple as intsalling version 2.2…

---

<div class="post-metadata">

### Author: ![tide90](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/tide90/32/13879_2.png) [@tide90](https://forum.rasa.com/u/tide90)
#### Post date: [March 16, 2021, 1:43pm UTC](https://forum.rasa.com/t/rasa-webbot/41319/11 "2021-03-16T13:43:20Z")

</div>

That is strange. I retrained the model via rasa init for the new version and the ui seems now not working anymore. Before with the trained model from version 2.4 the ui worked:

```
Now I get:

﻿
localhost:5059/socke…polling&t=NWxHCuR:1 Failed to load resource: the server responded with a status of 404 (Not Found)
index.js:125 Error: xhr poll error
at c.i.onError (index.js:19)
at l.<anonymous> (index.js:123)
at l.r.emit (index.js:1)
at l.onError (index.js:123)
at index.js:123
localhost:5059/socke…polling&t=NWxHDCy:1 Failed to load resource: the server responded with a status of 404 (Not Found)
index.js:125 Error: xhr poll error
at c.i.onError (index.js:19)
at l.<anonymous> (index.js:123)
at l.r.emit (index.js:1)
at l.onError (index.js:123)
at index.js:123
index.js:123 GET http://localhost:5059/socket.io/?EIO=3&transport=polling&t=NWxHDr6 404 (Not Found)
index.js:125 Error: xhr poll error
at c.i.onError (index.js:19)
at l.<anonymous> (index.js:123)
at l.r.emit (index.js:1)
at l.onError (index.js:123)
at index.js:123
index.js:123 GET http://localhost:5059/socket.io/?EIO=3&transport=polling&t=NWxHEPu 404 (Not Found)
index.js:125 Error: xhr poll error
at c.i.onError (index.js:19)
at l.<anonymous> (index.js:123)
at l.r.emit (index.js:1)
at l.onError (index.js:123)
at index.js:123
index.js:123 GET http://localhost:5059/socket.io/?EIO=3&transport=polling&t=NWxHFta 404 (Not Found)
index.js:125 Error: xhr poll error
at c.i.onError (index.js:19)
at l.<anonymous> (index.js:123)
at l.r.emit (index.js:1)
at l.onError (index.js:123)
at index.js:123
index.js:123 GET http://localhost:5059/socket.io/?EIO=3&transport=polling&t=NWxHHLO 404 (Not Found)
index.js:125 Error: xhr poll error
at c.i.onError (index.js:19)
at l.<anonymous> (index.js:123)
at l.r.emit (index.js:1)
at l.onError (index.js:123)
at index.js:123
index.js:123 GET http://localhost:5059/socket.io/?EIO=3&transport=polling&t=NWxHIpD 404 (Not Found)
index.js:125 Error: xhr poll error
at c.i.onError (index.js:19)
at l.<anonymous> (index.js:123)
at l.r.emit (index.js:1)
at l.onError (index.js:123)
at index.js:123
index.js:123 GET http://localhost:5059/socket.io/?EIO=3&transport=polling&t=NWxHKGz 404 (Not Found)
index.js:125 Error: xhr poll error
at c.i.onError (index.js:19)
at l.<anonymous> (index.js:123)
at l.r.emit (index.js:1)
at l.onError (index.js:123)
at index.js:123
index.js:123 GET http://localhost:5059/socket.io/?EIO=3&transport=polling&t=NWxHLkd 404 (Not Found)
index.js:125 Error: xhr poll error
at c.i.onError (index.js:19)
at l.<anonymous> (index.js:123)
at l.r.emit (index.js:1)
at l.onError (index.js:123)
at index.js:123
index.js:123 GET http://localhost:5059/socket.io/?EIO=3&transport=polling&t=NWxHNCU 404 (Not Found)
index.js:125 Error: xhr poll error
at c.i.onError (index.js:19)
at l.<anonymous> (index.js:123)
at l.r.emit (index.js:1)
at l.onError (index.js:123)
at index.js:123
index.js:123 GET http://localhost:5059/socket.io/?EIO=3&transport=polling&t=NWxHOR3 404 (Not Found)
index.js:125 Error: xhr poll error
at c.i.onError (index.js:19)
at l.<anonymous> (index.js:123)
at l.r.emit (index.js:1)
at l.onError (index.js:123)
at index.js:123
index.js:123 GET http://localhost:5059/socket.io/?EIO=3&transport=polling&t=NWxHPkm 404 (Not Found)
index.js:125 Error: xhr poll error
at c.i.onError (index.js:19)
at l.<anonymous> (index.js:123)
at l.r.emit (index.js:1)
at l.onError (index.js:123)
at index.js:123
index.js:123 GET http://localhost:5059/socket.io/?EIO=3&transport=polling&t=NWxHQzN 404 (Not Found)
index.js:125 Error: xhr poll error
at c.i.onError (index.js:19)
at l.<anonymous> (index.js:123)
at l.r.emit (index.js:1)
at l.onError (index.js:123)
at index.js:123
index.js:123 GET http://localhost:5059/socket.io/?EIO=3&transport=polling&t=NWxHSGe 404 (Not Found)
index.js:125 Error: xhr poll error
at c.i.onError (index.js:19)
at l.<anonymous> (index.js:123)
at l.r.emit (index.js:1)
at l.onError (index.js:123)
at index.js:123
index.js:123 GET http://localhost:5059/socket.io/?EIO=3&transport=polling&t=NWxHTVJ 404 (Not Found)
index.js:125 Error: xhr poll error
at c.i.onError (index.js:19)
at l.<anonymous> (index.js:123)
at l.r.emit (index.js:1)
at l.onError (index.js:123)
at index.js:123
index.js:123 GET http://localhost:5059/socket.io/?EIO=3&transport=polling&t=NWxHUp9 404 (Not Found)
index.js:125 Error: xhr poll error
at c.i.onError (index.js:19)
at l.<anonymous> (index.js:123)
at l.r.emit (index.js:1)
at l.onError (index.js:123)
at index.js:123
index.js:123 GET http://localhost:5059/socket.io/?EIO=3&transport=polling&t=NWxHW1e 404 (Not Found)
index.js:125 Error: xhr poll error
at c.i.onError (index.js:19)
at l.<anonymous> (index.js:123)
at l.r.emit (index.js:1)
at l.onError (index.js:123)
at index.js:123
index.js:123 GET http://localhost:5059/socket.io/?EIO=3&transport=polling&t=NWxHXSj 404 (Not Found)
index.js:125 Error: xhr poll error
at c.i.onError (index.js:19)
at l.<anonymous> (index.js:123)
at l.r.emit (index.js:1)
at l.onError (index.js:123)
at index.js:123
index.js:123 GET http://localhost:5059/socket.io/?EIO=3&transport=polling&t=NWxHYwN 404 (Not Found)
index.js:125 Error: xhr poll error
at c.i.onError (index.js:19)
at l.<anonymous> (index.js:123)
at l.r.emit (index.js:1)
at l.onError (index.js:123)
at index.js:123
index.js:123 GET http://localhost:5059/socket.io/?EIO=3&transport=polling&t=NWxHaOD 404 (Not Found)
index.js:125 Error: xhr poll error
at c.i.onError (index.js:19)
at l.<anonymous> (index.js:123)
at l.r.emit (index.js:1)
at l.onError (index.js:123)
at index.js:123
index.js:123 GET http://localhost:5059/socket.io/?EIO=3&transport=polling&t=NWxHbrq 404 (Not Found)
index.js:125 Error: xhr poll error
at c.i.onError (index.js:19)
at l.<anonymous> (index.js:123)
at l.r.emit (index.js:1)
at l.onError (index.js:123)
at index.js:123
index.js:123 GET http://localhost:5059/socket.io/?EIO=3&transport=polling&t=NWxHdJi 404 (Not Found)
index.js:125 Error: xhr poll error
at c.i.onError (index.js:19)
at l.<anonymous> (index.js:123)
at l.r.emit (index.js:1)
at l.onError (index.js:123)
at index.js:123
index.js:123 GET http://localhost:5059/socket.io/?EIO=3&transport=polling&t=NWxHenY 404 (Not Found)
index.js:125 Error: xhr poll error
at c.i.onError (index.js:19)
at l.<anonymous> (index.js:123)
at l.r.emit (index.js:1)
at l.onError (index.js:123)
at index.js:123
index.js:123 GET http://localhost:5059/socket.io/?EIO=3&transport=polling&t=NWxHgFE 404 (Not Found)
index.js:125 Error: xhr poll error
at c.i.onError (index.js:19)
at l.<anonymous> (index.js:123)
at l.r.emit (index.js:1)
at l.onError (index.js:123)
at index.js:123
index.js:123 GET http://localhost:5059/socket.io/?EIO=3&transport=polling&t=NWxHhj1 404 (Not Found)
﻿
​
```

---

<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: [March 16, 2021, 2:22pm UTC](https://forum.rasa.com/t/rasa-webbot/41319/12 "2021-03-16T14:22:44Z")

</div>

I’m using Rasa version `2.2.9` and it works for me with the above solution.

---

<div class="post-metadata">

### Author: ![tide90](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/tide90/32/13879_2.png) [@tide90](https://forum.rasa.com/u/tide90)
#### Post date: [March 16, 2021, 2:37pm UTC](https://forum.rasa.com/t/rasa-webbot/41319/13 "2021-03-16T14:37:10Z")

</div>

would I have to start an action server seperately?

---

<div class="post-metadata">

### Author: ![tide90](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/tide90/32/13879_2.png) [@tide90](https://forum.rasa.com/u/tide90)
#### Post date: [March 16, 2021, 2:38pm UTC](https://forum.rasa.com/t/rasa-webbot/41319/14 "2021-03-16T14:38:02Z")

</div>

> [@JiteshGaikwad](#):
>
> I’m using Rasa version `2.2.9` and it works for me with the above solution.

But also for the original script code?

---

<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: [March 16, 2021, 2:45pm UTC](https://forum.rasa.com/t/rasa-webbot/41319/15 "2021-03-16T14:45:26Z")

</div>

Yes

---

<div class="post-metadata">

### Author: ![tide90](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/tide90/32/13879_2.png) [@tide90](https://forum.rasa.com/u/tide90)
#### Post date: [March 16, 2021, 2:47pm UTC](https://forum.rasa.com/t/rasa-webbot/41319/16 "2021-03-16T14:47:07Z")

</div>

Yes, maybe v 2.2.0 is not good. I tried yours v 2.2.9 and it works completely. This should be somewhere mentioned…

---

<div class="post-metadata">

### Author: ![tide90](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/tide90/32/13879_2.png) [@tide90](https://forum.rasa.com/u/tide90)
#### Post date: [March 16, 2021, 2:48pm UTC](https://forum.rasa.com/t/rasa-webbot/41319/17 "2021-03-16T14:48:20Z")

</div>

> [@tide90](#):
>
> would I have to start an action server seperately?

Seems I have not? Why or when do I need a action server actually?

---

<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: [March 16, 2021, 2:51pm UTC](https://forum.rasa.com/t/rasa-webbot/41319/18 "2021-03-16T14:51:40Z")

</div>

@tide90 if this helps, can you mark it as a solution, so that it’s helpful for others, Thanks 🙂

---

<div class="post-metadata">

### Author: ![tide90](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/tide90/32/13879_2.png) [@tide90](https://forum.rasa.com/u/tide90)
#### Post date: [March 16, 2021, 2:52pm UTC](https://forum.rasa.com/t/rasa-webbot/41319/19 "2021-03-16T14:52:30Z")

</div>

@JiteshGaikwad Sometimes the model hangs? Why is it interrupting eg when saying hi and then bye… I get a message that something is deleted?

```
2021-03-16 15:51:09 DEBUG rasa.core.policies.rule_policy - There is a rule for the next action 'action_listen'.

```

2021-03-16 15:51:09 DEBUG rasa.core.policies.ensemble - Predicted next action using policy\_2\_RulePolicy. 2021-03-16 15:51:09 DEBUG rasa.core.processor - Predicted next action ‘action\_listen’ with confidence 1.00. 2021-03-16 15:51:09 DEBUG rasa.core.processor - Policy prediction ended with events ‘[]’. 2021-03-16 15:51:09 DEBUG rasa.core.processor - Action ‘action\_listen’ ended with events ‘[]’. 2021-03-16 15:51:09 DEBUG rasa.core.lock\_store - Deleted lock for conversation ‘16669e0e13a442d8a80107ec3fe48713’.

---

<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: [March 16, 2021, 2:54pm UTC](https://forum.rasa.com/t/rasa-webbot/41319/20 "2021-03-16T14:54:16Z")

</div>

It’s the conversation’s lock that gets deleted, you can check it out here

> **[Lock Stores](https://rasa.com/docs/rasa/lock-stores/)**
>
> Messages that are being processed lock Rasa for a given conversation ID to ensure that multiple incoming messages for that conversation do not interfere with each other. Rasa provides multiple implementations to maintain conversation locks.

[Next page](https://forum.rasa.com/t/rasa-webbot/41319.md?page=2)
