# Working with User Images Sent to the Bot

**URL:** <https://forum.rasa.com/t/working-with-user-images-sent-to-the-bot/2847>\
**Category:** Rasa Open Source\
**Created:** [November 21, 2018, 1:26pm UTC](https://forum.rasa.com/t/working-with-user-images-sent-to-the-bot/2847 "2018-11-21T13:26:42Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![carla.lmeida](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/carla.lmeida/32/760_2.png) [@carla.lmeida](https://forum.rasa.com/u/carla.lmeida)\
**Post date:** [November 21, 2018, 1:26pm UTC](https://forum.rasa.com/t/working-with-user-images-sent-to-the-bot/2847/1 "2018-11-21T13:26:42Z")

</div>

Hey everyone!

We are currently working with something like this:

1. user intent is to have information about their status
2. bot utters message asking for their ID image
3. they take a picture/send it
4. image gets sent to an API - custom action
5. bot utters an answer / returns user information

I was wondering if there is possible to recognize an user sent message like that (image)? (or in other words how to make it possible to use that message/image to make that next custom action?) I’m aware that rasa works with NLU and not image recognition, but I’m stuck in finding an solution to make that example above work while still working with rasa. Could anyone help with ideas?

Thanks a lot in advance! 😌

---

<div class="post-metadata">

**Author:** ![akelad](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/akelad/32/69_2.png) [@akelad](https://forum.rasa.com/u/akelad)\
**Post date:** [December 2, 2018, 9:02pm UTC](https://forum.rasa.com/t/working-with-user-images-sent-to-the-bot/2847/2 "2018-12-02T21:02:57Z")

</div>

Hey, right now I think we just ignore that input. You’d have to customise the relevant connector for the messaging platform to actually receive that image. Something like this in the telegram connector for example: [rasa\_core/telegram.py at master · RasaHQ/rasa\_core · GitHub](https://github.com/RasaHQ/rasa_core/blob/master/rasa_core/channels/telegram.py#L141)

---

<div class="post-metadata">

**Author:** ![Saurbh060](https://avatars.discourse-cdn.com/v4/letter/s/9de0a6/32.png) [@Saurbh060](https://forum.rasa.com/u/Saurbh060)\
**Post date:** [January 7, 2020, 5:49am UTC](https://forum.rasa.com/t/working-with-user-images-sent-to-the-bot/2847/3 "2020-01-07T05:49:24Z")

</div>

hii @akelad, [rasa\_core/telegram.py at master · RasaHQ/rasa\_core · GitHub](https://github.com/RasaHQ/rasa_core/blob/master/rasa_core/channels/telegram.py#L141) this shows 404 error not found while opening

---

<div class="post-metadata">

**Author:** ![akelad](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/akelad/32/69_2.png) [@akelad](https://forum.rasa.com/u/akelad)\
**Post date:** [January 14, 2020, 2:47pm UTC](https://forum.rasa.com/t/working-with-user-images-sent-to-the-bot/2847/4 "2020-01-14T14:47:02Z")

</div>

Here’s the updated link: [rasa/telegram.py at master · RasaHQ/rasa · GitHub](https://github.com/RasaHQ/rasa/blob/master/rasa/core/channels/telegram.py)

---

<div class="post-metadata">

**Author:** ![IDKYamHere](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/idkyamhere/32/8720_2.png) [@IDKYamHere](https://forum.rasa.com/u/IDKYamHere)\
**Post date:** [May 4, 2020, 8:54am UTC](https://forum.rasa.com/t/working-with-user-images-sent-to-the-bot/2847/5 "2020-05-04T08:54:53Z")

</div>

I am working on similar Rasa chat bot which has to take a picture of the document the user presents, and the bot has to click a picture via the webcam. I am new to Rasa and do not know how to work around with custom actions, if there are any implementations I can use for reference, it would be of great help.

Thanks in advance! 😃

---

<div class="post-metadata">

**Author:** ![kabeer](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/kabeer/32/5310_2.png) [@kabeer](https://forum.rasa.com/u/kabeer)\
**Post date:** [June 1, 2020, 5:36am UTC](https://forum.rasa.com/t/working-with-user-images-sent-to-the-bot/2847/6 "2020-06-01T05:36:33Z")

</div>

@carla.lmeida , did you find any solution?i have similar requiremnt with Telegram. Thanks

---

<div class="post-metadata">

**Author:** ![IDKYamHere](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/idkyamhere/32/8720_2.png) [@IDKYamHere](https://forum.rasa.com/u/IDKYamHere)\
**Post date:** [June 7, 2020, 8:00am UTC](https://forum.rasa.com/t/working-with-user-images-sent-to-the-bot/2847/7 "2020-06-07T08:00:22Z")

</div>

@kabeerI made a custom action where the bot triggers the camera and takes a picture, when you hit a key on the keyboard.

[photo.py](https://forum.rasa.com/uploads/short-url/hp6zslRAdw9UM8n6IFpcdtNYes0.py) (1.8 KB)

---

<div class="post-metadata">

**Author:** ![kiranmah92](https://avatars.discourse-cdn.com/v4/letter/k/77aa72/32.png) [@kiranmah92](https://forum.rasa.com/u/kiranmah92)\
**Post date:** [August 18, 2020, 5:52am UTC](https://forum.rasa.com/t/working-with-user-images-sent-to-the-bot/2847/8 "2020-08-18T05:52:55Z")

</div>

Hi , i have similar requirement. I have created a beauty bot. Now i want to add one feature where can upload his/her image. is there any solution where image can be captured irrespective of any device ?

---

<div class="post-metadata">

**Author:** ![mounika2](https://avatars.discourse-cdn.com/v4/letter/m/3ec8ea/32.png) [@mounika2](https://forum.rasa.com/u/mounika2)\
**Post date:** [December 5, 2020, 8:25am UTC](https://forum.rasa.com/t/working-with-user-images-sent-to-the-bot/2847/9 "2020-12-05T08:25:38Z")

</div>

Hi, @kiranmah92

Are you tried on upload option to get user uploaded image. If you got that please help me on that.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![thanhmannguyen3158](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/thanhmannguyen3158/32/14994_2.png) [@thanhmannguyen3158](https://forum.rasa.com/u/thanhmannguyen3158)\
**Post date:** [May 29, 2021, 1:47pm UTC](https://forum.rasa.com/t/working-with-user-images-sent-to-the-bot/2847/10 "2021-05-29T13:47:40Z")

</div>

I’m interested in this, did anyone find a solution?

---

<div class="post-metadata">

**Author:** ![uzairfarrukh](https://avatars.discourse-cdn.com/v4/letter/u/b77776/32.png) [@uzairfarrukh](https://forum.rasa.com/u/uzairfarrukh)\
**Post date:** [November 4, 2021, 9:38am UTC](https://forum.rasa.com/t/working-with-user-images-sent-to-the-bot/2847/11 "2021-11-04T09:38:44Z")

</div>

I want help regarding getting image from user by chatbot and applying algorithm on that image. After processing send characteristic of that image to user through chat or send image to user

---

<div class="post-metadata">

**Author:** ![egah1111](https://avatars.discourse-cdn.com/v4/letter/e/b3f665/32.png) [@egah1111](https://forum.rasa.com/u/egah1111)\
**Post date:** [May 18, 2023, 8:06am UTC](https://forum.rasa.com/t/working-with-user-images-sent-to-the-bot/2847/12 "2023-05-18T08:06:40Z")

</div>

hi Siddhanth, can this method work when you are using whatsapp or telegram as your front end
