跳到主要内容

📝 提示词

把复杂指令包装成可复用的 slash command 和表单。

Prompts 允许你把高频指令保存成斜杠命令。比如在任意聊天里输入 /summarize,就能立即展开完整提示词。再加上自定义输入变量后,用户还会先看到一个弹窗表单,里面可以有下拉框、日期选择器、文本框等输入项。这样每个人都不需要再记住完整措辞或参数结构。

每次变更都会进入版本历史。你可以回滚旧版本、比较差异,也可以结合访问控制把 Prompt 共享给团队。

组织感知 Prompt 共享

在启用了组织的部署中,Prompt 的共享仍然受租户边界约束。某个 Prompt 可以在允许范围内公开,但仍对其他组织的用户不可见。


为什么要用 Prompts

不要重复输入同一套说明

保存一次,用 /command 反复调用。Bug report 模板、会议纪要、代码审查、内容 brief,凡是输入超过两次的东西,都值得变成 Prompt。

把 Prompt 变成可交互表单

给变量加类型,例如下拉框、日期、数字、复选框,用户就能通过清晰表单来运行复杂 Prompt,而不必手工编辑原始模板。

带回滚的版本历史

每次保存都会产生新版本。你可以并排比较版本差异,把旧版本恢复成生产版本,也可以追踪是谁改了什么。

可控共享

你可以按用户、按组共享 Prompt。公开 Prompt 会出现在所有用户的 / 建议列表里;私有 Prompt 则只留在你自己的工作区。


关键能力

Slash commands通过 /command 快速插入完整 Prompt
📋 输入变量表单文本、下拉、日期、数字、复选框等类型会自动生成表单
🕑 版本历史完整变更跟踪、commit message、回滚与生产版本切换
🔄 系统变量{{CURRENT_DATE}}{{USER_NAME}}{{CLIPBOARD}} 等在运行时自动替换
🔒 访问控制可共享给用户、用户组或公开
🔀 启用 / 禁用可临时下线 Prompt,而不必删除
🏷️ Tags对 Prompt 库进行分类和筛选

创建 Prompt

进入 工作区 > 提示词,点击 + 新建提示词

字段含义
Name便于识别的名称
Tags用于分类筛选
Access控制谁可以查看和使用
Command触发用的 slash command,例如 /summarize
Prompt Content实际发送给模型的模板内容,可包含变量
Commit Message可选,记录本次修改说明

建议:

  • 变量名尽量清晰,例如 {{your_name}},不要用 {{var1}}
  • 给字段提供可理解的 placeholder
  • 对合理场景提供 default
  • 只有真正必要的字段才加 :required

公开 Prompt 会出现在每个用户的 / 建议中,所以应谨慎决定哪些东西适合公开。


变量

系统变量

运行时自动替换:

变量含义
{{CLIPBOARD}}剪贴板内容(需要剪贴板权限)
{{CURRENT_DATE}}当前日期
{{CURRENT_DATETIME}}当前日期时间
{{CURRENT_TIME}}当前时间
{{CURRENT_TIMEZONE}}当前时区
{{CURRENT_WEEKDAY}}当前星期几
{{USER_NAME}}你的显示名
{{USER_EMAIL}}你的邮箱
{{USER_BIO}}用户资料中的简介
{{USER_GENDER}}用户资料中的性别
{{USER_BIRTH_DATE}}用户资料中的生日
{{USER_AGE}}根据生日计算出的年龄
{{USER_LANGUAGE}}当前用户语言
{{USER_LOCATION}}用户位置(需要 HTTPS 和界面开关支持)

自定义输入变量

当你在 Prompt 内容中加入变量时,用户在触发 slash command 时会看到相应表单。

简单写法会生成单行文本框:

{{variable_name}}

带类型的写法可以指定具体字段类型:

{{variable_name | type:property="value"}}

默认所有自定义变量都是可选的。加上 :required 才变成必填:

{{title | text:required}}
{{notes | textarea:placeholder="Additional context (optional)"}}

支持的输入类型

类型说明示例
text单行文本{{name | text:placeholder="Enter name":required}}
textarea多行文本{{description | textarea:required}}
select下拉框{{priority | select:options=["High","Medium","Low"]:required}}
number数字输入{{count | number:min=1:max=100:default=5}}
checkbox布尔开关{{include_details | checkbox:label="Include analysis"}}
date日期选择器{{start_date | date:required}}
datetime-local日期时间选择器{{appointment | datetime-local}}
color颜色选择器{{brand_color | color:default="#FFFFFF"}}
email带校验的邮箱字段{{email | email:required}}
range滑条{{rating | range:min=1:max=10}}
tel电话号{{phone | tel}}
time时间选择器{{meeting_time | time}}
url带校验的 URL 字段{{website | url:required}}
month月份选择器{{billing_month | month}}
map交互式地图坐标输入(实验性){{location | map}}

