Skip to Content
Message templates

Thinking in templates

Decide what belongs in a template, what should be a variable, and when you need a new template.

Every template has two parts: the words that stay the same, and the details that change. The words are reviewed by WhatsApp once. The details are variables, filled in each time the message is sent. Getting this split right is what makes a template easy to approve and easy to reuse.

This guide helps you decide what goes where, with examples of templates that work well and ones that don't. It takes about five minutes to read, and it's worth doing before you create your first few templates.

The rule of thumb

A template should still make sense if you read it out loud with the variables left in. If you can't tell what the message is about from the fixed words alone, neither can WhatsApp.

  • Use a variable for a detail that changes, while the message stays the same: a name, an order number, a date, a discount code.
  • Create a new template when the message itself changes: a different purpose, a different language, or more than a few words.

Where variables get their values

ChatReach has three kinds of variables. Which one you use decides who fills it in.

VariableExamplesFilled in by
Contact details{first_name}, {email}, your own custom fieldsChatReach, for each contact, from the contact's details.
Shopify and Calendly detailsAn order number or a booking timeThe automation that sends the message, from the order or booking that started it.
Your own variables{discount_code}, {sale_date}You, once, when you send a campaign. Everyone gets the same value.

Contact, Shopify and Calendly details are in the list when you click Add variable. To make your own variable, type its name between braces in your message, like {discount_code}. When you send a campaign with that template, you fill it in under Optional custom variable fields.

When to use a variable and when to create a template

SituationWhat to do
The message greets each customer by name.Use {first_name}.
You send the same order update for every order.Use one template, with a variable for the order number.
You run the same kind of sale every month, with a new code each time.Use one template, with variables for the code and the end date.
You want to send an order update and, separately, a promotion.Create two templates. One is Utility, the other Marketing.
You send the same message in English and Dutch.Create a template for each language.
You want a version with an image and one without.Create two templates. The header type is part of the template.
You want to change more than a few words.Create a new template.

Good and bad examples

Keep the message in the template

Don't do this

Hi {first_name}, {message}

The whole message is a variable, so WhatsApp can't tell what you'll send. It's likely to be rejected for having too many variables for the amount of text. Even if it isn't, a promotion and an order update can't share a category.

Do this

Hi {first_name}, your order {shopify_order_number} has shipped and is on its way. We'll let you know when it's out for delivery.

The fixed words say exactly what the message is, and the variables only fill in the details.

Put text before and after variables

Don't do this

{first_name}, your appointment is confirmed for {calendly_meeting_date} at {calendly_meeting_time}

Do this

Hi {first_name}, your appointment is confirmed for {calendly_meeting_date} at {calendly_meeting_time}. See you then!

WhatsApp doesn't accept a template that starts or ends with a variable. ChatReach checks this for you and shows Variables can't be at the start or end. Add text before or after them.

Use variables for details, not for sentences

Don't do this

Hi {first_name}! {offer_text} Shop now at {link}.

Do this

Hi {first_name}, our {sale_name} has started! Use code {discount_code} for {percentage} off everything until {end_date}.

In the first version, the offer itself is hidden in a variable, so the template could say anything. In the second, each variable is a single detail, and you can reuse the template for every sale by changing the values.

Don't use one template for two kinds of message

Don't do this: one Utility template that you sometimes use for order updates and sometimes for a discount.

Do this: a Utility template for the order update and a separate Marketing template for the discount.

WhatsApp decides the category from what the template says, and a message with anything promotional in it counts as marketing. See Choose a template category and type.

Keep the header simple

A text header can have only one variable, so keep it short and put the other details in the message.

Don't do this

{sale_name} for {first_name}

Do this

Your {sale_name} code

Plan for missing details

A contact variable is only filled in if the contact has that detail. When a campaign uses {first_name} and a contact has no first name saved, we skip that contact instead of sending a message with a gap in it. You'll see them in the campaign's details as Missing template variable.

Before you send, check that your contacts have the details your template uses. If many of them don't, choose a variable they all have, or write the message without it, for example Hi there instead of Hi {first_name}.

Name your own variables clearly

WhatsApp asks for an example of every variable when it reviews a template. We fill these in for you, and we use the variable's name to pick a sensible example. A name like {discount_code} gets an example like "SAVE20", and {end_date} gets "31 December".

So give each variable a short name that says what it holds, in lowercase with underscores. Avoid names like {text1} or {x}: they don't tell you, your team or WhatsApp what goes there.

Before you submit

  • Read the template with the variables left in. Does it still say what the message is about?
  • Check the start and end. There should be text before the first variable and after the last one.
  • One detail per variable. Not a sentence, not a whole offer.
  • One purpose per template. Updates and promotions go in separate templates.
  • Check your contacts. Do they have the details your template uses?

Still need help?

Our team is happy to help.