# How to send more data along with message to Rasa bot

**URL:** <https://forum.rasa.com/t/how-to-send-more-data-along-with-message-to-rasa-bot/40465>\
**Category:** Rasa Open Source\
**Created:** [February 22, 2021, 6:25am UTC](https://forum.rasa.com/t/how-to-send-more-data-along-with-message-to-rasa-bot/40465 "2021-02-22T06:25:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rajathms](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/rajathms/32/13501_2.png) [@rajathms](https://forum.rasa.com/u/rajathms)\
**Post date:** [February 22, 2021, 6:25am UTC](https://forum.rasa.com/t/how-to-send-more-data-along-with-message-to-rasa-bot/40465/1 "2021-02-22T06:25:07Z")

</div>

Hello everyone,

I am new to rasa and I want to send more data to the rasa bot along with the message to use those values in retrieving other data.

For example I hit this URL to interact with rasa from my website “[http://localhost:5005/webhooks/rest/webhook](http://localhost:5005/webhooks/rest/webhook)” as a Post request with the payload { message: “hello there”, sender: “test” }

is this possible to add other variables(some more info of user which I want to retrieve in actions) here if so what would be the key-value pair and how can I retrieve that data in the rasa server to save/use in actions.py?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![j.mosig](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/j.mosig/32/3588_2.png) [@j.mosig](https://forum.rasa.com/u/j.mosig)\
**Post date:** [February 22, 2021, 7:37am UTC](https://forum.rasa.com/t/how-to-send-more-data-along-with-message-to-rasa-bot/40465/2 "2021-02-22T07:37:17Z")

</div>

Hello @rajathms, welcome to the Forum!

A good way to send information to your assistant that is not necessarily a user text is via the [intent trigger endpoint](https://rasa.com/docs/rasa/reaching-out-to-user#1-trigger-an-intent). With this, you can inject a special event that you define for just this purpose and send all your special information via an entity.

---

<div class="post-metadata">

**Author:** ![lisa.castillo](https://avatars.discourse-cdn.com/v4/letter/l/d07c76/32.png) [@lisa.castillo](https://forum.rasa.com/u/lisa.castillo)\
**Post date:** [February 1, 2024, 1:34pm UTC](https://forum.rasa.com/t/how-to-send-more-data-along-with-message-to-rasa-bot/40465/3 "2024-02-01T13:34:48Z")

</div>

Yes, it’s possible to send additional data along with your message to Rasa. You can include extra key-value pairs in your payload, and Rasa will receive them as part of the message. Here’s an example of how you can structure your payload: { “message”: “hello there”, “sender”: “test”, “custom\_data”: { “user\_info”: “some\_info”, “other\_variable”: “some\_value” } }

In this example, the `custom_data` field contains additional key-value pairs that you want to send to Rasa.

To retrieve this [crm data enrichment](https://www.globaldatabase.com/data-enrichment) in your custom actions in `actions.py`, you can access it from the `tracker` object. The `tracker` object contains information about the conversation, including the slots and any entities extracted from the user’s messages.
