简体   繁体   中英

Serving Multiple RASA bots on Django Backend

I'm currently trying to serve multiple bots (running different models) and to allow users to interact with it on a website. I've had a look at the following: http://www.rasa.com/docs/nlu/http/ , http://www.rasa.com/docs/core/http/ and http://www.rasa.com/docs/nlu/python/ , but I'm still having trouble figuring out how it can be done.

Some of the solutions I've considered are either:

  1. Serve the bot on a HTTP server and have my website interact with the Rasa HTTP server
  2. Create the website on Django Framework or REST API, and run Rasa Core and NLU on the backend.

What would be the best way to go about doing this? And, could anyone please briefly explain how this can be done (with multiple bot models and instances running)?

Any help would be greatly appreciated!

For anyone else searching for an answer, I ended up using Flask as the server, along with Flask-SocketIO for real time communication. The server serves an API which allows clients to communicate with it via SocketIO, determines which bot to interact with, gets the response, and sends it back to the client.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM