# 消息模板(Templates)

## **1. 为什么需要消息模板？**

在WhatsApp的日常交流中，我们可以随时发送任何内容。但在商业沟通的世界里，当企业需要主动、规模化地向客户发送重要通知、交易更新或营销信息时，就必须遵循一套既保证用户体验、又防止滥用的规则。

消息模板正是这一规则的核心体现。它不是一种限制，而是一种标准化、合规且高效的主动沟通工具，让企业能够在获得用户默示同意的框架下，可靠地触达客户。

## **2. 什么是消息模板？**

消息模板是经过Meta官方预先审核和批准的标准化消息格式。企业只能在24小时客户服务窗口之外，使用这些已批准的模板向用户发起对话或发送通知。WhatsApp 的设计哲学是保护用户免受骚扰。因此，任何非用户主动发起的商业消息（业务发起对话），都必须通过一个透明、可审核的格式进行。消息模板机制确保了：

* **用户知情权**：模板结构清晰，用户一眼可知消息来源和目的。
* **用户控制权**：模板通常包含明确的退订或反馈选项。
* **质量可控性**：Meta通过审核过滤掉误导、spam或低质量的内容。

## **3. 与自由消息的区别是什么？**

为了理解模板的“主动”特性，必须将其与“自由消息”对比：

|          | **消息模板**                 | **自由消息**                |
| -------- | ------------------------ | ----------------------- |
| **发送时机** | 可在24小时服务窗外（用户超过24小时未联系时） | 仅在24小时服务窗内（用户主动联系后24小时） |
| **内容格式** | 固定结构，需预先提交审核             | 自由灵活，随对话而定              |
| **主要用途** | 主动发起通知、验证码、营销            | 响应客户咨询，进行对话             |
| **发送权限** | 基于模板审核通过和业务验证获得          | 基于用户的主动行为开启             |

简单来说：您找用户，用消息模板开场；用户找您，用自由消息回复。

{% hint style="info" %}
请注意，同一[WABA](/whatsapp-chan-pin/whatsapp-xiang-guan-jie-shao.md)下的消息模板数不得超过250个。
{% endhint %}

## API创建消息模板

请参阅:

{% content-ref url="/spaces/sbd17k8pYGOpOfBIUKqm/pages/vuW79j4X6DL1HOgRAxZ3" %}
[WhatsApp Business API](/api-reference/whatsapp-business-api/whatsapp-business-api.md)
{% endcontent-ref %}


---

# 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.innopaas.com/whatsapp-chan-pin/editor.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.
