# Write templates that get approved and get read

Templates are needed for any message the business starts outside a customer's 24-hour window. Meta reviews each one.

## Choose the category honestly

- **UTILITY:** about something the person already started: an order, a booking, an account, a payment. No promotion inside it at all. "Your order shipped. Track it here."
- **MARKETING:** anything promotional, or anything not tied to a specific transaction: offers, launches, newsletters, "we miss you".
- **AUTHENTICATION:** one-time codes only, with Meta's fixed wording.

If a utility template contains promotion, Meta changes it to MARKETING (`template.category_updated`), which changes the price and requires opt-in. Pick the honest one up front.

## Structure

- **Header** (optional): short text, or an image, video or document. A relevant image lifts reads for marketing.
- **Body:** up to 1,024 characters, but aim for 2 to 4 short lines. Put the point in the first line; that's what shows in the notification.
- **Footer** (optional): small grey text, e.g. "Reply STOP to unsubscribe" for marketing.
- **Buttons** (optional): quick replies ("Yes, book it", "Not now"), a URL, or a phone number. Button text is short (around 20 characters).

## Variables

- Use `{{1}}`, `{{2}}` (or named variables) for what changes per person: name, order number, date.
- Every variable needs a realistic example (`template_validate` tells you which).
- Don't start or end the body with a variable, don't put two next to each other, and don't use so many that the message is mostly variables. These are the most common rejections.

## Process

1. Draft with the human. Show them exactly what customers will see, with example values filled in.
2. `template_validate`, fix everything it reports.
3. `template_create` after the human approves. Meta allows 100 creations an hour per account; waba.cloud has its own daily cap.
4. Wait for `template.status_updated`. If REJECTED, read the reason, fix and resubmit under a new name (you can't edit a rejected template into approval).

## Good examples

Utility, order update:
> Hi {{1}}, your order {{2}} is on its way and should arrive by {{3}}. Track it with the button below.

Marketing, specific offer:
> {{1}}, the running shoes you looked at are 20% off until Sunday. Want us to hold a pair in your size?
> [Show me] [Not interested]

## After approval

Templates have a quality score. If recipients block or ignore one, Meta pauses it (first for hours, then longer, then disables it). Watch `quality_report` templates and `template.quality_updated`. A paused template means: change the audience or rewrite, don't just resend.