Message 和 Prompt Modifier

这一类 modifier 对 task model Prompt 很有用,尤其是在对话里包含很长的文档或代码块时。

Prompt 截断

{{prompt}} 支持按字符截断:

Modifier效果
{{prompt:start:N}}前 N 个字符
{{prompt:end:N}}后 N 个字符
{{prompt:middletruncate:N}}前半 + 后半,总计 N 个字符

Message selector 与 pipe filter 的区别

{{MESSAGES}} 有两类 modifier:

Message selector(冒号 :)控制保留多少条消息

Selector效果示例
START:N取前 N 条消息{{MESSAGES:START:5}}
END:N取后 N 条消息{{MESSAGES:END:5}}
MIDDLETRUNCATE:N取前 N/2 条和后 N/2 条消息{{MESSAGES:MIDDLETRUNCATE:6}}

Pipe filter(竖线 |)控制每一条消息的内容长度

Filter效果示例
|start:N每条消息保留前 N 个字符\{\{MESSAGES|start:300\}\}
|end:N每条消息保留后 N 个字符\{\{MESSAGES|end:300\}\}
|middletruncate:N每条消息保留前后两半,总计 N 个字符\{\{MESSAGES|middletruncate:500\}\}

你也可以组合使用:

语法含义
\{\{MESSAGES:END:2|middletruncate:500\}\}最后 2 条消息,每条截成 500 字符
\{\{MESSAGES:START:5|start:200\}\}前 5 条消息,每条只取前 200 字符
\{\{MESSAGES:MIDDLETRUNCATE:10|middletruncate:50\}\}前 5 条 + 后 5 条,每条截成 50 字符
注意

{{MESSAGES:MIDDLETRUNCATE:500}}500 指的是消息条数,不是字符数。要限制字符数,必须用 pipe filter。


版本历史

每次保存都会创建一个新版本。编辑 Prompt 时,History sidebar 会显示所有版本,包括 commit message、作者、时间戳,以及当前线上版本的 “Live” 标记。

  • 点击任一版本可以预览
  • 通过 Set as Production 恢复成当前生产版本
  • 可从菜单中删除旧版本,但当前生产版本不能删除
历史迁移

版本化功能上线前创建的 Prompt 会自动迁移,其内容会作为初始 “Live” 版本保留。旧的基于 command 的 URL 结构也已迁到基于 ID 的结构,因此历史书签可能需要更新。


示例

Bug report generator(/bug_report

Generate a bug report with the following details:

**Summary:** {{summary | text:placeholder="A brief summary of the issue":required}}
**Priority:** {{priority | select:options=["Critical","High","Medium","Low"]:default="Medium":required}}
**Steps to Reproduce:**
{{steps | textarea:placeholder="1. Go to...\n2. Click on...\n3. See error...":required}}

**Additional Context:** {{additional_context | textarea:placeholder="Browser version, OS, screenshots, etc."}}
**Workaround:** {{workaround | textarea:placeholder="Any temporary solutions found"}}

Please format this into a clear and complete bug report document.

Meeting minutes(/meeting_minutes

# Meeting Minutes

**Date:** {{meeting_date | date:required}}
**Time:** {{meeting_time | time:required}}
**Title:** {{title | text:placeholder="e.g., Weekly Team Sync":required}}
**Attendees:** {{attendees | text:placeholder="Comma-separated list of names":required}}

## Agenda / Key Discussion Points
{{agenda_items | textarea:placeholder="Paste the agenda or list the key topics discussed.":required}}

## Decisions Made
{{decisions | textarea:placeholder="Key decisions and outcomes"}}

## Action Items
{{action_items | textarea:placeholder="Action item, assignee, and deadline for each."}}

## Next Meeting
**Date:** {{next_meeting | date}}
**Topics:** {{next_topics | text:placeholder="Items to discuss next time"}}

Please format this into a clean and professional meeting summary.

标题生成(task model 模板)

Chat history:
<chat_history>
{{MESSAGES:END:2|middletruncate:500}}
</chat_history>

Generate a short title for this conversation.

这个模板只会发送最后两条消息,并把每条限制在 500 字符以内。