查询用户反馈
GET/v1/aibot/feedback
查询用户反馈
Request
Query Parameters
botId stringrequired
Agent ID
Example: bot-xxx
type string
用户反馈类型,点赞 upvote 点踩 downvote
Example: upvote
sender string
评论创建用户
Example: user-xx
senderFilter string
评论创建用户过滤关系 include:包含 exclude:不包含 equal:等于 unequal:不等于 prefix:前缀
Example: contains
minRating number
最高评分
Example: 5
maxRating number
最低评分
Example: 1
from number
开始时间戳
Example: 1721475455
to number
结束时间戳
Example: 1721475456
pageSize number
分页参数,默认为10
Example: 10
pageNumber number
分页参数,默认为1
Example: 1
Responses
- 200
- default
查询反馈成功时返回
Response Headers
X-Request-Id string
请求ID
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
feedbackList object[]required
反馈查询结果
recordId stringrequired
对话记录 ID
type stringrequired
用户反馈类型,点赞 upvote 点踩 downvote
botId stringrequired
Agent ID
comment string
用户评论
rating number
用户评分
tags string[]
用户反馈的标签数组
input string
用户输入的问题
aiAnswer string
Agent 的回答
total numberrequired
反馈总数
{
"feedbackList": [
{
"recordId": "record-xxx",
"type": "upvote",
"botId": "bot-xxx",
"comment": "回复的好",
"rating": 5,
"tags": [
"回复贴切"
],
"input": "你是谁",
"aiAnswer": "我是一个智能体"
}
],
"total": 10
}
查询反馈失败时返回
- application/json
- Schema
- Example (from schema)
Schema
code string
错误代码
message string
错误信息
requestId string
请求ID
{
"code": "INVALID_CREDENTIALS",
"message": "Credentials are invalid",
"requestId": "6360ba4b-f672-434b-9dee-35686a5589a4"
}
Loading...