Core Components
Template structures are built from:
HEADER(optional) — text, image, video, document, or locationBODY(required for most categories) — the main message text with variablesFOOTER(optional) — small text below the bodyBUTTONS(optional) — quick reply, URL, phone, or copy-code actions
Header Formats
Supported header formats:
TEXT— plain text, supports one variable. Don't use Markdown formatting characters in a headerIMAGE— JPEG or PNG imageVIDEO— MP4 videoDOCUMENT— PDF or other document typesLOCATION— a map whose coordinates you supply at send time;UTILITYandMARKETINGtemplates only. See Location templatesGIF— an MP4 of up to 3.5 MB, only for marketing templates sent through Marketing Messages API for WhatsApp
A media header needs a sample uploaded through Meta's Resumable Upload API when you create the template; the sample is part of template review. The Dualhook dashboard and the Runtime API's message_template_media route do that upload for you.
For media handling, see Media Messages and Upload, Retrieve & Delete Media.
Variable Rules
Templates use one of two parameter formats, set with parameter_format at creation (positional if omitted):
- Positional:
{{1}},{{2}},{{3}}, numbered in order from 1. Example and send values must follow placeholder order. - Named:
{{first_name}},{{order_number}}: unique names of lowercase letters and underscores. Example values go inbody_text_named_paramsorheader_text_named_params, and send values carry aparameter_name, in any order.
Every parameter needs an example value at creation. Common review rejections:
- Missing or mismatched curly braces, or special characters such as
#,$, or%inside a parameter. - Positional parameters out of sequence, for example
{{1}},{{2}},{{5}}. - Too many parameters for the length of the text.
- Text that starts or ends with a parameter.
Text Formatting
Marketing and utility templates support WhatsApp text formatting in the body:
| Format | Syntax | Result |
|---|---|---|
| Bold | *text* | text |
| Italic | _text_ | text |
| Strikethrough | ~text~ | |
| Monospace | ```text``` | text |
Use the formatting toolbar in the template editor to apply styles. Formats can be combined (e.g. *_bold italic_*). Authentication templates do not support text formatting.
Practical Limits
| Element | Limit |
|---|---|
| Header text | Up to 60 characters, 1 parameter |
| Body text | Up to 1024 characters |
| Footer text | Up to 60 characters |
| Total buttons | Up to 10 (marketing & utility) |
| URL buttons | Max 2 within the 10 total; URL up to 2000 characters, 1 parameter at the end |
| Phone buttons | Max 1 within the 10 total; number up to 20 characters |
| Copy-code buttons | Max 1; code up to 20 characters |
| Quick reply buttons | Up to 10 |
| Button label | Up to 25 characters |
Quick reply and call-to-action buttons can be mixed in the same template. For example: 2 URL + 1 phone + 7 quick reply = 10 total. Keep quick replies together: QUICK_REPLY, QUICK_REPLY, URL, PHONE_NUMBER is valid, QUICK_REPLY, URL, QUICK_REPLY is rejected.
With more than three buttons, WhatsApp shows two and puts the rest behind See all options. Templates with four or more buttons, or a quick reply mixed with another button type, can't be viewed on WhatsApp desktop; the recipient is asked to open them on a phone.
For sending templates with variables, media headers, and buttons, see Sending Template Messages.
Dualhook Boundary
The dashboard template editor builds TEXT, IMAGE, VIDEO, DOCUMENT, and LOCATION headers, positional {{1}} variables, and quick-reply, URL, and phone-number buttons, plus a coupon (copy code) button on a Marketing template and the copy-code button of an authentication template. The Runtime API also accepts named parameters and COPY_CODE, OTP, FLOW, CATALOG, and MPM buttons, with enum values in upper or lower case. Neither offers GIF headers, voice-call buttons, carousels, limited-time offers, or product headers; create those templates in WhatsApp Manager or with your own Meta app.