https://discord.gg/botpress logo
Unable to get extract Whatsapp filename and store ...
# 🤝help
r
I'm building a Whatsapp chatbot that gets some information from the user and then asks them to upload a file. I am using an autonomous node that answer a few questions, and then a conditional that checks if the user has uploaded a file and then runs a webhook call. However, although it works fine in the emulator, I am not being able to extract any file related variables from whatsapp, nor save them in conversation variables. Therefore, my webhook doesn't run properly and the file isn't saved in the locatio I need it to be. I'm attaching the JS I'm using to try and extract the variables and save them (written by AI, as I'm not a coder). Some variables, like phone and fileUrl are coming in fine, but not filename, etc.: https://cdn.discordapp.com/attachments/1378619513339252818/1378619513570066494/message.txt?ex=683d42f9&is=683bf179&hm=75c410a1ce2aad7f866654ded058aa0841d8a77f4b5114bbcd886c2fcfa2c4b5&
r
yes thats enabled. whats even stranger is that the file upload will work once and then not work for the next ten times - it just randomly decides to set the conversation level variable or doesnt. also i just noticed i'm getting different url values for the same file even in the same flow https://cdn.discordapp.com/attachments/1378619513339252818/1378686265553195039/Screenshot_2025-06-01_at_4.42.02_PM.png?ex=683d8124&is=683c2fa4&hm=e0427a3527f91c450b211176fa57164c91920472f05f1a0a1502555ee01b11cd& https://cdn.discordapp.com/attachments/1378619513339252818/1378686265804980224/Screenshot_2025-06-01_at_4.44.51_PM.png?ex=683d8124&is=683c2fa4&hm=f73816ceafeff54b7c0d42b826786ad093c4794bb954166d6a088e6a32fd4f87&
l
I haven't tried this myself, it is a new feature. However, if you use manual integration of WhatsApp you get much better control and you will find the fbx link from where you can extract the file. Agree it is cumbersome, but it works all the time
r
what do you mean manual integration of whatsapp - can you explain in more detail?
l
In the screenshot I shared above, there is a drop-down above Authorize WhatsApp. Configure using OAuth Manual In the manual method, you have to create the whole configuration manually in developers.facebook.com, business.facebook.com, and then collect the values and add them here https://docs.versalence.online/books/whatsapp/page/whatsapp-api-setup-using-developer-portal the process is lengthy and time consuming, but gives a lot more control on what you can do with your WhatsApp integration
3 Views