# Q and A Chat Bot

**URL:** <https://forum.rasa.com/t/q-and-a-chat-bot/29134>\
**Category:** Rasa Open Source\
**Created:** [May 21, 2020, 6:45am UTC](https://forum.rasa.com/t/q-and-a-chat-bot/29134 "2020-05-21T06:45:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![saran](https://avatars.discourse-cdn.com/v4/letter/s/7ea924/32.png) [@saran](https://forum.rasa.com/u/saran)\
**Post date:** [May 21, 2020, 6:45am UTC](https://forum.rasa.com/t/q-and-a-chat-bot/29134/1 "2020-05-21T06:45:51Z")

</div>

Hi, I would like to build a bot which answers questions. The bot should call a method from the python script in accordance to the questions asked and generate the answers based on the return value of those methods. The methods access and get the required data from a api or database. Is there anyone who could help in this regard.

Thanks in advance. Saran

---

<div class="post-metadata">

**Author:** ![tomgun132](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/tomgun132/32/7462_2.png) [@tomgun132](https://forum.rasa.com/u/tomgun132)\
**Post date:** [May 25, 2020, 1:53am UTC](https://forum.rasa.com/t/q-and-a-chat-bot/29134/2 "2020-05-25T01:53:06Z")

</div>

Hello,

Have you explored [custom actions](https://rasa.com/docs/rasa/core/actions/#custom-actions) yet? I’m using custom actions for anything that requires external API or database. For more examples, you can see the [rasa-demo repository](https://github.com/RasaHQ/rasa-demo/tree/master/actions)

---

<div class="post-metadata">

**Author:** ![saran](https://avatars.discourse-cdn.com/v4/letter/s/7ea924/32.png) [@saran](https://forum.rasa.com/u/saran)\
**Post date:** [May 25, 2020, 2:21pm UTC](https://forum.rasa.com/t/q-and-a-chat-bot/29134/3 "2020-05-25T14:21:00Z")

</div>

Yes I too tried it but I face a problem like the entities can’t be recognized by the script which belong to my own code like a, I néed to identify a entity like a bill number or such which is like HTS1234, HGF5627 like that

---

<div class="post-metadata">

**Author:** ![tomgun132](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/tomgun132/32/7462_2.png) [@tomgun132](https://forum.rasa.com/u/tomgun132)\
**Post date:** [May 26, 2020, 3:50am UTC](https://forum.rasa.com/t/q-and-a-chat-bot/29134/4 "2020-05-26T03:50:58Z")

</div>

You can try adding [Regex Features and Lookup Tables](https://rasa.com/docs/rasa/nlu/training-data-format/#regular-expression-features) to help your model predict your custom entities. You need to provide some examples in your training data so the model can learn the pattern from regex and/or lookup tables features. Here is an [explanation of lookup table](https://blog.rasa.com/improving-entity-extraction/)
