Connect Rasa with Backend?

What’s the best way to connect Rasa with a backend server? Right now I trained the model using rasa train and just use the trained model in my backend (Flask) using agent.load("path/to/model"); and then agent.handle_text(message) to get a response.

It works but for some reason it always has the “default” in the response and I am not sure why. And also when I built my custom actions in the actions.py file, it doesn’t return the action back for some reason. But when I tested it with rasa shell , the custom action that I built does show up there.

Any help would be very much appreciative!

What do you mean with the default response?

As for rasa shell, you need to start your action server as well - do you get any errors?