# Connecting with rasa server using local python file

**URL:** <https://forum.rasa.com/t/connecting-with-rasa-server-using-local-python-file/25829>\
**Category:** Rasa Open Source\
**Created:** [March 9, 2020, 10:54am UTC](https://forum.rasa.com/t/connecting-with-rasa-server-using-local-python-file/25829 "2020-03-09T10:54:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Addy-mons](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/addy-mons/32/7530_2.png) [@Addy-mons](https://forum.rasa.com/u/Addy-mons)\
**Post date:** [March 9, 2020, 10:54am UTC](https://forum.rasa.com/t/connecting-with-rasa-server-using-local-python-file/25829/1 "2020-03-09T10:54:35Z")

</div>

I want my local python file to male requests to the rasa server and rasa server will retreive the responses back to that file.(only using rasa nlu for parsing entities) I have made one local python file ,now i want to connect that python file so that it will send messages to the rasa server and fetch the parsing responses.So in this way ,i dont need to run rasa commands it will directly start the rasa server from that python file.

---

<div class="post-metadata">

**Author:** ![JiteshGaikwad](https://avatars.discourse-cdn.com/v4/letter/j/77aa72/32.png) [@JiteshGaikwad](https://forum.rasa.com/u/JiteshGaikwad)\
**Post date:** [March 10, 2020, 12:44pm UTC](https://forum.rasa.com/t/connecting-with-rasa-server-using-local-python-file/25829/2 "2020-03-10T12:44:09Z")

</div>

Hey @Addy-mons, `Agent` can help you:

[Agent](https://rasa.com/docs/rasa/api/agent/#rasa.core.agent.Agent.handle_text)

---

<div class="post-metadata">

**Author:** ![Addy-mons](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/addy-mons/32/7530_2.png) [@Addy-mons](https://forum.rasa.com/u/Addy-mons)\
**Post date:** [March 13, 2020, 8:39am UTC](https://forum.rasa.com/t/connecting-with-rasa-server-using-local-python-file/25829/3 "2020-03-13T08:39:14Z")

</div>

thanks a lot.it worked for me
