How to use sender in response message

Hello, I’m currently using the rest webhook to talk to my bot in rasa by sending a POST request like this

$ curl -k localhost:5005/webhooks/rest/webhook -d '{"sender":"UserName", "message":"hi"}'

I’m trying to get a response like

[
   {
        "recipient_id" : "UserName",
        "text" : "Hey UserName!"
   }
]

instead of

[
   {
        "recipient_id" : "UserName",
        "text" : "Hey !"
   }
]

i.e. the sender value from request is used inside the response text. Is there a way to do that without having to use custom actions?

Hi @mangalrajg ,

welcome to the community!

I think this should be what you need.