Rasa webbot - Rasa Open Source - Rasa Community Forum

Rasa webbot

post by Pardhu_555 on Mar 15, 2021

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

post by Horizon733 on Mar 16, 2021

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

post by tide90 on Mar 16, 2021

Sorry, I followed your video exactly but my index.html is blank and does not show the chatbot.

post by tide90 on Mar 16, 2021

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

post by tide90 on Mar 16, 2021

This is is a mess again… There are 50% of the people for whom this works and for the rest it does not. And no one has a solution since 4 months?

post by Horizon733 on Mar 16, 2021

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

post by JiteshGaikwad on Mar 16, 2021

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

<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" it won’t work as the path /socket.io is already added in the URL.

post by tide90 on Mar 16, 2021

Hey, thanks @JiteshGaikwad what exactly were the changes?

post by tide90 on Mar 16, 2021

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

post by tide90 on Mar 16, 2021

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

post by tide90 on Mar 16, 2021

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 it worked:

Now I get:
localhost:5059/socket.io/…polling&t=NWxHCuR:1 Failed to load resource: the server responded with a status of 404 (Not Found)

post by JiteshGaikwad on Mar 16, 2021

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

post by tide90 on Mar 16, 2021

Would I have to start a separate action server?

post by tide90 on Mar 16, 2021

But also for the original script code?

post by JiteshGaikwad on Mar 16, 2021

Yes.

post by tide90 on Mar 16, 2021

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...

post by tide90 on Mar 16, 2021

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'.

post by JiteshGaikwad on Mar 16, 2021

It’s the conversation’s lock that gets deleted.

post by tide90 on Mar 16, 2021

Oh man, rasa… 1) this should not bother me at this stage 2) is this the reason why the bot stops or a consequence of the stop of the bot?

post by pardhu@555 on Mar 17, 2021

Hey, I followed your steps exactly, and I installed 2.2.9 version of rasa but I got a full blank on my index.html page.

post by Pardhu_555 on Mar 17, 2021

Hey, can you guide me on web chat integration? I was facing the same issues that you have faced.

post by Horizon733 on Mar 17, 2021

What is it showing on console when you do inspect?

post by Pardhu_555 on Mar 17, 2021

I got bot chat, but I didn’t include this picture!

post by Horizon733 on Mar 17, 2021

Man, you didn’t follow everything. You didn’t add your own URL to the chatbot; how come you expect it to behave as you wanted.

post by Pardhu_555 on Mar 17, 2021

Only the initial message I am getting. Remaining, if enter queries I am getting responses as I created.

post by Horizon733 on Mar 17, 2021

So what I understood is you are able to run your bot properly. If you have your bot URL i.e. localhost:5005 in socketUrl then this shouldn’t be the case.

post by Ameerak124 on Mar 19, 2021

I’m getting this error >>>>>>> net::ERR_SSL_PROTOCOL_ERROR

post by Horizon733 on Mar 19, 2021

Which Rasa version if 2.3.4 or something downgrade socketio version to 4.6.x and engineio version to 3.6.x and this will work

post by Ameerak124 on Mar 20, 2021

I’m using these versions

post by Horizon733 on Mar 22, 2021

Yeah, please provide that YouTube link.

post by Horizon733 on May 19, 2021

You can have a look at my error tutorial and that will solve your issue.

post by bhuvan777 on May 19, 2021

Thank you for the video. I’m not seeing any error in my console and network properties of socketio is also working fine but chatbot window is not appearing in elements.

post by Horizon733 on May 19, 2021

First, I will need some information like rasa version, script that you added, and anything else that might have affected and gone wrong.

post by bhuvan777 on May 19, 2021

rasa: 2.4.0

[rasa-x: 0.39.3, rasa_sdk: 2.6.0] (https://github.com/)

post by Horizon733 on May 19, 2021

Script of webchat, not of credentials.

post by Horizon733 on May 19, 2021

Video link on website integration

post by fburger on Jun 24, 2021

I’m struggling with getting webchat to work and would really appreciate help.