# Can custom actions return payload data objects (JSON)?

**URL:** <https://forum.rasa.com/t/can-custom-actions-return-payload-data-objects-json/17301>\
**Category:** Rasa Open Source\
**Created:** [September 26, 2019, 10:11am UTC](https://forum.rasa.com/t/can-custom-actions-return-payload-data-objects-json/17301 "2019-09-26T10:11:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![KnightCoder](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/knightcoder/32/4052_2.png) [@KnightCoder](https://forum.rasa.com/u/KnightCoder)\
**Post date:** [September 26, 2019, 10:11am UTC](https://forum.rasa.com/t/can-custom-actions-return-payload-data-objects-json/17301/1 "2019-09-26T10:11:23Z")

</div>

I want my Rasa bot to reply with only a payload data object (similar to common JSON objects) instead of uttering anything ( _utterance is not important in this case_ ).

How can my custom actions do this?

---

<div class="post-metadata">

**Author:** ![samrudh](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/samrudh/32/3840_2.png) [@samrudh](https://forum.rasa.com/u/samrudh)\
**Post date:** [September 26, 2019, 11:20am UTC](https://forum.rasa.com/t/can-custom-actions-return-payload-data-objects-json/17301/2 "2019-09-26T11:20:02Z")

</div>

Can you add a slot and fill it with serialized / stringified JSON? as mentioned [here](http://forum.rasa.com/t/return-json-response-using-dispatcher/4621/7) by @JohnDowding

---

<div class="post-metadata">

**Author:** ![erohmensing](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/erohmensing/32/1789_2.png) [@erohmensing](https://forum.rasa.com/u/erohmensing)\
**Post date:** [September 26, 2019, 12:13pm UTC](https://forum.rasa.com/t/can-custom-actions-return-payload-data-objects-json/17301/3 "2019-09-26T12:13:17Z")

</div>

@KnightCoder you can do this with `dispatcher.utter_custom_json()` (this was added well after @samrudh’s suggestion as a way to make this easier) !
