Custom Payload with bot response

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 :

Domain.yml file

Custom Action Server Response: { “events”:, “responses”:[ {
“template”: “utter_welcome_message” } ] }

REST API request to bot:

Response :

What does the Rasa debug log show?

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