I have migrated from RASA v7 to v12 and am having difficulties in figuring out how to host my dialouge model and interpreter on a server that can interface with my HTML front end.
My earlier approach for custom actions was to use Klein to create a Python API wrapper for each custom action and then serve the app on a designated IP and port that I could connect to via Java Script on the Front End. The run code is shown below:
if name == “main”:
server = Server(“models/dialogue”, RasaNLUInterpreter("./models/nlu/default/nlu_model"))
server.app.run(“0.0.0.0”, 8080)
Hey @LeonPaul237. You should be able to spin up the server for your Rasa assistant using python or command line. If you use command line you can use the following commands to load your assistant on server (make sure to update the paths to your dialogue and nlu models):
Once you have it all up and running, your should be able to send requests to the Rasa Core server.
If you prefer using python, I actually have an updated version of the weatherbot assistant which will run with the latest versions of the Rasa NLU and Core. Check out the file run_app.py to see an example on how to achieve the same using Python scripts. Instead of using Slack as an input channel, you can write a custom connector to connect your Rasa assistant with your custom UI.