# Pass in text file to chat with rasa

**URL:** <https://forum.rasa.com/t/pass-in-text-file-to-chat-with-rasa/36528>\
**Category:** Getting Started with Rasa\
**Created:** [November 2, 2020, 1:51am UTC](https://forum.rasa.com/t/pass-in-text-file-to-chat-with-rasa/36528 "2020-11-02T01:51:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vijmeister](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/vijmeister/32/11650_2.png) [@vijmeister](https://forum.rasa.com/u/vijmeister)\
**Post date:** [November 2, 2020, 1:51am UTC](https://forum.rasa.com/t/pass-in-text-file-to-chat-with-rasa/36528/1 "2020-11-02T01:51:13Z")

</div>

Hi, I am currently using rasa train nlu and notice that the user can type lines to the assistant via the terminal. Is it possible to pass in a file an get an analysis (such as named entity recognition to make knowledge graphs)?

---

<div class="post-metadata">

**Author:** ![dakshvar22](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/dakshvar22/32/3993_2.png) [@dakshvar22](https://forum.rasa.com/u/dakshvar22)\
**Post date:** [November 4, 2020, 9:56am UTC](https://forum.rasa.com/t/pass-in-text-file-to-chat-with-rasa/36528/2 "2020-11-04T09:56:44Z")

</div>

Hi @vijmeister, you can load the trained model with an instance of the `Agent` class and then pass a new message through the API of the [`Agent` class](https://github.com/RasaHQ/rasa/blob/master/rasa/core/agent.py).
