> For the complete documentation index, see [llms.txt](https://docs.chatalog.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.chatalog.ai/zh-cn/coupon.md).

# 优惠券

优惠券功能可让你直接通过聊天机器人流程创建及派发可兑换的优惠券。你可以在「电子商务」页面管理优惠券，并通过 流程编辑器 中全新的「派发优惠券」流程区块自动派发优惠券给客户。

{% hint style="info" %}
此功能为**加购功能**，如需启用，请联系你的客户经理。
{% endhint %}

***

## 功能概览

通过优惠券功能，你可以：

* 创建及管理优惠券活动
* 设置优惠券有效期限及兑换限制
* 自定义优惠券兑换页面
* 通过聊天流程自动派发优惠券
* 查看优惠券兑换记录

***

## 进入优惠券功能

前往：**电子商务 → 优惠券**

你可以在此页面：

* 创建新优惠券
* 查看现有优惠券
* 查看兑换记录
* 设置兑换页面

***

## 创建优惠券

点击「新建优惠券」创建新优惠券。

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

### 必填栏位

<figure><img src="/files/fVfOBMPSB29QY3GYdJFK" alt="" width="375"><figcaption></figcaption></figure>

| 栏位  | 说明        |
| --- | --------- |
| 代码  | 客户可兑换的优惠码 |
| 名称  | 优惠券名称     |
| 有效期 | 优惠券有效时间范围 |

### 选填栏位

| 栏位        | 说明          |
| --------- | ----------- |
| 全店可兑换次数上限 | 优惠券总兑换次数上限  |
| 单客可兑换次数上限 | 每位客户可兑换次数上限 |
| 启用        | 启用或停用优惠券    |

### 注意事项

* 超过有效期限后，优惠券将无法兑换。
* 已停用的优惠券无法派发或兑换。
* 系统会自动检查兑换限制。

***

## 设置兑换页面

每张优惠券都可设置专属的兑换页面。在新建优惠券后，点击「查看」进入编辑。

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

### 可设置项目

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

| 设置          | 说明                |
| ----------- | ----------------- |
| 页面展示代码      | 设置优惠码显示方式         |
| 兑换按钮        | 设置兑换按钮行为          |
| 按钮文字（如设置按钮） | 自定义按钮显示文字         |
| 复制代码按钮      | 启用复制优惠码按钮         |
| 页面背景        | 自定义页面背景颜色         |
| 品牌图表        | 上传品牌 Logo         |
| 活动图         | 上传活动图片            |
| 条款及细则       | 设置优惠券使用规则、限制及兑换条款 |

### 兑换页面预览

右侧提供手机版预览，可即时查看客户体验。

完成后点击「保存兑换页」保存设置。

***

## 在对话流程中派发优惠券

你可以通过全新的「派发优惠券」流程区块，自动向客户派发优惠券。

### 使用方法

1. 打开「对话流程生成器」
2. 添加「派发优惠券」区块
3. 选择优惠券
4. 设置信息内容、按钮标题、图片URL及异常流程
5. 按需要连接其他流程区块
6. 保存并发布流程

<figure><img src="/files/mWn1NT6317Pvq4Covbv9" alt="" width="275"><figcaption></figcaption></figure>

### 可设置内容

| 栏位    | 说明         |
| ----- | ---------- |
| 优惠券选择 | 选择要派发的优惠券  |
| 信息内容  | 显示给客户的信息内容 |
| 按钮标题  | 自定义兑换按钮文字  |
| 图片URL | 上传活动图片     |

***

## 流程结果

「派发优惠券」区块支持不同的流程结果分支。

### 可用结果

| 结果        | 说明           |
| --------- | ------------ |
| 优惠券已过期    | 优惠券已超过有效期限   |
| 客户已达兑换上限  | 客户已达个人兑换次数限制 |
| 优惠券已达兑换上限 | 优惠券总兑换次数已达上限 |
| 错误        | 发生未知错误       |

你可将不同结果连接至其他流程区块。

***

## 查看兑换记录

你可以在兑换记录页面查看优惠券使用情况。

<figure><img src="/files/40fisqfrPy1d7n5bXFiu" alt=""><figcaption></figcaption></figure>

### 可查看资料

<figure><img src="/files/7XV1oKIHJZFWYTQ1MhS4" alt=""><figcaption></figcaption></figure>

| 栏位      | 说明        |
| ------- | --------- |
| 兑换记录 ID | 兑换记录编号    |
| 客户 ID   | 客户识别码     |
| 会话 ID   | 收件箱／渠道识别码 |
| 状态      | 兑换状态      |
| 兑换时间    | 完成兑换时间    |


---

# 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:

```
GET https://docs.chatalog.ai/zh-cn/coupon.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.
