Rasa webbot

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

I hope this helps

Thanks, Jitesh