Hey there! I’ve got some issues when handling the user input images. After connecting to a messaging channel like telegram, WhatsApp I want to get some images from users when running a form. As a example when I making a online pharmacy chatbot I had to get user inputs like name, location using rasa forms and finally I had to get the prescription as a image. But after inputting a image the bot stopped working. How can I handle this?
Another thing is I want to send images and pdf document via this messaging channels to users. In this case I able to the links of this images and documents… But I want to sent the image via WhatsApp and telegram. How can I do this?
Wishing a powerful support from you
@Sandares Hey! is there any code you have developed or able to perform some steps?
@Sandares Please refer this hope this link rasa/telegram.py at main · RasaHQ/rasa · GitHub will help you, but you need to understand the code
@Sandares Custom Connectors
@nik202 Could you please elaborate the usage of how to take image or picture as user input from telegram bot and store ? I have used custom connectors for telegram unable to receive messages
@Hiranmai I’m afraid, I not personally implemented your use case, but it all depends on Telegram interface, if they allow to send or received images then for that you need to check the custom connector for that. But why you need that, can you share if you don’t t mind?
@nik202 In my usecase user need to upload an image from telegram bot and then it needs to be sent to other API from custom actions
@Hiranmai means you are extracting the information from the image or its just send by user and store in your database ?
@nik202 need to take the uploaded image from the bot and send it an API later it will be stored in database.
Hi @Sandares, I hope you doing fine. Can I request you to please close this thread with the solution for others. Thanks.
Hi @nik202, I’m doing fine. I was unable to find out a way to handle user input images. And there’s simple way to send images to users. By adding image:
tag after - text:
in utters and given the link of the image is the easiest way send images. By adding the the telegram channel to credentials.yml
file as the rasa docs it send images. But I couldn’t find the way to handle input images. Sorry for that.
@Sandares I am sorry to hear that buddy! Please mark this thread as pre- solution for others How to handle user input images in rasa - #12 by Sandares and keep safe!