首页 帮助中心 API

平台主动推送通话记录

说明: AI语音应用配置客户接口状态报告地址后,平台将主动向报告地址推送通话记录。

推送参数说明:

参数 说明 类型

callId

通话记录ID

String

appId

应用ID

String

robotCallJobId

任务ID

Long

dialogFlowId

话术ID

Long

tenantPhoneNumberId

线路ID

Long

calledPhoneNumber

客户手机号

String

startTime

拨打开始时间戳(秒)

Long

endTime

拨打结束时间戳(秒)

Long

resultStatus

通话结果:
ANSWERED:已接听
NO_ANSWER:无应答
BUSY:忙线中
POWER_OFF:关机
OUT_OF_SERVICE:停机
REFUSED:拒接
VACANT_NUMBER:空号
CAN_NOT_CONNECT:无法接通
FROM_PHONE_ERROR:主叫欠费
SYSTEM_ERROR:外呼失败
CALL_LOSS:多并发呼损
TRANSFER_ARTIFICIAL:转人工呼损

String

hangupBy

挂断状态

String

customerConcern

用户关注点

Array

analysisBasis

意向分析依据

String

chatDuration

通话时长(秒)

Long

billingTime

计费时长(秒)

Long

pay

消费金额(€)

String

chatRound

通话轮次

Long

attributes

用户属性

Array

properties

自定义变量

Map

intentLevelDetailName

意向标签名称

String

callRecordTagIds

通话标签ID

Array

callRecordTagNames

通话标签名称

Array

customerTagIds

客户标签ID

Array

customerTagNames

客户标签名称

Array

fullAudioUrl

用户和AI合成录音

String

customerAudioUrl

用户录音

String

dynamicProperties

通话过程中动态变量

Map

callDetailList

对话详情

Array

   callDetailId

对话ID

Long

   text

对话说的具体文字内容

String

   type

说话者 (PERSON, “人”),(ROBOT, “机器人”)

String

   startOffset

单句偏移量起始值(单位毫秒,以偏移量在录音文件里截取单句录音。AI说话不提供偏移量)

Long

   endOffset

单句偏移量结束值

Long

callCount

呼叫次数

Long

redialTimes

自动重播次数

Long

推送URL:

                      
                        用户配置的http推送地址
                      
                    

推送示例:


	Request URL:
		用户配置的http推送地址
	Request Method:
		POST
	Request Headers:
		Content-Type: application/json;charset=UTF-8
	Request Body:
	{
		"callId": "2209221456062000006",
		"calledPhoneNumber": "86111111111111",
		"chatDuration": 0,
		"chatRound": 0,
		"customerConcern": [0,1,2,3,4,5],
		"dialogFlowId": 8663,
		"fullAudioUrl": "https://test.com/media.wav",
		"intentLevelDetailName": "E(Can't contact the applicant)",
		"pay": "0",
		"analysisBasis": "无法接通",
		"appId": "i1RtTPv3",
		"resultStatus": "CAN_NOT_CONNECT",
		"robotCallJobId": 47,
		"startTime": 1663852755,
		"endTime": 1663852780,
		"tenantPhoneNumberId": 2959,
		"attributes": [
			"有钱"
		],
		"billingTime": 0,
		"callDetailList": [
			{
				"callDetailId": 1,
				"text": "喂,您好",
				"type": "ROBOT"
			},
			{
				"callDetailId": 2,
				"endOffset": 11090,
				"startOffset": 5890,
				"text": "嗯",
				"type": "PERSON"
			}
		],
		"properties": {
			"收入情况": "11",
			"证件类别": "1111111",
			"婚姻状态": "1"
		}
	}


                    

响应示例:

                                                
                                                    Http响应200成功即可,平台不做响应内容校验
                                                

                  
 

意见反馈

0/500