获取AI对话详情

  • 获取AI对话详情

接口地址

POST/aiAPI/getAiDialogue.php

参数:

参数名 是否必须 类型 参数值 说明
userName string 公司账号名 公司账号名
passWord string 密码 通过获取密钥接口生成
calltime string 呼叫时间 时间格式:"2023-06-22 10:29:21"
zmrh_core_uuid string 会话唯一值 在AI挂机回调,或者获取AI任务详情中可以获取到

请求示例

Accept: application/json
Content-Type: application/josn;charset=utf-8
{
	"userName":"XXXX",
	"passWord":"XXXXXX",
	"calltime":"2023-06-22 10:29:21",
	"calltime":"api-16e648a6-b7e5-11ed-b953-00163e0e1a40",
}

返回信息

{
	"info": "获取AI线路成功!",
    "status": true,
	"data": [{
		"addtime": "2023-02-08 14:10:42",
		"nlu_project_id": "5",
		"recording_files": "http://xx.xx.xx/monitor/xxx-xxx-xxx-xxx-xxx/5/recod/default/2023-02-08/xxx/5_63_55.wav",
		"speak_role": "AI",
		"zmrh_appid": "xx-xx-xxx-xxx-900a7e1ad4d5",
		"zmrh_core_uuid": "api-xx-xx-xxx-xxxx-00163e09d63e",
		"display": "您好,请问是{客户姓名}{性别}吗?",
		"main_id": "63",
		"hangup": "0",
		"t_nlp_time":"120"
	}, {
		"addtime": "2023-02-08 14:10:48",
		"nlu_project_id": "5",
		"recording_files": "http://xxx.xxx.xxx/monitor/xxxx-xxx-xx-xxx-xxxx/5/monitor/2023-02-08/xxxx/0.wav",
		"speak_role": "human",
		"zmrh_appid": "xxx-xxxx-xxx-xxx-900a7e1ad4d5",
		"zmrh_core_uuid": "api-xxx-xxx-xxx-xxx-xxx",
		"display": "嗯,是的。",
		"key_worlds": "嗯/,/是的/。",
		"hit": "是的",
		"count_weight": "1",
		"node_class": "0",
		"intent_label": "已提醒",
		"t_asr":"456",
		"t_record":"2345"
	}]
}

返回参数

参数名 类型 参数值
status boolean 状态码
info string 返回信息
data array 数据
∟addtime datetime 添加时间
∟nlu_project_id string 话术ID
∟recording_files string 录音地址
∟speak_role string 角色, AI:机器人 human:用户
∟zmrh_appid string appid
∟display string 内容
∟zmrh_core_uuid string 呼叫唯一标识
∟main_id string 节点ID (AI对话独有)
∟hangup string 是否挂机 0:否 1:是(AI对话独有)
∟t_nlp_time string NLP响应时长,单位毫秒(AI对话独有)
∟key_worlds string 分词(用户对话独有)
∟hit string 击中分词(用户对话独有)
∟count_weight string 权重(用户对话独有)
∟node_class string 节点类型(用户对话独有)
∟intent_label string 意图标记(用户对话独有)
∟t_asr string ASR响应时长,单位毫秒(用户对话独有)
∟t_record string 用户录音,单位毫秒(用户对话独有)