# How to use sender in response message

**URL:** <https://forum.rasa.com/t/how-to-use-sender-in-response-message/43825>\
**Category:** Rasa Open Source\
**Created:** [May 21, 2021, 1:14pm UTC](https://forum.rasa.com/t/how-to-use-sender-in-response-message/43825 "2021-05-21T13:14:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mangalrajg](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/mangalrajg/32/15028_2.png) [@mangalrajg](https://forum.rasa.com/u/mangalrajg)\
**Post date:** [May 21, 2021, 1:14pm UTC](https://forum.rasa.com/t/how-to-use-sender-in-response-message/43825/1 "2021-05-21T13:14:57Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Tobias\_Wochinger](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/tobias_wochinger/32/4580_2.png) [@Tobias\_Wochinger](https://forum.rasa.com/u/Tobias_Wochinger)\
**Post date:** [May 25, 2021, 7:50am UTC](https://forum.rasa.com/t/how-to-use-sender-in-response-message/43825/2 "2021-05-25T07:50:53Z")

</div>

Hi @mangalrajg ,

welcome to the community!

I think [this](https://rasa.com/docs/rasa/responses#using-variables-in-responses) should be what you need.
