Campaigns
Send a different file, link or coupon code in each message
WhatsApp takes the header file and button values with every message, so each campaign, contact or API call can send its own PDF, image, link ending or coupon code with an approved template.
Last reviewed 3 December 2026
The file you upload when you create a template is only the sample Meta reviews. WhatsApp takes the header file, and the values of some buttons, again with every message, so you do not need a new template to send a new PDF, image or link.
In a campaign (and in each drip step)
On the Variables step, under Header & Buttons, choose the header file:
- Use the template's file: everyone gets the file approved with the template.
- Upload a file for this send: a PDF, Word, Excel or PowerPoint file (or a JPG/PNG image, MP4 video), up to 16 MB. Only this campaign uses it; the template does not change.
- Public link: a direct https:// link to the file. Use this for files over 16 MB (WhatsApp accepts documents up to 100 MB).
- Different file for each contact: pick a contact field (for example Invoice link) that holds each contact's own https:// link, such as the invoice PDF link from your billing software. Add the field under Contacts → custom fields, or import it with your CSV.
For a document, File name customers see sets the name shown under it in WhatsApp (for example Invoice-1043.pdf); it can come from a contact field too.
Buttons
- Website button whose link ends in {{1}}: fill the end of the link (an order number, a tracking code) with fixed text or a contact field. The preview shows the exact link customers will open.
- Copy offer code: the code customers copy (up to 20 characters), fixed or from a contact field.
- Phone and fixed website buttons need nothing.
When a contact has no value
If a contact's field is empty or not a valid https:// link, that one message is not sent and not charged; the campaign report shows it as failed with the reason (Missing or invalid value for this contact). Fill the contact's field and send it again.
Inbox, chatbot and API
- Inbox: when you send a template from a chat, the same choices appear for that one message.
- Chatbot: the Send Template block has the same settings, and accepts variables such as
{{invoice_url}}. - API: pass
document_url/image_url/video_url,document_filename,header_text,buttonsandcoupon_code— see Send a template through the API and the API documentation.
Keep the content in line with what the template was approved for: a different invoice for an invoice template is fine, an unrelated promotion is not.
Still stuck?
Chat with a person on WhatsApp or raise a ticket with a screenshot. We reply on every ticket by email.