# 自动将客户添加到退订列表

{% hint style="info" %}
通过YCloud Chatbot自动识别客户退订意图，允许客户退订并自动加入退订列表，避免客户直接在向WhatsApp发起投诉。将有效避免WhatsApp账号被禁用。
{% endhint %}

示例：

当接收到客户要退订的消息时，Chatbot自动询问客户是否确认要退订，对于二次确认了退订的客户执行加入退订列表。

<figure><img src="/files/aqggabMXFlGJKHIi8jcB" alt=""><figcaption></figcaption></figure>

## 步骤1: 登陆YCloud账号，创建Chatbot Flow

<figure><img src="/files/9oYTDWslGulUdgLEgsN4" alt=""><figcaption></figcaption></figure>

## 步骤2: 添加退订的触发关键词

{% hint style="info" %}
建议：设置多个退订关键词，并且选择Containing(包含）而非 Exact matching(完全匹配)。这样，命中列表中的任意一个关键词都会触发Chatbot。设置完成后点击保存按钮。
{% endhint %}

<figure><img src="/files/ha5ck9UopBem4HzvJfHd" alt=""><figcaption></figcaption></figure>

## 步骤3: 确认客户退订意愿的消息（可选）

{% hint style="warning" %}
强烈建议加入此步骤，以免客户误入退订列表。您可以选择使用Ask a question组件，询问客户：请您确认是否要退订消息？
{% endhint %}

详细步骤：

1. 选择Ask a question 组件

<figure><img src="/files/kQsewV62akomQDsVxyV5" alt=""><figcaption></figcaption></figure>

2. 选择Buttons的消息形式

<figure><img src="/files/m9PDbIrzzQyZmKkiRWkh" alt=""><figcaption></figcaption></figure>

3. 设置询问内容：请您确认是否要退订消息？

* 设置Button的两个选择
  * 是的，我要退订你们的消息
  * 不，我点错了
* 设置完成后点击Save

<figure><img src="/files/eQUePOfZoUmx4XiQ1SxE" alt=""><figcaption></figcaption></figure>

4. 设置完成后连接 Keyword trigger 到 Ask a question 组件

<figure><img src="/files/Vvih44G5uywjIxnOORUp" alt=""><figcaption></figcaption></figure>

## 步骤4: 加入退订列表

1. 加入退订组件

<figure><img src="/files/IojOll0EjvlPDR1nmppN" alt=""><figcaption></figcaption></figure>

2. 可以选择是否要自动回复退订成功。如果需要添加自动回复，点击Auto-reply右侧开关，并在下方输入自动回复内容，选择Save进行保存。

<figure><img src="/files/iycB5mgyTN3HW3JHaGhh" alt=""><figcaption></figcaption></figure>

3. 将 Ask a question 组件中的 【是的，我要退订】按钮连接到退订组件

<figure><img src="/files/RWh73rnRPWjNXeEqmBNE" alt=""><figcaption></figcaption></figure>

## 步骤5: 增加发送文本（可选）

增加一个Send messages 文本组件，并连接到【不，我点错了】按钮

<figure><img src="/files/90F0KNCnRuzCVcFF67wk" alt=""><figcaption></figcaption></figure>

## 步骤6: 保存Chatbot并启用

编辑好Chatbot模版后，点击右上角的Save，并且在弹窗内点击Active > Save，即刻完成退订Chatbot的激活。当客户触发退订关键词，Chatbot会自动将此号码加入退订名单，并且显示在 Contact > Unsubscribe 的名单里。

<figure><img src="/files/RgSgAyjlg2gaT1iYAJtA" alt=""><figcaption></figcaption></figure>


---

# 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://helpdocs.ycloud.com/help-center/zh/chatbot/best-practice/zi-dong-jiang-ke-hu-tian-jia-dao-tui-ding-lie-biao.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.
