# Custom Payload with bot response

**URL:** <https://forum.rasa.com/t/custom-payload-with-bot-response/51636>\
**Category:** Rasa Open Source\
**Created:** [March 1, 2022, 8:04am UTC](https://forum.rasa.com/t/custom-payload-with-bot-response/51636 "2022-03-01T08:04:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vmanthena](https://avatars.discourse-cdn.com/v4/letter/v/7bcc69/32.png) [@vmanthena](https://forum.rasa.com/u/vmanthena)\
**Post date:** [March 1, 2022, 8:04am UTC](https://forum.rasa.com/t/custom-payload-with-bot-response/51636/1 "2022-03-01T08:04:07Z")

</div>

We are building a chatbot and using angular as frontend. I am using rest api to get bot response to frontend. Currently, the bot response object contains text . But i want to send custom payload from custom action server and use the template. But i am getting empty response when i use “/webhooks/rest/webhook”.

Can you please let me know, if i am missing out any thing or how to achieve the above use case.

stories.yml file :

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/7/a/7a473ec9aa80d90485caa828aa1f383fc9095189.png)

Domain.yml file

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/e/8/e88422d72992eaf68bbc7ae361f67c94fa236800.jpeg)

Custom Action Server Response: { “events”:, “responses”:[ {  
“template”: “utter\_welcome\_message” } ] }

REST API request to bot:

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/8/8/88f44f5e50c8eb232d93368b8846a9b2e7339187.png)

Response :

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/c/5/c58f283bf327891949d2cec20680dcc7e97a7256.png)

---

<div class="post-metadata">

**Author:** ![stephens](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/stephens/32/1632_2.png) [@stephens](https://forum.rasa.com/u/stephens)\
**Post date:** [March 2, 2022, 11:30pm UTC](https://forum.rasa.com/t/custom-payload-with-bot-response/51636/2 "2022-03-02T23:30:40Z")

</div>

What does the Rasa debug log show?

---

<div class="post-metadata">

**Author:** ![vmanthena](https://avatars.discourse-cdn.com/v4/letter/v/7bcc69/32.png) [@vmanthena](https://forum.rasa.com/u/vmanthena)\
**Post date:** [March 3, 2022, 7:07pm UTC](https://forum.rasa.com/t/custom-payload-with-bot-response/51636/3 "2022-03-03T19:07:23Z")

</div>

I was able to resolve the issue, it was due to the domain.yml file. Thanks
