用途
Escalation 是 Golembot 中的人工升级协议技能,用于在机器人无法处理或不宜自行处理用户请求时,将请求转交给人工客服,并留下可追溯的升级记录。
何时升级
根据资料,以下情况应触发升级:
- 无法自信地回答用户的问题;
- 用户明确要求与真人沟通;
- 请求涉及敏感操作(财务、法律、安全);
- 检测到安全隐患;
- 用户在多次尝试失败后表现出不满。
主要能力
该技能的核心能力是记录升级条目。升级时需先告知用户其请求正在被升级,然后向 .golem/escalations.jsonl 写入一条 JSON 记录(每行一个 JSON 对象)。
示例命令:
echo '{"ts":"2026-03-15T10:00:00Z","sessionKey":"feishu:chat123:user456","reason":"User requested human support for billing issue","context":"User asked about refund policy, I could not find the answer","status":"open"}' >> .golem/escalations.jsonl
升级记录字段
| 字段 | 类型 | 说明 |
|---|---|---|
| ts | string | ISO 8601 时间戳 |
| sessionKey | string | 当前会话键 |
| reason | string | 升级原因 |
| context | string | 讨论内容的简要摘要 |
| status | string | 创建时始终为 "open" |
使用方式
- 告知用户请求正在被升级;
- 向
.golem/escalations.jsonl追加一条符合上述字段结构的 JSON 记录; - 使用回复模板回应用户,例如:"I've flagged this for human review. A team member will follow up on your request about [topic]. In the meantime, is there anything else I can help with?"
验证升级
写入记录后,可确认文件存在且条目已追加:
tail -1 .golem/escalations.jsonl
适用场景
适用于 Golembot 在对话中遇到无法解决、敏感或需要人工介入的请求时,作为转交人工并留存记录的机制。
限制
资料未提供关于该技能的收费、价格、平台支持范围、效果保证或更多使用步骤的信息,暂未提供。