3

I have build a chatbot using rasa framework. Now I want deploy it over my website but I dont want deploy it using chatterbot or Docker. I am googling but I am not getting it.

How to deploy the chatbot on my website?

Souren
  • 95
  • 2
  • 10

1 Answers1

1
  1. Install Rasa Core and Rasa using pip / anaconda as it is described here (Rasa Core) and here (Rasa NLU).
  2. Train your Core and NLU model
  3. Start NLU as server using python -m rasa_nlu.server --path projects (see here for the docs). Do this using a tool like nohup so that the server is not killed when you close your terminal window
  4. Edit the endpoint configuration file for Rasa Core so that it links to NLU (see docs here):

    nlu: url: "http://<your nlu host>:5000"

  5. Decide how you want to connect the bot on your website to Rasa. It's probably either via REST or using socketio. Add configuration for the used channel to a credentials file, e.g. for REST

    rest: # you don't need to provide anything here - this channel doesn't # require any credentials

  6. Run Rasa Core

    python -m rasa_core.run -d <path to core model> \ -u <nlu model you want to use> \ --endpoints <path to your endpoint configuration (includes NLU url) \ --credentials <channel credentials>

  7. Call the Rest or the socket io endpoint from your website. Here is a small chat widget which you can embed in your website and uses socketio to communicate with Rasa.
Tobias
  • 1,880
  • 11
  • 17
  • I have a static website and I have converted into a flask app then run it. It is working fine. I dont want to use [this](https://github.com/mrbot-ai/rasa-webchat) widget. Can you please help how can I deploy on my static website – Souren May 18 '19 at 19:39
  • @Souren page can't display dynamic content without using JavaScript. If you don't want to use this widget then you will have to write something similar in JavaScript on your own. And it can be a lot of work. You can put widget on static page but it has to connect to server which can send dynamic data. – furas Feb 23 '20 at 15:16