在线机器人快捷短语
查询快捷短语点击数据
查询快捷短语点击数据。
接口级参数规则:startTime、endTime 必填且必须大于 0;startTime 不能大于 endTime。
请求字段限制:
- startTime:必填,查询开始时间,毫秒时间戳,必须大于 0
- endTime:必填,查询结束时间,毫秒时间戳,必须大于 startTime
请求参数
| 名称 | 类型 | 必填 | 描述 | 示例值 |
|---|---|---|---|---|
| appKey | string | 是 | 应用 AppKey | 1c088a89de51d0af457616605f28390f |
| time | int64 | 是 | 请求时间戳(秒);与服务器时间误差超过 10 分钟会鉴权失败 | 1511832531 |
| checksum | string | 是 | 请求签名校验和 | f570a5eb049eb803b086e45829b07e48 |
| checksumAlgorithm | int32 | 否 | 签名算法:0-SHA-1,1-SHA-256;不传默认为 0(SHA-1) | 0 |
请求体
| 名称 | 类型 | 必填 | 描述 | 示例值 |
|---|---|---|---|---|
| startTime | int64 | 是 | 查询开始时间,毫秒时间戳,必须大于 0 | 1700000000000 |
| endTime | int64 | 是 | 查询结束时间,毫秒时间戳,必须大于 startTime | 1700100000000 |
返回参数
| 名称 | 类型 | 描述 | 示例值 |
|---|---|---|---|
| code | int32 | 业务状态码,200 表示成功 | 200 |
| message | string | 响应消息 | success |
| data | object[] | 业务数据列表 | |
| └templateId | int64 | 模板 ID | 10002 |
| └robotId | int64 | 机器人 ID | 123456 |
| └title | string | 标签名称 | 物流查询 |
| └createTime | int64 | 创建时间,毫秒时间戳 | 1700000000000 |
| └userId | int64 | 访客 ID | 10001 |
| └fid | string | 快捷短语标识 | fid-001 |
| total | int32 | 分页总数,分页接口返回 | 100 |
| requestId | string | 链路请求 ID | 0a1b2c3d4e5f |
| result | object | 部分历史接口使用 result 字段承载业务数据 |
错误码
| 状态码 | 描述 |
|---|---|
| 14001 | AppKey 缺失或不存在 |
| 14002 | checksum 校验失败 |
| 14003 | 请求时间戳与服务器时间误差超过 10 分钟 |
| 14004 | 请求体不是合法 JSON 对象,或参数缺失、格式非法 |
| 14009 | 频控限制:接口调用超过限流阈值 |
| 14500 | 服务内部错误 |
| 14501 | 数据查询范围超出限制 |
| 14515 | 当前 AppKey 无接口或资源访问权限 |
postEndpoint
/openapi/robot/rapid/phrase/click/datacurl -X POST "https://qiyukf.com/openapi/robot/rapid/phrase/click/data?appKey=1c088a89de51d0af457616605f28390f&time=1511832531&checksum=f570a5eb049eb803b086e45829b07e48" \ -H "Content-Type: application/json" \ -d '{ "startTime": 1700000000000, "endTime": 1700100000000 }'{
"code": 200,
"data": {},
"message": "success"
}{
"code": 14001,
"message": "AppKey not exists"
}{
"code": 14002,
"message": "Bad checksum"
}{
"code": 14003,
"message": "Bad time"
}{
"code": 14004,
"message": "body内容json解析错误"
}{
"code": 14009,
"message": "单位时间内请求过于频繁"
}{
"code": 14500,
"message": "Internal error"
}{
"code": 14501,
"message": "Data limit exceeded"
}{
"code": 14515,
"message": "未开通机器人服务"
}这篇文档有帮助吗?
快捷短语跳转
快捷短语跳转。
接收第三方大模型异步回调
接收第三方大模型异步回调。 接口级参数规则:robotId、sourceType、sessionId、questionUid、answer、answerType 必填;sourceType 必须是接口支持的来源场景。 请求字段限制: - robotId:必填,机器人 ID - sourceType:必填,来源场景,按 SourceType 传入:机器人会话、机器人测试、辅助人工、OpenAPI 等 - sessionId:必填,当前会话 ID - question:必填,访客问题 - questionUid:必填,访客问题对应的唯一消息 ID - answer:必填,第三方大模型答案内容 - answerType:必填,答案类型,按现有 GPT 匹配结果类型传入 - transType:选填,转接类型:0-无转接,1-转人工 - groupId:选填,转人工客服组 ID