# Sending user message to actions server as a JSON object

**URL:** <https://forum.rasa.com/t/sending-user-message-to-actions-server-as-a-json-object/61892>\
**Category:** Rasa Open Source\
**Created:** [May 9, 2024, 2:53am UTC](https://forum.rasa.com/t/sending-user-message-to-actions-server-as-a-json-object/61892 "2024-05-09T02:53:28Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![PavanKumarCB](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/pavankumarcb/32/23458_2.png) [@PavanKumarCB](https://forum.rasa.com/u/PavanKumarCB)\
**Post date:** [May 9, 2024, 2:53am UTC](https://forum.rasa.com/t/sending-user-message-to-actions-server-as-a-json-object/61892/1 "2024-05-09T02:53:28Z")

</div>

hey everyone. I am trying to send the user message from another module to the actions server using the following piece of code.

```auto
payload = {'sender':'test_user','message':'plus'}
headers = {'content-type': 'application/json'}
r = requests.post('http://localhost:5055/webhook', json=payload, headers=headers)
#r = requests.post('http://localhost:5055/webhook', json=payload, headers=headers)
response=json.loads(r.content)
print(response[0]["text"])

```

i need a way to store the incoming payload in a variable do that i can do some processing on it. I am unable to find a way to store the incoming string and use it in an action. Please help me here.

---

_[View the full topic](https://forum.rasa.com/t/sending-user-message-to-actions-server-as-a-json-object/61892)._
