# Connect Rasa with Backend?

**URL:** <https://forum.rasa.com/t/connect-rasa-with-backend/12761>\
**Category:** Rasa Open Source\
**Created:** [July 10, 2019, 5:22pm UTC](https://forum.rasa.com/t/connect-rasa-with-backend/12761 "2019-07-10T17:22:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![asong4211](https://avatars.discourse-cdn.com/v4/letter/a/b4bc9f/32.png) [@asong4211](https://forum.rasa.com/u/asong4211)\
**Post date:** [July 10, 2019, 5:22pm UTC](https://forum.rasa.com/t/connect-rasa-with-backend/12761/1 "2019-07-10T17:22:43Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![akelad](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/akelad/32/69_2.png) [@akelad](https://forum.rasa.com/u/akelad)\
**Post date:** [July 13, 2019, 5:10pm UTC](https://forum.rasa.com/t/connect-rasa-with-backend/12761/2 "2019-07-13T17:10:44Z")

</div>

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?
