大模型问答调试信息。
接口说明
仅支持新版机器人,只能查询到 90 天内的数据
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| AgentKey |
string |
否 |
业务空间 key,不传时访问默认业务空间,key 值在主账号业务管理页面获取 |
ac627989eb4f8a98ed05fd098bbae5_p_beebot_public |
| InstanceId |
string |
是 |
机器人 ID |
chatbot-cn-7QuUfaqMQe |
| MessageId |
string |
是 |
本条会话应答消息的 ID |
396E74B3-D84B-46CE-9E51-91C06AD22E31 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
Schema of Response |
||
| AnswerInfo |
object |
对话对应的答案信息 |
|
| AnswerReferenceInfo |
object |
命中答案的引用知识信息 |
|
| ItemList |
array<object> |
引用知识条目列表 |
|
|
object |
引用知识条目实体 |
||
| ContentType |
string |
引用文本类型 |
PLAIN_TEXT/RICH_TEXT |
| DataSource |
string |
引用知识来源 |
FLOW/DOC/FAQ/FAQ_DIRECT |
| Id |
string |
引用知识的 ID |
611926 |
| Number |
integer |
与 AnswerInfo.MessageBody.DirectMessageBody.SentenceList 中的 ReferNumber 一一对应 |
1 |
| ReferenceExt |
any |
知识类型专属拓展信息 |
{ "CollectedParams": { "ReturnMaster": "true" }, "Edges": [], "Nodes": [ { "InvokedApis": [ { "ApiName": "intentionRepeatCallQry" } ], "OptionalParams": [ "mobile", "intention" ], "Id": "22874cb7-c253-4832-a38d-7113b15ef7fc", "RequiredParams": [], "Name": "查询是否重复进线" }, { "InvokedApis": [ { "ApiName": "complaintAllChannelLatest" } ], "OptionalParams": [ "mobile", "billCode" ], "Id": "071b082e-ce76-47f9-8b8d-f29e0dd1015c", "RequiredParams": [], "Name": "查工单信息" }, { "Id": "db02f361-61ee-4e30-bda0-2fd62cf4ca46", "Name": "逻辑判断_35a6" }, { "OptionalParams": [], "Id": "97f68b60-2973-4d10-8e42-1cbfcbb15cf6", "RequiredParams": [ "returnMaster" ], "Name": "是否返回主流程" }, { "Id": "8167e4ec-a589-42de-97c2-271672b26ffe", "Name": "返回主流程" } ] } |
| Title |
string |
引用知识的标题 |
Is it possible to make the payment when the contract entity and the paying entity are different? |
| MessageBody |
object |
消息体 |
|
| Commands |
any |
指令参数,如转人工指令的转人工技能组 |
{ "SysToAgent": "{\"skillGroup\":\"\",\"ext\":\"\",\"toAgentReason\":\"HitKeywords\"}" } |
| DirectMessageBody |
object |
包含问答结果(答案、文本类型、推荐问、命中系统类型)的消息体 |
|
| ContentType |
string |
答案类型 |
RICH_TEXT/PLAIN_TEXT |
| HitSystemAskConfig |
string |
命中系统问答策略 |
SENSITIVE_WORD/NO_ANSWER/COMMANDS |
| RtDetail |
object |
本次问答的 rt 调试信息 |
|
| SentenceRtList |
any |
从文本侧收到用户问题开始,到依次生成正式答案过程中,每一段的 RT 列表 |
[200, 256, 300, 430] |
| TransitionRtList |
any |
从文本侧收到用户问题开始,到依次生成承接语过程中,每一段的 RT 列表 |
[130] |
| TransitionList |
array |
承接语列表 |
|
|
string |
承接语 |
稍等一下 |
|
| relatedQuestionList |
array |
相似问列表 |
|
|
string |
相似问 |
"how is the weather today" |
|
| sentenceList |
array<object> |
正式答案列表 |
|
|
object |
单条正式答案实例 |
||
| Content |
string |
正式答案条目 |
今天的天气是晴天 |
| ReferNumber |
integer |
生成本条答案,在 AnswerReferenceInfo.ItemList 中,对应的 Number,一一对应 |
1 |
| MessageId |
string |
本条会话应答消息的 ID |
2828708A-2C7A-1BAE-B810-87DB9DA9C661 |
| Pipeline |
array<object> |
整个问答流程的信息 |
示例见子元素 |
|
object |
整个问答流程的信息 |
示例见子元素 |
|
| Input |
any |
调试输入信息 |
用户问句:转人工\n命中规则:[转]人工[客服|服务|坐席] |
| Name |
string |
策略名称:
当 NodeType 为 system_strategy 时,才会有本字段 |
关键词转人工 |
| NodeType |
string |
节点类型,返回值:
|
system_strategy |
| Output |
any |
输出信息 |
commands:{\"sysToAgent\":\"{\\\"skillGroup\\\":\\\"\\\",\\\"ext\\\":\\\"\\\",\\\"toAgentReason\\\":\\\"HitKeywords\\\"}\"}\nresponse:正在为您转接人工客服 |
| RequestId |
string |
Id of the request |
E3E5C779-A630-45AC-B0F2-A4506A4212F1 |
| SessionId |
string |
本条应答消息所属会话的 ID |
19856284-0ba1-4da3-9a5a-05db2bdf296e |
示例
正常返回示例
JSON格式
{
"AnswerInfo": {
"AnswerReferenceInfo": {
"ItemList": [
{
"ContentType": "PLAIN_TEXT/RICH_TEXT",
"DataSource": "FLOW/DOC/FAQ/FAQ_DIRECT",
"Id": "611926",
"Number": 1,
"ReferenceExt": "{\n \"CollectedParams\": {\n \"ReturnMaster\": \"true\"\n },\n \"Edges\": [],\n \"Nodes\": [\n {\n \"InvokedApis\": [\n {\n \"ApiName\": \"intentionRepeatCallQry\"\n }\n ],\n \"OptionalParams\": [\n \"mobile\",\n \"intention\"\n ],\n \"Id\": \"22874cb7-c253-4832-a38d-7113b15ef7fc\",\n \"RequiredParams\": [],\n \"Name\": \"查询是否重复进线\"\n },\n {\n \"InvokedApis\": [\n {\n \"ApiName\": \"complaintAllChannelLatest\"\n }\n ],\n \"OptionalParams\": [\n \"mobile\",\n \"billCode\"\n ],\n \"Id\": \"071b082e-ce76-47f9-8b8d-f29e0dd1015c\",\n \"RequiredParams\": [],\n \"Name\": \"查工单信息\"\n },\n {\n \"Id\": \"db02f361-61ee-4e30-bda0-2fd62cf4ca46\",\n \"Name\": \"逻辑判断_35a6\"\n },\n {\n \"OptionalParams\": [],\n \"Id\": \"97f68b60-2973-4d10-8e42-1cbfcbb15cf6\",\n \"RequiredParams\": [\n \"returnMaster\"\n ],\n \"Name\": \"是否返回主流程\"\n },\n {\n \"Id\": \"8167e4ec-a589-42de-97c2-271672b26ffe\",\n \"Name\": \"返回主流程\"\n }\n ]\n }",
"Title": "Is it possible to make the payment when the contract entity and the paying entity are different?"
}
]
},
"MessageBody": {
"Commands": "{\n \"SysToAgent\": \"{\\\"skillGroup\\\":\\\"\\\",\\\"ext\\\":\\\"\\\",\\\"toAgentReason\\\":\\\"HitKeywords\\\"}\"\n }",
"DirectMessageBody": {
"ContentType": "RICH_TEXT/PLAIN_TEXT",
"HitSystemAskConfig": "SENSITIVE_WORD/NO_ANSWER/COMMANDS",
"RtDetail": {
"SentenceRtList": "[200, 256, 300, 430]",
"TransitionRtList": "[130]"
},
"TransitionList": [
"稍等一下"
],
"relatedQuestionList": [
"\"how is the weather today\""
],
"sentenceList": [
{
"Content": "今天的天气是晴天",
"ReferNumber": 1
}
]
}
}
},
"MessageId": "2828708A-2C7A-1BAE-B810-87DB9DA9C661",
"Pipeline": [
{
"Input": "用户问句:转人工\\n命中规则:[转]人工[客服|服务|坐席]",
"Name": "关键词转人工",
"NodeType": "system_strategy",
"Output": "commands:{\\\"sysToAgent\\\":\\\"{\\\\\\\"skillGroup\\\\\\\":\\\\\\\"\\\\\\\",\\\\\\\"ext\\\\\\\":\\\\\\\"\\\\\\\",\\\\\\\"toAgentReason\\\\\\\":\\\\\\\"HitKeywords\\\\\\\"}\\\"}\\nresponse:正在为您转接人工客服"
}
],
"RequestId": "E3E5C779-A630-45AC-B0F2-A4506A4212F1",
"SessionId": "19856284-0ba1-4da3-9a5a-05db2bdf296e"
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。