WhatsApp Files

Hey, how can I handle files received from WhatsApp? The return is like this: api/typebots/{typebot-id}/whatsapp/media/1098499364564031 but i don't how can I get the whatsapp file ou whatsapp file url
20 Replies
maiconrcf
maiconrcf2mo ago
Thank you so much @Baptiste !!! It's worked
Keerthana
Keerthana2mo ago
Hi @Baptiste when the file is uploaded to the WhatsApp Bot's interface on the backend, we encounter difficulty accessing the file link because it's private. Even after switching the visibility to public mode, we still cannot access the URL of the file. So can you please tell us how to solve the isuue file.https://s3.typebot.io/public/public/workspaces/cllse410s000xl90f4lrvkhi6/typebots/cltpryhgs000tmbiapegwn7vk/results/jxkw4lgs5zzuvlykv66taeb5/323210867139952
Baptiste
Baptiste2mo ago
This is not a file visibility issue here. The file opens but the PDF is most likely corrupted or something?
Keerthana
Keerthana2mo ago
@Baptiste But For all the files getting Uploaded on WhatsApp interface is throwing this error but working fine on web do you know what could be the issue and could you please advice???
Baptiste
Baptiste2mo ago
Can you provide the file here so that I can check it?
Keerthana
Keerthana2mo ago
So @Baptiste these are the kind of files that we are uploading in web as well as WhatsApp interface as well but the url once uploaded in web is visible and accessible but if uploaded in WhatsApp chat says as attached in the image below.
Baptiste
Baptiste2mo ago
Ok I'm reproducing the issue Managed to fix it. It will be available in 10 min Thank you for reporting it!
Keerthana
Keerthana2mo ago
Thankyou so much @Baptiste for Addressing the issue that helped also can we know what was the problem was it the file or the visibility
Baptiste
Baptiste2mo ago
The problem was Typebot was not properly downloading the file when it came frame Facebook server
Keerthana
Keerthana2mo ago
Thankyou so much @Baptiste It was of great help
Keerthana
Keerthana2mo ago
Hi @Baptiste also when the file gets uploaded, the file is pushed to Zoho Database according to the workflow. The files uploaded from web gets stored in our database but when the upload happens from WhatsApp the files are not getting stored in our Zoho database. When the file gets uploaded usually in our GSheets it gets stored as .pdf but when the upload happens from the WhatsApp we are not able to see the file getting stored in .pdf extension.
No description
Baptiste
Baptiste2mo ago
Any issue with that? It's expected I'd say, WhatsApp does not provide us the file extension, but you should still be able to open the file
Keerthana
Keerthana2mo ago
@Baptiste Yes the file is opening but we have a connection where we will store the files uploaded in Zoho recriut since it does no have the .pdf extension its not getting stored in our CRM
Baptiste
Baptiste2mo ago
Then that's an issue with Zoho, I suggest you reach out to them Another solution would be to apped .pdf to the variable on Typebot if you are sure to receive pdf file
Keerthana
Keerthana2mo ago
Sure @Baptiste we will check upon that and thankyou for helping us out.
Keerthana
Keerthana2mo ago
@Baptiste we tried append.pdf so this is what i am getting
No description
Keerthana
Keerthana2mo ago
No description
Baptiste
Baptiste2mo ago
Do not use append, it's for list variables Use "Custom" value: {{ResumeURL}} + '.pdf' For any further request, create a new thread please 🙏
Keerthana
Keerthana2mo ago
@Baptiste Really sorry for asking too many queries thankyou for addressing all the issues