# Bot should read the data from Mongo DB conversation

**URL:** <https://forum.rasa.com/t/bot-should-read-the-data-from-mongo-db-conversation/24825>\
**Category:** Rasa Open Source\
**Created:** [February 15, 2020, 3:25am UTC](https://forum.rasa.com/t/bot-should-read-the-data-from-mongo-db-conversation/24825 "2020-02-15T03:25:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ramyaps](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/ramyaps/32/7093_2.png) [@ramyaps](https://forum.rasa.com/u/ramyaps)\
**Post date:** [February 15, 2020, 3:25am UTC](https://forum.rasa.com/t/bot-should-read-the-data-from-mongo-db-conversation/24825/1 "2020-02-15T03:25:52Z")

</div>

Hi,

Can anyone help me with an example where Rasa is connected to Mongo Db for reading Data . Suppose we have an student table with all the details, we need the Bot to read the data from there and utter to the user

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![KarthiAru](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/karthiaru/32/7163_2.png) [@KarthiAru](https://forum.rasa.com/u/KarthiAru)\
**Post date:** [February 15, 2020, 11:33am UTC](https://forum.rasa.com/t/bot-should-read-the-data-from-mongo-db-conversation/24825/2 "2020-02-15T11:33:12Z")

</div>

You’ll need to create a custom action for this.

The custom action will take the inputs from slots or sender\_id and use that in the database query. The results returned can be formatted and sent via `dispatcher.utter_message`

---

<div class="post-metadata">

**Author:** ![ramyaps](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/ramyaps/32/7093_2.png) [@ramyaps](https://forum.rasa.com/u/ramyaps)\
**Post date:** [February 17, 2020, 9:00am UTC](https://forum.rasa.com/t/bot-should-read-the-data-from-mongo-db-conversation/24825/3 "2020-02-17T09:00:03Z")

</div>

Dear Karthi,

Could you please elaborate, how the process is, like how to fetch the sender id from Mongo DB and to use in rasa. could you please share some documents if you have.

Thanks in advance.
