# Get json\_message from User

**URL:** <https://forum.rasa.com/t/get-json-message-from-user/44610>\
**Category:** Rasa Open Source\
**Created:** [June 14, 2021, 5:09pm UTC](https://forum.rasa.com/t/get-json-message-from-user/44610 "2021-06-14T17:09:49Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrbil208](https://avatars.discourse-cdn.com/v4/letter/m/e19adc/32.png) [@mrbil208](https://forum.rasa.com/u/mrbil208)\
**Post date:** [June 14, 2021, 5:09pm UTC](https://forum.rasa.com/t/get-json-message-from-user/44610/1 "2021-06-14T17:09:49Z")

</div>

Hi all,

Following the documentation, I’m using json\_message to send properties(key-value) json to the user.

But how can i get properties(key-value) of json message received from user?

Thanks.

---

<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:** [June 15, 2021, 12:06pm UTC](https://forum.rasa.com/t/get-json-message-from-user/44610/2 "2021-06-15T12:06:31Z")

</div>

What do you want to do with it? Can you please give an example?

---

<div class="post-metadata">

**Author:** ![mrbil208](https://avatars.discourse-cdn.com/v4/letter/m/e19adc/32.png) [@mrbil208](https://forum.rasa.com/u/mrbil208)\
**Post date:** [June 16, 2021, 10:02am UTC](https://forum.rasa.com/t/get-json-message-from-user/44610/3 "2021-06-16T10:02:33Z")

</div>

Hi @Tobias_Wochinger

Example : i want to show message like : name of image and get information like : name\_of\_type : image from other module. I mean i just want to show image and history to UI and get information from other module to save db by custom actions.

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [June 19, 2021, 10:48pm UTC](https://forum.rasa.com/t/get-json-message-from-user/44610/4 "2021-06-19T22:48:43Z")

</div>

@mrbil208 Any Bot/User scenario/example you can share?

---

<div class="post-metadata">

**Author:** ![mrbil208](https://avatars.discourse-cdn.com/v4/letter/m/e19adc/32.png) [@mrbil208](https://forum.rasa.com/u/mrbil208)\
**Post date:** [June 21, 2021, 7:32pm UTC](https://forum.rasa.com/t/get-json-message-from-user/44610/5 "2021-06-21T19:32:00Z")

</div>

> [@nik202](#):
>
> scenario/example you can share?

Hi @nik202

Example :

User : image

In this process, i have other module to handle image to get information. Btw, i want to show message history to UI only image. So i need to get information by json form.

Format like :

Sender: senderID

Message: [name\_of\_image]

Json\_message : {

Type : type

Number : number

Time : time }

Bot : return information to user and add to db by custom actions

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [June 21, 2021, 7:39pm UTC](https://forum.rasa.com/t/get-json-message-from-user/44610/6 "2021-06-21T19:39:47Z")

</div>

@mrbil208 I am sorry, still not get you on this. You want to fetch the information from Image?

---

<div class="post-metadata">

**Author:** ![mrbil208](https://avatars.discourse-cdn.com/v4/letter/m/e19adc/32.png) [@mrbil208](https://forum.rasa.com/u/mrbil208)\
**Post date:** [June 21, 2021, 7:56pm UTC](https://forum.rasa.com/t/get-json-message-from-user/44610/7 "2021-06-21T19:56:57Z")

</div>

@nik202 exactly !!! But i have other module to do that. I have to find a way to get my module into rasa process.

In my way, my module get image from UI and send api to rasa service with the format on last comment.

Because i’m using endpoint (mongodb). So the message history have to show image when my module share information to rasa. I mean the information have to hide on the message history.

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [June 21, 2021, 8:01pm UTC](https://forum.rasa.com/t/get-json-message-from-user/44610/8 "2021-06-21T20:01:13Z")

</div>

@mrbil208 You can create custom actions, your other module for image values extraction written in python with NLP pipeline? You can execute your python code in rasa.

Which UI (User Interface you are using) did that have the option to upload the image?

Last point not clear to me.

---

<div class="post-metadata">

**Author:** ![mrbil208](https://avatars.discourse-cdn.com/v4/letter/m/e19adc/32.png) [@mrbil208](https://forum.rasa.com/u/mrbil208)\
**Post date:** [June 21, 2021, 8:23pm UTC](https://forum.rasa.com/t/get-json-message-from-user/44610/9 "2021-06-21T20:23:40Z")

</div>

@nik202 i dont know how to create extractor for image extractor on pineline.

And at my point, i just need to known how to get data from user with json\_message.

Present, rasa is supporting for json message from bot to user. I think rasa had has a reverse way.

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [June 21, 2021, 8:32pm UTC](https://forum.rasa.com/t/get-json-message-from-user/44610/10 "2021-06-21T20:32:56Z")

</div>

@mrbil208 I guess what you trying to do is.

You want a user input as some kind of image, at backend you want to send to API to fetch the information from image and then you want to show the data as response to the user in chat window. Right?

---

<div class="post-metadata">

**Author:** ![mrbil208](https://avatars.discourse-cdn.com/v4/letter/m/e19adc/32.png) [@mrbil208](https://forum.rasa.com/u/mrbil208)\
**Post date:** [June 22, 2021, 5:03am UTC](https://forum.rasa.com/t/get-json-message-from-user/44610/11 "2021-06-22T05:03:53Z")

</div>

@nik202 you got my point.

Do you have any ideal for it ?
