# How to use the events caused by a custom action, to be shown as a reply from the bot in the conversation?

**URL:** <https://forum.rasa.com/t/how-to-use-the-events-caused-by-a-custom-action-to-be-shown-as-a-reply-from-the-bot-in-the-conversation/5076>\
**Category:** Rasa Open Source\
**Created:** [February 11, 2019, 10:46am UTC](https://forum.rasa.com/t/how-to-use-the-events-caused-by-a-custom-action-to-be-shown-as-a-reply-from-the-bot-in-the-conversation/5076 "2019-02-11T10:46:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arghya\_Ganguly](https://avatars.discourse-cdn.com/v4/letter/a/8797f3/32.png) [@Arghya\_Ganguly](https://forum.rasa.com/u/Arghya_Ganguly)\
**Post date:** [February 11, 2019, 10:46am UTC](https://forum.rasa.com/t/how-to-use-the-events-caused-by-a-custom-action-to-be-shown-as-a-reply-from-the-bot-in-the-conversation/5076/1 "2019-02-11T10:46:38Z")

</div>

I have a custom action where i am querying a mysql database and fill the slots based on the retrieval query. The tracker got updated with the fetched values of the respective slots.(current tracker state)

2019-02-11 16:01:54 DEBUG rasa\_core.processor - Received user message ‘yes’ with intent ‘{‘name’: ‘mood\_affirm’, ‘confidence’: 0.7875545623995659}’ and entities ‘[]’ 2019-02-11 16:01:54 DEBUG rasa\_core.processor - Logged UserUtterance - tracker now has 46 events 2019-02-11 16:01:54 DEBUG rasa\_core.processor - Current slot values: PERSON: Arghya battery: 2500 mAh,Li-Polymer camera: 8GB customer\_location: None display: 4_2.2 Ghz Kyro model: f10 operating\_system: 6 in price: None processor: 2600_1800 pixels,25fps shop\_location: None workshop\_location: None 2019-02-11 16:01:54 DEBUG rasa\_core.policies.memoization - Current tracker state [{‘slot\_battery\_0’: 1.0, ‘slot\_PERSON\_0’: 1.0, ‘intent\_OPPO\_Phones\_Price’: 1.0, ‘slot\_display\_0’: 1.0, ‘slot\_operating\_system\_0’: 1.0, ‘slot\_processor\_0’: 1.0, ‘entity\_model’: 1.0, ‘prev\_utter\_model\_name\_lookout’: 1.0, ‘slot\_camera\_0’: 1.0, ‘slot\_model\_0’: 1.0}, {‘slot\_battery\_0’: 1.0, ‘intent\_model\_name\_lookout’: 1.0, ‘slot\_PERSON\_0’: 1.0, ‘slot\_display\_0’: 1.0, ‘slot\_operating\_system\_0’: 1.0, ‘slot\_processor\_0’: 1.0, ‘entity\_model’: 1.0, ‘prev\_action\_listen’: 1.0, ‘slot\_camera\_0’: 1.0, ‘slot\_model\_0’: 1.0}, {‘slot\_battery\_0’: 1.0, ‘intent\_model\_name\_lookout’: 1.0, ‘slot\_PERSON\_0’: 1.0, ‘slot\_display\_0’: 1.0, ‘slot\_operating\_system\_0’: 1.0, ‘prev\_action\_save\_model\_name’: 1.0, ‘slot\_processor\_0’: 1.0, ‘entity\_model’: 1.0, ‘slot\_camera\_0’: 1.0, ‘slot\_model\_0’: 1.0}, {‘slot\_battery\_0’: 1.0, ‘intent\_model\_name\_lookout’: 1.0, ‘prev\_utter\_model\_name\_confirm’: 1.0, ‘slot\_PERSON\_0’: 1.0, ‘slot\_display\_0’: 1.0, ‘slot\_operating\_system\_0’: 1.0, ‘slot\_processor\_0’: 1.0, ‘entity\_model’: 1.0, ‘slot\_camera\_0’: 1.0, ‘slot\_model\_0’: 1.0}, {‘slot\_battery\_0’: 1.0, ‘slot\_PERSON\_0’: 1.0, ‘slot\_display\_0’: 1.0, ‘slot\_operating\_system\_0’: 1.0, ‘intent\_mood\_affirm’: 1.0, ‘slot\_processor\_0’: 1.0, ‘slot\_camera\_0’: 1.0, ‘slot\_model\_0’: 1.0, ‘prev\_action\_listen’: 1.0}]

How to reflect the same slot values during the conversation as a reply to the question asked by the user to the bot? Or will the slots get automatically reflected/shown with the updated values in the conversation.

---

<div class="post-metadata">

**Author:** ![Arghya\_Ganguly](https://avatars.discourse-cdn.com/v4/letter/a/8797f3/32.png) [@Arghya\_Ganguly](https://forum.rasa.com/u/Arghya_Ganguly)\
**Post date:** [February 13, 2019, 5:49am UTC](https://forum.rasa.com/t/how-to-use-the-events-caused-by-a-custom-action-to-be-shown-as-a-reply-from-the-bot-in-the-conversation/5076/2 "2019-02-13T05:49:55Z")

</div>

Figured it out eventually. Just passing the slot values inside dispatcher.utter\_message deals with it.
