# Template Messages

## About Template Messages

Message templates are a fundamental element of the WhatsApp Business Platform. They define how and when a business can reach out to users, ensuring conversations remain consistent with Meta’s policies and user expectations.

## Why they are needed

Businesses cannot freely start new conversations with users at any time. A message template is required in two scenarios:

* When there has been no previous interaction between the business and the user.
* When more than **24 hours** have passed since the user’s last message.

This rule protects the user experience, limiting unsolicited outreach and encouraging timely communication. [See more information about this here](https://docs.360dialog.com/partner/messaging/broken-reference).&#x20;

### Approval and availability

All templates must be **submitted to Meta for approval** before they can be used. This process ensures that the content complies with WhatsApp’s Business and Commerce policies. Once approved, the template becomes available across the **entire WABA** (WhatsApp Business Account), which means multiple phone numbers under the same WABA can share and reuse the same templates.

### Quality management

Meta continuously monitors customer feedback to maintain quality standards. Templates that receive negative feedback or are reported by users may be **automatically disabled**. A disabled template cannot be used until either its quality rating improves or the violation that triggered the disablement is resolved and complies to [Meta Business or Commerce policies](https://business.whatsapp.com/policy).

### Template limits

If a parent business portfolio is unverified, each of its WhatsApp Business Accounts is limited to **250 unique templates**. However, if the portfolio is verified, and at least one of its WhatsApp Business Accounts has a business phone number with an approved display name, each of its WhatsApp Business Accounts can have up to **6,000 unique templates**. This limit applies to each template message, including translation. For example, a single template named  <mark style="color:$success;">`hello_world`</mark> with two translations (e.g., English and Spanish) counts as **two templates** toward the limit.

It is possible to create a maximum of 100 templates in a WhatsApp Business Account per hour.

## Template Categories

Additionally, template messages can have three different categories:

* `MARKETING`
* `UTILITY`
* `AUTHENTICATION`

### Marketing templates <a href="#marketing-templates" id="marketing-templates"></a>

Marketing templates are the most flexible – they do not relate to a specific, agreed-upon transaction and instead may relate to the business and/or its products/services. These templates may include promotions or offers; welcoming / closing messages; updates, invitations or recommendations; or requests to respond or complete a new transaction.

{% hint style="info" %}
Any template that has a **mix of utility and marketing** content **will be classified as a marketing template**.
{% endhint %}

<table><thead><tr><th width="201">Objective</th><th width="266.3333333333333">Business Goal</th><th>Example Templates</th></tr></thead><tbody><tr><td><strong>Awareness</strong></td><td>Generate awareness of your business, products, or services among customers who have subscribed to receive messages from your business on WhatsApp.</td><td><ul><li>"Did you know? We installed a new tower in your area so you can enjoy a better network experience. To learn more, visit our site {{1}}."</li><li>"Diwali is around the corner! Join us at {{1}} on October 24 to celebrate with friends and family. For more details about our event, click {{2}}."</li><li>"Looking for a getaway this fall? Our newest resort just opened in {{1}}: the perfect place to relax and unwind. Learn more here: {{2}}"</li></ul></td></tr><tr><td><strong>Sales</strong></td><td>Send general promotional offers to customers related to sales events, coupons or other content intended to drive sales.</td><td><ul><li>"As a thank you for your last order, please enjoy 15% off your next order. Use code LOYAL15 at checkout. Visit our site here {{1}}."</li><li>"Refer → save! Use code FRIEND so you both earn $10 off your next order."</li><li>"Upgrade to our Premium cabin to enjoy more benefits, like additional legroom and priority boarding. Click {{1}} or log into our app to upgrade."</li><li>"You have been pre-approved for our credit card! Enjoy an introductory offer of {{1}} if you apply via your personalized link: {{2}}."</li><li>"Don’t forget! Today only, get double points on your purchases. Visit your nearest store and use your phone number at check-out."</li></ul></td></tr><tr><td><strong>Retargeting</strong></td><td>Promote relevant offers or other call-to-actions to customers who may have visited your website, used your app, or engaged with your products and services.</td><td><ul><li>"Don't miss out on your favorite shows! Re-subscribe now: {{1}}"</li><li>"You left items in your cart! Don’t worry, we saved them for you. Click here to checkout now: {{1}}."</li><li>"Thank you for visiting our site. You can secure your health insurance in a few easy clicks – continue here: {{1}}."</li><li>"You didn’t finish your application! Please log into your profile here to pick up where you left off: {{1}}."</li><li>"We miss you! Join us for an afternoon or evening of fun with your family. Click here to book with a special rate: {{1}}."</li></ul></td></tr><tr><td><strong>App Promotion</strong></td><td>Request customers to install or take a specific action with your app.</td><td><ul><li>"Did you know? You can now checkout in our app. Download it here {{1}} to check out our streamlined experience."</li><li>"Thank you for using our app. We noticed you have not used our latest feature, {{1}}. Click here {{2}} to learn more about how this benefits you!"</li><li>"In-app only: 20% off this week! Use code SUMMER20 to save on select styles. To download our app, click here: {{1}}."</li><li>"Hi {{1}}, your friend {{2}} recently joined our community. Send them a welcome message today: {{1}}"</li></ul></td></tr><tr><td><strong>Build Customer Relationships</strong></td><td>Strengthen customer relationships through personalized messages or by prompting new conversations.</td><td><ul><li>"{{1}}, did you think we’d forget? No way! Happy birthday! We wish you the best in the year ahead."</li><li>"As we approach the end of the year, we reflect on what drives us: You. Thank you for being a valued customer. We look forward to continuing to serve you"</li><li>"Hello, I am the new virtual assistant. I can help you discover products or provide support. Please reach out if I can help!"</li></ul></td></tr></tbody></table>

Also considered marketing templates are:

* Templates with mixed content (e.g. Both utility and marketing, such as order update with a promo or offer).
* Templates where contents are unclear (e.g., contents are only “{{1}}” or “Congratulations!”).

**Tappable headers in Marketing messages**

Starting October 2025, all marketing templates have tappable headers by default. In addition to the *CTA button* of the template, message recipients can now open the link by tapping on the *image header*.

<details>

<summary>View More</summary>

Applies to the single image and text-only formats. Supports both static and dynamic URL links.

If message is text only with a tappable URL button, the header will either be:

* The website thumbnail, if it's a text-only template, or
* The provided sample image if it's an image header template (if no image was provided for the image header during template message send-out)

Tappable headers have shown more than 10% increase in Click-Through Rate (CTR) based on Meta's experiments.

</details>

### Utility templates <a href="#utility-templates" id="utility-templates"></a>

Utility templates are typically triggered by a user action or request. They must include specificity about the active or ongoing transaction, account, subscription, or interaction to which they relate. For example, an order confirmation must contain an order number.

{% hint style="info" %}
Any template that has a mix of utility and marketing content will be classified as a marketing template.
{% endhint %}

<table><thead><tr><th width="183.33333333333331">Message Objective</th><th width="267">Business Goal</th><th>Example Templates</th></tr></thead><tbody><tr><td><strong>Opt-In Management on WhatsApp</strong></td><td>Confirm opt-in for receiving messages on WhatsApp as a follow-up to opt-in collected via other channels (e.g., website, email). Also confirm opt-out.</td><td><ul><li>"Thanks for confirming opt-in! You’re in. You’ll now receive notifications via WhatsApp."</li><li>"Thank you for confirming your opt-out preference. You will no longer receive messages from us on WhatsApp.'"</li></ul></td></tr><tr><td><strong>Order Management</strong></td><td>Confirm, update, or cancel an order or transaction with a customer using specific order or transaction details in the body of your message.</td><td><ul><li>"Thank you! Your order {{1}} is confirmed. We will let you know once your package is on its way."</li><li>"Hooray! Your package from order {{1}} is on its way. Your tracking number is {{2}} and expected delivery date is {{3}}."</li><li>"Unfortunately, one item from your order {{1}} is backordered. We will follow up with an estimated ship date. If you wish to cancel and receive a refund, please click here: {{2}}"</li><li>"We have received your item from order {{1}}. Your refund for {{2}} has been processed. Thank you for your business."</li></ul></td></tr><tr><td><strong>Account Alerts or Updates</strong></td><td><p>Send important account updates, including time-sensitive alerts, safety information, payment reminders, and other information relevant to already-purchased or subscribed products and services.</p><p>These messages should not intend to upsell or cross-sell new products or services.</p></td><td><ul><li>"Daily update for account ending in {{1}}: Your balance is {{2}}."</li><li>"Reminder: Your monthly payment for your subscription to {{1}} will be billed on {{2}} to the card you have saved on file."</li><li>"To finish setting up your profile, you need to upload a photo. Please click here to upload: {{1}}."</li><li>"The product you ordered {{1}} on {{2}} has been recalled. Please click here {{3}} to learn more."</li><li>"There is a tornado alert in your area. We recommend you remain indoors until {{1}} o'clock today."</li></ul></td></tr><tr><td><strong>Feedback Surveys</strong></td><td><p>Collect feedback on previous orders, interactions or ongoing relationships with customers.</p><p>These messages should not be about requesting feedback related to potential upsell or cross-sell opportunities.</p></td><td><ul><li>"We have delivered your order {{1}}! Please let us know if there was any issue by reaching out here: {{2}}."</li><li>"Your feedback ensures we continually improve. Please click here {{1}} to share your thoughts on your recent visit at our {{2}} location. Thank you in advance!"</li><li>"You chatted with us online recently about order {{1}}. How was your experience? Click to fill out a short survey: {{2}}."</li></ul></td></tr><tr><td><strong>Continue a Conversation on WhatsApp</strong></td><td><p>Send a message to start an interaction on WhatsApp that began in another channel.</p><p>These messages should not be initiated without a user having requested the conversation to be moved to WhatsApp.</p></td><td><ul><li>"Hi! I see you requested support via our online chat. I am the virtual assistant on WhatsApp. How can I help?"</li><li>"Hi {{1}}, we are following up on your call with customer service on {{2}}. Your case has progressed to the next step. Please log into your account to continue: {{3}}."</li></ul></td></tr></tbody></table>

### Authentication templates <a href="#authentication-templates" id="authentication-templates"></a>

Authentication templates enable businesses to authenticate users with one-time passcodes (usually 4-8 digit alphanumeric codes), potentially at multiple steps in the login process (e.g., account verification, account recovery, integrity challenges).

For a template to be classified as authentication, a business must:

* Use WhatsApp’s preset authentication message templates, which include optional add-ons like security disclaimers and expiry warnings.
* Configure a one-time password button (copy-code or one-tap)
* Follow content restrictions: URLs, media, and emojis are not allowed for authentication template content or parameters. Additional length restrictions of 15 characters also apply to parameters.

See[ Authentication Templates](https://docs.360dialog.com/partner/messaging/template-messages/authentication-templates).

| Definition                                 | Examples                                                                                                                                                                                                                      |
| ------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Provide an authentication code to the user | <ul><li>"{{1}} is your verification code."</li><li>"{{1}} is your verification code. For your security, do not share this code."</li><li>"{{1}} is your verification code. This code expires in 15 minutes."</li></ul><p></p> |

## Customizing Time-To-Live <a href="#customizing-time-to-live" id="customizing-time-to-live"></a>

You can customize the default [time-to-live](https://docs.360dialog.com/partner/messaging/sending-template-messages#time-to-live) (TTL) for **authentication,** **utility** and **marketing** template messages by setting a custom TTL on the template body.

#### Defaults, Min/Max Values, and Compatibility Table <a href="#defaults--min-max-values--and-compatibility-table" id="defaults--min-max-values--and-compatibility-table"></a>

|                        | Authentication           | Utility                | Marketing              |
| ---------------------- | ------------------------ | ---------------------- | ---------------------- |
| **Default TTL**        | 10 minutes               | 30 days                | 30 days                |
| **Compatibility**      | Cloud API                | Cloud API              | Marketing Messages API |
| **Customizable range** | 30 seconds to 15 minutes | 30 seconds to 12 hours | 12 hours to 30 days    |

#### How to Customize TTL for Your Template <a href="#how-to-customize-ttl-for-your-template" id="how-to-customize-ttl-for-your-template"></a>

To set a custom TTL on an authentication, utility, or marketing template, include and set the value of the <mark style="color:$success;">`message_send_ttl_seconds`</mark> property in your sending template endpoint.

You can change the TTL on a previously configured template using this method, as well.

TTL can be customized in 1 second increments.

#### **Valid `message_send_ttl_seconds` property values**

* Authentication templates: `30` to `900` seconds (30 secs to 15 mins)
* Utility templates: `30` to `43200` seconds (30 secs to 12 hours)
* Marketing templates: `43200` to `2592000` (12 hours to 30 days)

Alternatively, you can set this value to `-1`, which will set a custom TTL of 30 days for either type of template.

Its recommended to set a TTL for all of your authentication templates, preferably equal to or less than your code expiration time, to ensure your customers only get a message when a code is still usable.

**Example (line 6)**

{% code lineNumbers="true" %}

```json
      {
        "name": "test_template",
        "language": "en_US",
        "category": "MARKETING",
      	// Configure your TTL in seconds below
        "message_send_ttl_seconds": "120",
        "components": [
          {
            "type": "BODY",
            "text": "Shop now through {{1}} and use code {{2}} to get {{3}} off of all merchandise.",
            "example": {
              "body_text": [
                [
                  "the end of August","25OFF","25%"
                ]
              ]
            }
          },
          {
            "type": "FOOTER",
            "text": "Use the buttons below to manage your marketing subscriptions"
          },
        ]
      }'
```

{% endcode %}

## Template Analytics

If you want to know the number of times a template has been sent, delivered, and read, and the number of times [URL buttons](https://developers.facebook.com/docs/whatsapp/business-management-api/message-templates/components#url-buttons) or [Quick Reply buttons](https://developers.facebook.com/docs/whatsapp/business-management-api/message-templates/components#quick-reply-buttons) in the template have been clicked, please check the [Template Analytics section](https://docs.360dialog.com/partner/messaging/template-messages/template-analytics).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.360dialog.com/partner/messaging/template-messages.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
