Skip to content

Commit 71fd240

Browse files
pythonHuangclaude
andcommitted
docs: README模型助手章节补充自定义助手完整使用流程(创建/开始对话/多轮提问/结束输出/历史记录)中英文双语
Co-Authored-By: Claude Code <noreply@anthropic.com>
1 parent 6645959 commit 71fd240

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

‎README.md‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,14 @@ docker-compose up -d
8787

8888
自定义助手支持**多轮对话**:聊天界面气泡消息、完整历史上下文、结束对话时按输出参数生成最终 JSON 结果、开启新对话与历史记录查看。
8989

90+
#### 自定义助手使用流程
91+
92+
1. **创建助手**:模型助手管理 → 添加助手,配置名称、描述、系统提示词(人设与任务说明)、输入参数(运行页表单)、输出参数(结束对话时按 JSON 解析展示)、辅助提问词(快捷按钮清单),启用后自动出现在「模型助手」菜单
93+
2. **开始对话**:点击菜单进入助手运行页,填写输入参数(按类型渲染:文本/数字/日期/开关/下拉),点击「开始对话」
94+
3. **多轮提问**:聊天框输入消息回车发送,每一轮都携带完整对话历史;辅助提问词按钮一键填入常用提问,可多轮追问
95+
4. **结束对话**:点击「结束对话」,模型基于完整对话生成最终结果 — 配置了输出参数时按 JSON 解析并在「最终结果」面板分栏展示,否则直接结束
96+
5. **历史记录**:顶部「历史」打开抽屉,查看该助手的全部会话(进行中/已结束),可继续未结束的对话、查看已结束会话的最终结果或删除;「新对话」随时重新开始
97+
9098
### 流程设计器内 AI 生成
9199

92100
流程设计器工具栏同样提供「AI 生成」按钮,例如:
@@ -346,6 +354,14 @@ The "AI Assistants" menu provides four assistants:
346354

347355
Custom assistants support **multi-turn conversations**: chat bubbles, full history context, end-conversation to produce final JSON results from output params, new conversation and history viewing.
348356

357+
#### Custom Assistant Workflow
358+
359+
1. **Create**: AI Assistant Management → add an assistant with name, description, system prompt, input params (rendered as a form on the run page), output params (parsed from JSON on end), and quick-prompt buttons; enabled assistants appear in the "AI Assistants" menu automatically
360+
2. **Start**: open the assistant run page from the menu, fill in the input params (typed inputs: text/number/date/switch/select) and click "Start Conversation"
361+
3. **Multi-turn chat**: type and send messages — every round carries the full history; quick-prompt buttons fill common questions in one click; ask follow-ups freely
362+
4. **End**: click "End Conversation" — the model produces the final result from the whole conversation; with output params configured it returns JSON shown in the "Final Result" panel
363+
5. **History**: the "History" drawer lists all conversations (ongoing / ended) — resume unfinished ones, review final outputs of ended ones, or delete; "New Conversation" restarts anytime
364+
349365
### In-Designer AI Generation
350366

351367
The Flow Designer toolbar also has an "AI Generate" button, e.g.:

0 commit comments

Comments
 (0)