Images from whatsapp
# 🤝help
f
I have a client who would like images to be sent from the user to them and saved in the botpress table data. I have the bot built for them on the botpress online interface and would like to add this functionality from the online interface. I have tried various "execute code" inputs but nothing seems to work. Can someone guide me here? How can I allow image input from the user on whatsapp and save the input in a table within botpress?
w
Hi ! This is the doc about how to retrieve media from the user on WhatsApp https://botpress.com/docs/cloud/channels/whatsapp/#media-images-audio-documents
f
thanks a lot for the help, I aam able to pull the image using the code. Th e min problem I was facing is with storing the URL in the database, I have a table but it does not push the image URL in that table I tried creating a workflow variable and saving it as workflow.image = event.payload.imageUrl but it seems like it cannot pull the URL
w
Ah okay I see The problem (I will try to find a solution because it’s also something I want to solve) is that you cannot store something that is greater than 4kb in a table
Or the data url of an image is really big
f
But i think i am just calling the wrong function for pulling the URL within the workflow variable, when i check the logs it just shows " " instead if the URL between those.
w
Ah okay if you just want to store the url in a variable it should work
Maybe you should verify that your url is effectively in event.payload.imageURl
Because it might be event.payload.payload.imageURl if you named your payload “payload”