Skip to main content

Documentation Index

Fetch the complete documentation index at: https://beaver.voc.ai/llms.txt

Use this file to discover all available pages before exploring further.

当 AI 生成回复后,Shulex 会调用 UI 中配置的 replyUrl

请求格式

POST {replyUrl}
Content-Type: application/json
{replyAuthHeader}

默认 HTML 回调体

replyFormat 未配置或配置为 HTML 时,回调体如下:
{
  "ticketId": "order-2024-88001",
  "reply": "<p>I'm sorry about the damaged package. I've arranged a replacement for you.</p>\n",
  "replyType": "html"
}

TEXT 回调体

replyFormat 配置为 TEXT 时,Shulex 会先将 AI markdown 回复转成 HTML,再清洗为纯文本。
{
  "ticketId": "order-2024-88001",
  "reply": "I'm sorry about the damaged package. I've arranged a replacement for you.",
  "replyType": "text"
}

字段说明

字段类型说明
ticketIdstring对应原始工单 ID
replystringAI 生成的回复内容,格式由 replyFormat 决定
replyTypestringhtmltext

期望响应

第三方处理成功后需返回:
{
  "code": 0,
  "message": "success"
}
replyUrl 失败会按当前处理链路抛错。请尽快返回 2xx 响应,并对接口做幂等处理(幂等键可使用 ticketId + 回调类型)。