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&
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
red-xylophone-99909
06/01/2025, 3:14 PM
what do you mean manual integration of whatsapp - can you explain in more detail?
l
limited-pencil-78283
06/01/2025, 4:23 PM
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