> For the complete documentation index, see [llms.txt](https://docs.patagon.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.patagon.ai/en/agent-optimization/message-templates.md).

# How to create message templates

Message templates let you send pre-approved messages to leads outside the 24-hour WhatsApp conversation window for follow-ups, reminders, and re-engagement campaigns.

1. In Meta Business Manager, go to Account Tools > Message Templates.
2. Click Create template and select a category: Marketing, Utility, or Authentication.
3. Write your message. You can include variables like {{1}} for the lead's name or {{2}} for a date.
4. Submit for Meta's review. Approval typically takes a few minutes to 24 hours.
5. Once approved, the template becomes available in Patagon AI under Agent > Capabilities > Templates tab.

{% hint style="warning" %}
Templates must be approved by Meta before use. Rejected templates usually contain promotional language in a Utility category. Match your content to the correct category.
{% endhint %}

Approved templates can be used in Campaigns to re-engage leads who haven't responded in more than 24 hours.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.patagon.ai/en/agent-optimization/message-templates.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
