> For the complete documentation index, see [llms.txt](https://docs.innopaas.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.innopaas.com/whatsapp-chan-pin/editor/yan-zheng-ma-authentication-mu-ban.md).

# 验证码(Authentication)模板

如何在InnoPaaS平台创建WhatsApp验证码模板。

平台支持新版可视化模板编辑器（推荐）与旧版编辑器，可在编辑页点击【切换到旧版】来回切换；新版支持**可视化自由搭建、实时预览、Meta 规范前置校验、多组件灵活配置**，建议优先使用新版。

## 1.创建模板（新版）

### 1.1 选择WABA

选择WhatsApp产品，选择【模板】，进入页面后选择想要在哪个WABA下创建消息模板，点击【新建模板】**。**

<figure><img src="https://2201452154-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtZIe9DCfJsGdG2Apng7d%2Fuploads%2Fy3GJQLuPKOSjalUhuN56%2Fimg_v3_0216s_42ec06ac-4e9d-4871-9d56-b7dced97594g.png?alt=media&amp;token=c9308bab-b8f8-428d-9fdf-ea82635571f9" alt=""><figcaption></figcaption></figure>

### 1.2 创建验证码模板

选择**验证码**模板类型，点击画布可在右侧面板进行编辑配置。上方可设置模板名称、选择模板语言，查看 Meta 校验报错，无误后即可提交审核。

<figure><img src="https://2201452154-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtZIe9DCfJsGdG2Apng7d%2Fuploads%2F3pz2e3a7YfZu2OasbZxr%2Fimg_v3_0216s_ff776731-4c31-46f9-bb38-9e5738c9455g.png?alt=media&amp;token=36004c00-e764-42e6-8248-ba82ea0ba2dc" alt=""><figcaption></figcaption></figure>

## 2. 创建模板（旧版）

### 2. 1 选择WABA

选择WhatsApp产品，选&#x62E9;**“Templates”**，进入页面后选择想要在哪个WABA下创建消息模板，点&#x51FB;**“+ New templates”。**

<figure><img src="https://2201452154-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtZIe9DCfJsGdG2Apng7d%2Fuploads%2FHazJcpBQHEiGynd4mhAy%2Fimage.png?alt=media&amp;token=97d6e6e8-4c67-47a0-b982-d202624e36f3" alt=""><figcaption></figcaption></figure>

### 2.2 选择验证码模板类型

<figure><img src="https://2201452154-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtZIe9DCfJsGdG2Apng7d%2Fuploads%2FHEjNgtHJ6CbpeRiSONKj%2Fimage.png?alt=media&amp;token=4ddd58ed-9512-4d16-85aa-cf58b3c12803" alt=""><figcaption></figcaption></figure>

#### 2.2.1 普通验证码

验证码模板分为**普通验证码**和**零轻触验证码**，普通验证码按以下操作即可。

<figure><img src="https://2201452154-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtZIe9DCfJsGdG2Apng7d%2Fuploads%2FbtzjjBVQJWDHcaBZPgme%2Fimage.png?alt=media&amp;token=98d31e9a-c33b-4d15-be1e-303607eba501" alt=""><figcaption></figcaption></figure>

#### 2.2.2 零轻触验证码

{% hint style="info" %}
通过使用包含零轻触一键自动填写功能的身份验证模板，您可以将一次性密码或验证码连同一键自动填写按钮一起发送给用户。当 WhatsApp 用户轻触该自动填写按钮时，WhatsApp 客户端将触发一个活动，这会打开您的应用APP并向该应用发送密码或验证码，当集成了WhatsApp一键认证的应用会自动捕获这个验证码，用户无需切换到WhatsApp进行复制验证码。

详情请阅读：<https://rkzav3pcv4.feishu.cn/wiki/NBEZw0fKmimy3akEj72c33lJnqc>
{% endhint %}

<figure><img src="https://2201452154-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtZIe9DCfJsGdG2Apng7d%2Fuploads%2FoekCb94inIITR3G7jnfh%2Fimage.png?alt=media&amp;token=ac6e67a1-e6ef-4b84-a0ac-9b9ce03ad6cf" alt="" width="375"><figcaption></figcaption></figure>
