Send pdf brochure to Whatsapp Business end user on request

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.

Any help / guidance is appreciated.

WhatsApp Business Cloud (Trigger)

Google Gemini (AI Chatbot)

IF Node (Check for brochure request)

Google Drive (Download PDF)

WhatsApp Business Cloud (Send PDF)

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.

Have fun!

Thanks. Will defo try it today. Appreciate the guidance.

1 Like

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.

Ok . It seems that you made it as 1on1 almost I said.

Then, I will try give clear instructions the “Send Template” actually has to be binary data, since you already have it.

  • Enable “Send Binary Data” .

  • Set Input Data Field Name to the same binary key from the Google Drive node (the orange text you see and is used as default by n8n and names as data).

P.S if you click the </> icon when you post or reply here, you can paste the workflow(Select with CTRL+A and copy with CTRL+C your workflow).

1 Like