How to Send Dynamic PDFs in a Template Header Using Bot Studio

Many DoubleTick users want to share personalized PDFs (like invoices, reports, or certificates) with customers automatically. Instead of manually sending each file, you can use Bot Studio to dynamically pull a PDF URL from Google Sheets/Webhooks and deliver it directly in the template header.

Here’s how you can set this up step by step.


Step 1: Prepare Your Google Sheet

  1. Create a Google Sheet with these columns:

  2. Name → Customer’s name

  3. Phone Number → Customer’s WhatsApp number

  4. PDF URL → The link to the PDF you want to send

👉 Example:

Name

Phone Number

PDF URL

Rahul Mehta

919876543210

https://yourdomain.com/reports/rahul.pdf

Asha Verma

918888888888

https://yourdomain.com/reports/asha.pdf


Step 2: Create a New Bot in Bot Studio

  1. Go to Bot Studio in your DoubleTick account.

  2. Click Create a New Bot.


Step 3: Set the Trigger

  1. Choose the trigger On New Row in Google Sheet.

  2. From the Select Account dropdown, log in with the Google account that owns the sheet.

  1. In the Select Sheet dropdown, choose your prepared sheet.

  1. Under Select Phone Column, map the Phone Number column from your sheet.

This ensures that whenever a new row is added in the sheet, the bot picks the phone number from that row.


Step 4: Add the Action – Send Template

  1. From the Actions section, drag and drop Send Template into the flow.

  2. Connect your Google Sheet trigger node to this Send Template node.


Step 5: Configure the Template with Dynamic PDF

  1. In the Send Template settings:

• Under Media, select Media. • In the Select Template dropdown, choose the template you want to use. • In the Header Media section, click on Enter URL.

  1. Click the curly braces { } icon.

• From the options, select On New Row – Google Sheet. • Map it to the PDF URL column from your sheet.

This way, the bot will fetch the correct PDF link for each customer dynamically.


Step 6: Save and Enable

  1. Click Save.

  2. Enable the bot.

Now, whenever you add a new row in your Google Sheet with a customer’s name, phone number, and PDF link, the bot will automatically send that PDF in the template header to the mapped phone number on WhatsApp.


Benefits of Sending Dynamic PDFs

Personalized Communication – Each customer gets their own unique PDF (invoice, certificate, report, etc.). ✅ Automation at Scale – No manual effort; just update your Google Sheet. ✅ Professional Experience – PDFs in the template header look polished and official. ✅ Saves Time & Effort – Once set up, everything runs on autopilot.


With this setup, DoubleTick users can easily automate sending personalized PDFs through WhatsApp using template headers. Whether it’s invoices, progress reports, or certificates, this method saves time, reduces manual work, and ensures customers always get the right document instantly.

Last updated