Hi, I have a simple customer service chatbot that uses Whatsapp Business integration and Google Gemini as the AI model. When a customer requests for a brochure, I want to be able to send a pdf brochure to them as a response to their message in whatsapp.
Here is the high level flow
User starts a whatsapp chat >> AI chatbot responds to questions & collects leads >> User requests brochure >> Whatsapp chatbot responds with the actual pdf (not link to the pdf) >> chat continues based on user preference.
It is important that the actual pdf is sent and not a link and chat should be able to continue as users may have questions on the product brochure.
I am looking for a specific nodes / steps needed to execute the same. The pdf is available on the google drive.
Loop/Continue to Google Gemini for further chat…
More or less 5-6 nodes.
IMPORTANT : In the “Send” operation, enable the “Send Binary Data” option and select the binary field containing the PDF from the previous node. This ensures the actual PDF is sent, not just a link.
Give it a try, and if you encounter issue, just trow it here.
Hi @Parintele_Damaskin , I have tried it and most of my flow works except the send part. I have used the `WhatsApp Business Cloud (Send Template)` as I couldn’t find the [Send PdF] node. I am attaching some references on what my flow last step looks like. Please suggest. I have also tried creating a new variable where I can set the download pdf, however it doesn’t seem to work.
Thanks for some tips and continued guidance. Despite my best efforts, I am struggling with this last step. Even when drive node executes correctly, I can’t see a data tag. I only see an id and name from google drive in the whatsapp send template node.
Not seeing any option to “send Binary data” in google drive node. I have replaced the drive with an HTTP_Request based on some other community articles and I can see the HTTP request input has the data tag which I have mapped to my template field.
Do I need to create a template first in Whatsapp Account Manager? Sorry, I am quite new to this and trying to learn.
It executes without any errors. This is progress. However, the customer doesn’t get a reply with the pdf (see screenshot). Is there some additional step that is required. I have removed the HTTP and added back the drive node directly to whatsapp. I do see a binary option in the input to the whatsapp send template node and if I click the button it downloads to my local. However it doesn’t reply to the customer with the pdf.
I think I just figured it out. I will need to add another Send Whatsapp node and push the upload media through that. Thanks for all your help. This is so amazing.