句子秒懂 API
  1. 回调接口
句子秒懂 API
  • 🍊 句子专属知识库
  • Insight Open API
    • Insight Open API
    • 对话
      • 对话接口
      • 开始语音通话
      • 结束语音通话
    • 流程引擎
      • 获取流程引擎事件列表
      • 获取流程引擎执行历史
      • 添加历史消息到流程引擎
      • 触发流程引擎事件
      • 创建批量执行任务
      • 追加子任务
      • 提交批量任务
    • 知识库
      • 文档
        • 段落
          • 获取段落列表
          • 创建段落
          • 更新段落
          • 删除段落
        • 获取文档列表
        • 获取文档详情
        • 创建文档
        • 更新文档信息
        • 删除文档
        • 创建文档-自动分段
      • 网页
        • 创建网页-自动分段
      • FAQ
        • 创建 FAQ
      • 获取知识库列表
      • 获取知识库信息
      • 创建知识库
      • 更新知识库信息
      • 删除知识库
    • 回调接口
      • 点赞踩回调
        POST
      • 批量任务子任务执行结果回调
        POST
    • 获取 access token
      POST
  1. 回调接口

点赞踩回调

POST
/v1/bot-message/feedback
此接口为点赞踩的回调接口,当系统内发生点赞点踩的动作时,会回调对应的数据,包括了点赞踩发生的消息相关的数据,以及对应的触发器内容,最终生成的动作数据等

请求参数

Body 参数application/json

示例
{
  botId: "f7bb8f07-dc5c-416b-88d4-c1568f923857",
  sessionId: "20950312-c744-4e5d-8ac9-e4de6a1bed03",
  execId: "22b35345-f433-4f2a-b91f-7c71b7fd931b",
  triggerEvent: {
    triggerType: "receive-text-message",
    sessionId: "20950312-c744-4e5d-8ac9-e4de6a1bed03",
    receiveTextMessage: {
      text: "hi",
      role: "user",
    },
    history: [
      {
        content: [
          {
            type: "text",
            text: "hi",
          },
        ],
        role: "user",
      },
    ],
  },
  outputActions: [
    {
      type: "send-text-message",
      status: "send",
      payload: {
        text: "回复消息:\n\n\n\n发送人昵称:",
      },
      nodeId: "0ecd34f2-bdfa-43bb-a9ab-8acfcaf67528",
    },
  ],
  feedbackStatus: "none",
  feedback: undefined,
  messageId: undefined,
  receiverId: undefined,
  contactId: undefined,
  roomId: undefined,
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://insight.juzibot.com/v1/bot-message/feedback' \
--header 'Content-Type: application/json' \
--data-raw '{
  botId: "f7bb8f07-dc5c-416b-88d4-c1568f923857",
  sessionId: "20950312-c744-4e5d-8ac9-e4de6a1bed03",
  execId: "22b35345-f433-4f2a-b91f-7c71b7fd931b",
  triggerEvent: {
    triggerType: "receive-text-message",
    sessionId: "20950312-c744-4e5d-8ac9-e4de6a1bed03",
    receiveTextMessage: {
      text: "hi",
      role: "user",
    },
    history: [
      {
        content: [
          {
            type: "text",
            text: "hi",
          },
        ],
        role: "user",
      },
    ],
  },
  outputActions: [
    {
      type: "send-text-message",
      status: "send",
      payload: {
        text: "回复消息:\n\n\n\n发送人昵称:",
      },
      nodeId: "0ecd34f2-bdfa-43bb-a9ab-8acfcaf67528",
    },
  ],
  feedbackStatus: "none",
  feedback: undefined,
  messageId: undefined,
  receiverId: undefined,
  contactId: undefined,
  roomId: undefined,
}'

返回响应

🟢200成功
application/json
Body

示例
{}
修改于 2025-05-22 04:34:16
上一页
回调接口
下一页
批量任务子任务执行结果回调
Built with