title: Rasa WebChat integration
body: <p>I have created a chatbot on slack using Rasa-Core and Rasa-NLU by watching this video : <a href="https://vimeo.com/254777331" rel="nofollow noreferrer">https://vimeo.com/254777331</a></p>
  
  <p>It works pretty well on Slack.com. But what I need is to add this to our website using a code snippet. When I looked up on that, I was able to find out that RASA Webchat (<a href="https://github.com/mrbot-ai/rasa-webchat" rel="nofollow noreferrer">https://github.com/mrbot-ai/rasa-webchat</a> : A simple webchat widget to connect with a chatbot ) can be used to add the chatbot to the website. So, I pasted this code on my website inside the &lt; body > tag.</p>
  
  <pre><code>    &lt;div id="webchat"/&gt;
      &lt;script src="https://storage.googleapis.com/mrbot-cdn/webchat-0.4.1.js"&gt;&lt;/script&gt;
      &lt;script&gt;
          WebChat.default.init({
              selector: "#webchat",
              initPayload: "/get_started",
              interval: 1000, // 1000 ms between each message
              customData: {"userId": "123"}, // arbitrary custom data. Stay minimal as this will be added to the socket
              socketUrl: "http://localhost:5500",
              socketPath: "/socket.io/",
              title: "Title",
              subtitle: "Subtitle",
              profileAvatar: "http://to.avat.ar",
          })
      &lt;/script&gt; 
  </code></pre>
  
  <p>“Run_app.py” is the file which starts the chatbot ( It’s available in the video : <a href="https://vimeo.com/254777331" rel="nofollow noreferrer">https://vimeo.com/254777331</a> )</p>
  
  <pre><code>Here is the code of Run_app.py :
  
  from rasa_core.channels import HttpInputChannel
  from rasa_core.agent import Agent
  from rasa_core.interpreter import RasaNLUInterpreter
  from rasa_slack_connector import SlackInput
  
  
  
  nlu_interpreter = RasaNLUInterpreter('./models/nlu/default/weathernlu')
  agent = Agent.load('./models/dialogue', interpreter = nlu_interpreter)
  
  input_channel = SlackInput('xoxp-381510545829-382263177798-381274424643-a3b461a2ffe4a595e35795e1f98492c9', #app verification token
                              'xoxb-381510545829-381150752228-kNSPU0X7HpaS8oJaqd77TPQE', # bot verification token
                              'B709JgyLSSyKoodEDwOiJzic', # slack verification token
                              True)
  
  agent.handle_channel(HttpInputChannel(5004, '/', input_channel))
  </code></pre>
  
  <p>I want to connect this python chat-bot to the “Rasa-webchat” instead of using Slack. But I don’t know how to do that. I tried looking everywhere, But I couldn’t find anything helpful on the internet. Can someone help me? Thank you.</p>