2.12 机器人标签
2.12.1 查询机器人命中标签信息
基本信息
Path: /api/v1/config/openapi/aiTag/getTag
Method: Get
请求参数
Headers
参数名称 | 参数值 | 是否必须 | 示例 | 备注 |
Content-Type | application/json | 是 | ||
token | ImixBz8ebhRDCmBKaq70jHMjU3xt1Pkai9SAsOFjN2z6RpX8cTPr1/gEFkssjRFY | 是 |
Query
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
abbreviate | string | 必须 | 企业缩写 | ||
callId | string | 必须 | 会话id | (call_id) | |
month | string | 非必须 | 需要查询的月份如:202110 当不传时默认查询当月数据 |
返回数据
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
msg | string | 必须 | 返回消息 | ||
code | integer | 必须 | 返回码 | ||
data | list | 非必须 | |||
├─ id | integer | 非必须 | 标识id | ||
├─ callId | string | 非必须 | 会话call_id | ||
├─ callType | integer | 非必须 | 电话类型, 预留字段暂无实际含义 | ||
├─ botId | string | 非必须 | 机器人标识id | ||
├─ tag | string | 非必须 | 命中的标签 | ||
├─ createTime | long | 非必须 | 生成时间(秒) |
2.12.2 查询机器人对话详情信息
基本信息
Path: /api/v1/config/openapi/aiTag/getDialog
Method: Get
接口描述:
请求参数
Headers
参数名称 | 参数值 | 是否必须 | 示例 | 备注 |
Content-Type | application/json | 是 | ||
token | ImixBz8ebhRDCmBKaq70jHMjU3xt1Pkai9SAsOFjN2z6RpX8cTPr1/gEFkssjRFY | 是 |
Query
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
abbreviate | string | 必须 | 企业缩写 | ||
callId | string | 必须 | 会话id | (call_id) | |
type | int | 非必须 | 类型 | 1:从cc库中获取 | |
month | string | 非必须 | 需要查询的月份如:202110 当不传时默认查询当月数据 仅当type=1时有效 |
返回数据
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | ||||||||||||||||||
msg | string | 必须 | 返回消息 | ||||||||||||||||||||
code | integer | 必须 | 返回码 | ||||||||||||||||||||
data | list | 非必须 | |||||||||||||||||||||
+id | int | 数据id | +sessionId | string | 会话id | +botId | int | 机器人id | +type | int | 类型 0 机器人话术; 1 用户话术; 2 识别的意图; 3 节点跳转; 5 提取到的信息; 6 挂机节点; 7 dtmf收键内容; 8:转接 | +content | string | type=0:欢迎致电智能银行,您可以简单说出您要办理的业务,如我要办卡,我要买理财等 type=1:我要买理财 type=2:多轮对话:{"type":"2","intent":"evt.intent.办卡","target":"0"} FAQ:{"input":"感谢","question":"谢谢","type":"2","intent":"evt.intent.谢谢","target":"1"} 字段说明:intent :意图名称 , target:命中类型 0:多轮对话 1:FAQ , question:FAQ 标题 input:用户输入 type=3:{"fromState":"main-4","toState":"main-5","type":"3","event":"evt.complete"} 字段说明:fromState:跳出组件id toState:跳入组件id , event:触发的事件 type=5:{"type":"5","collect":"{\"user.card_all_68b2ak6m\":\"信用卡\"}"} 字段说明: collect:槽位收集结果 type=6:{"type":"6","title":"main-32"} 字段说明:title:挂机节点id type=7:{"dtmf":"1","type":"7"} type=8:{"transferdata":"15337211093","type":"8","transfertype":"0"} 字段说明: transferdata:转接数据,服务号码或sip地址 transfertype:0:服务号码 1:sip地址 | +createTime | string | 创建时间 | ||||||
+id | int | 数据id | |||||||||||||||||||||
+sessionId | string | 会话id | |||||||||||||||||||||
+botId | int | 机器人id | |||||||||||||||||||||
+type | int | 类型 0 机器人话术; 1 用户话术; 2 识别的意图; 3 节点跳转; 5 提取到的信息; 6 挂机节点; 7 dtmf收键内容; 8:转接 | |||||||||||||||||||||
+content | string | type=0:欢迎致电智能银行,您可以简单说出您要办理的业务,如我要办卡,我要买理财等 type=1:我要买理财 type=2:多轮对话:{"type":"2","intent":"evt.intent.办卡","target":"0"} FAQ:{"input":"感谢","question":"谢谢","type":"2","intent":"evt.intent.谢谢","target":"1"} 字段说明:intent :意图名称 , target:命中类型 0:多轮对话 1:FAQ , question:FAQ 标题 input:用户输入 type=3:{"fromState":"main-4","toState":"main-5","type":"3","event":"evt.complete"} 字段说明:fromState:跳出组件id toState:跳入组件id , event:触发的事件 type=5:{"type":"5","collect":"{\"user.card_all_68b2ak6m\":\"信用卡\"}"} 字段说明: collect:槽位收集结果 type=6:{"type":"6","title":"main-32"} 字段说明:title:挂机节点id type=7:{"dtmf":"1","type":"7"} type=8:{"transferdata":"15337211093","type":"8","transfertype":"0"} 字段说明: transferdata:转接数据,服务号码或sip地址 transfertype:0:服务号码 1:sip地址 | |||||||||||||||||||||
+createTime | string | 创建时间 |