Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions document/content/guide/chat/meta.en.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"title": "Chat Box",
"root": false,
"pages": [
"specialMarkdownTemplates",
"htmlRendering",
"quoteList"
]
Expand Down
1 change: 1 addition & 0 deletions document/content/guide/chat/meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"title": "对话使用",
"root": false,
"pages": [
"specialMarkdownTemplates",
"htmlRendering",
"quoteList"
]
Expand Down
44 changes: 44 additions & 0 deletions document/content/guide/chat/specialMarkdownTemplates.en.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
---
title: Quick Replies
description: Quick start guide for quick replies in FastGPT chat
---

Quick replies let the AI output a group of clickable buttons in its response. When a user clicks a button, FastGPT sends that button text directly as the user's next message. This is useful for customer support, product introduction, sales guidance, and other scenarios where users need clear next-step options.

## Usage

Output a `quick-replies` code block in the AI response. Each line inside the code block is rendered as one quick-reply button.

### Syntax

````md
```quick-replies
View feature introduction
Learn pricing plans
Book a product demo
```
````

### Preview

![](/imgs/chat/specialMarkdown/quickReplies.png)

## Notes

- Write one quick-reply option per line. Blank lines are ignored.
- The total code block content must not exceed 300 characters.
- Clicking a quick reply sends the corresponding text directly and does not clear existing input.
- If the AI is still responding, clicking a quick reply will not send a new message immediately. FastGPT will prompt the user to wait until the current chat finishes.
- Quick replies only take effect in chat contexts where this capability is enabled, such as app chat, share link chat, and home chat.

## Recommended Format

We recommend providing 2 to 5 short and clear options each time.

````md
```quick-replies
Check order status
Request after-sales service
Contact support
```
````
44 changes: 44 additions & 0 deletions document/content/guide/chat/specialMarkdownTemplates.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
---
title: 快捷回复
description: FastGPT 对话中快捷回复的快速使用说明
---

快捷回复可以让 AI 在回复中输出一组可点击的按钮,用户点击后会直接发送对应文本。它适合用于客服咨询、产品介绍、售前引导等需要给用户提供下一步操作选项的场景。

## 使用方式

在 AI 回复正文中输出 `quick-replies` 代码块,代码块内每一行都会渲染为一个快捷回复按钮。

### 语法

````md
```quick-replies
查看功能介绍
了解价格方案
预约产品演示
```
````

### 效果图

![](/imgs/chat/specialMarkdown/quickReplies.png)

## 使用说明

- 每行一个快捷回复选项,空行会被自动忽略。
- 代码块内容总长度不超过 300 字符。
- 点击快捷回复后,会直接发送对应文本,不会清空输入框中已有的内容。
- 如果当前 AI 仍在回复中,点击快捷回复不会立即发送新消息,而是提示「正在聊天中……请等待结束」。
- 快捷回复仅在已开启该能力的对话场景中生效,例如应用对话、分享链接对话、首页对话等。

## 推荐写法

建议每次提供 2 到 5 个选项,并让选项尽量简短明确。

````md
```quick-replies
查询订单进度
申请售后服务
联系人工客服
```
````
1 change: 1 addition & 0 deletions document/content/toc.en.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ description: FastGPT Toc
- [/en/guide/build/workflow/nodes/variable_update](/en/guide/build/workflow/nodes/variable_update)
- [/en/guide/chat/htmlRendering](/en/guide/chat/htmlRendering)
- [/en/guide/chat/quoteList](/en/guide/chat/quoteList)
- [/en/guide/chat/specialMarkdownTemplates](/en/guide/chat/specialMarkdownTemplates)
- [/en/guide/dataset/collection_tags](/en/guide/dataset/collection_tags)
- [/en/guide/dataset/dataset_engine](/en/guide/dataset/dataset_engine)
- [/en/guide/dataset/faq](/en/guide/dataset/faq)
Expand Down
1 change: 1 addition & 0 deletions document/content/toc.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ description: FastGPT 文档目录
- [/guide/build/workflow/nodes/variable_update](/guide/build/workflow/nodes/variable_update)
- [/guide/chat/htmlRendering](/guide/chat/htmlRendering)
- [/guide/chat/quoteList](/guide/chat/quoteList)
- [/guide/chat/specialMarkdownTemplates](/guide/chat/specialMarkdownTemplates)
- [/guide/dataset/collection_tags](/guide/dataset/collection_tags)
- [/guide/dataset/dataset_engine](/guide/dataset/dataset_engine)
- [/guide/dataset/faq](/guide/dataset/faq)
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.