通话记录回调说明
描述
用于通话结束后,通过租户配置的地址把通话记录返回给租户;
开发须知
对接前,租户需提供POST请求的回调地址,配置后可进行回调
每条通话记录最多通知10次,调用接口并成功返回则该通话记录不会再通知(系统不保证对接方是否处理成功);
回调超时时间:5s(超时时间内未响应,系统会进行下一次推送)
服务地址
租户提供的回调地址
回调信息
| 参数 | 类型 | 说明 |
|---|---|---|
| id | String | 通话记录ID |
| iccCallId | String | 拨打通话记录id |
| tenantId | String | 租户ID |
| communicateVoiceId | String | 通话录音ID |
| iccRecordDate | String | icc开始接通电话时间戳 |
| callType | Integer | 通话类型(1呼入,2:呼出) |
| callingNumber | String | 主叫号码 |
| calledNumber | String | 被叫号码 |
| custNumberAttribution | String | 客户号码归属地 |
| custIspName | String | 客户号码运营商名称 |
| callWaitDuration | Integer | 呼叫等待时长及振铃时间(单位秒) |
| queueWaitDuration | Integer | 排队等待时长 |
| parkingWaitDuration | Integer | 振铃时间(单位秒) |
| digitUrl | String | IVR轨迹 |
| staffId | Long | 客服ID |
| staffName | String | 客服名称 |
| skillSetId | String | 技能组ID |
| communicateDuration | Integer | 通话时长 |
| communicateSource | Integer | 通话来源:(1:常规业务,2.批量外呼,3.IVR流程) |
| communicateBeginTime | Datetime | 通话开始时间 |
| communicateEndTime | Datetime | 通话结束时间 |
| createTime | Datetime | 创建时间 |
| customerName | String | 客户名称 |
| speechCallResult | Integer | 呼叫中心自定义通话结果0:默认值(无意义) 1:无法接通 2:已接通 3:无人应答,4:队列放弃 5:非服务时间 6:坐席振铃未接 7:客户速挂 8:IVR中放弃 9:客户振铃坐席挂机 10:禁止呼叫 |
| evaluationScore | Integer | 满意度评价结果0:未评价 1:非常满意 2:满意 3:一般,4:不满意 5:非常不满意 |
| expansionFields | String | 扩展字段 |
| acw | Integer | 话后时间(单位:秒) |
| transferId | String | 转接id,非0时才是转接id |
| handupDirection | Integer | 挂机方向:0表示客户挂断,1表示坐席挂断,2表示未知,3转接挂断 |
| hangUpDirectionType | String | 挂机方向:客户挂机: CONTACT_DROPPED_CALL,坐席挂机:AGENT_DROPPED_CALL,转接挂断:TRANSFER_DROPPED_CALL' |
| agentAnswerTime | Datetime | 坐席应答时间 |
| externalCustomerId | String | 外部-客户id,只有外呼任务能有数据 |
| externalData | String | 外部-透传数据,只有外呼任务能有数据 |
| taskId | Long | 外呼任务id,只有外呼任务能有数据 |
expansionFields说明:
| 参数 | 类型 | 说明 |
|---|---|---|
| type | Integer | 类型(0 - 通话小节,1 - 服务备注,2 - 单行文本,3 - 多行文本,4 - 下拉框,5 - 选框,6 - 数字,7 - 日期和时间) |
| name | String | 自定义字段名 |
| required | boolean | 是否必填 |
| otherRules | String | 规则 |
otherRules说明:
| 参数 | 类型 | 说明 |
|---|---|---|
| fieldInnerType | Integer | 1、下拉框 OR 选框(0 - 单选项;1 - 多选项)2、数字(0 - 数值;1 - 百分比)3、日期和时间(0 - 仅日期;1 - 日期和时间) |
| data | object | 自定义选项等 |
请求Body:
{
"data":{
"acw":5,
"agentLoginType":"",
"callResult":3,
"callType":1,
"calledNumber":"33330002",
"callingNumber":"18680872180",
"communicateBeginTime":1606188550000,
"communicateDuration":0,
"communicateEndTime":1606188571000,
"communicateSource":2,
"createTime":1606188575000,
"custIspName":"中国联通",
"custNumberAttribution":"重庆-",
"customerId":"81656c22af5644ec9a97127933b4cb6b",
"customerName":"",
"digitUrl":"开始>播放语音>转AI语音>转人工",
"evaluationScore":-1,
"expansionFields":"{}",
"handupDirection":0,
"hangUpDirectionType":"CONTACT_DROPPED_CALL",
"iccCallId":"77321526-3971-408e-adf2-7557dba9d2c3",
"id":"0605589a-c1f7-47a5-b75c-3e639e1b928a",
"noteStatus":1,
"parkingWaitDuration":1606188570,
"queueWaitDuration":3,
"skillSetId":"01105165021937Jr",
"speechCallResult":4,
"tenantId":"87462158132343186600590049",
"transferId":"0",
"communicateVoiceId":"1a87a49b-7fcc-4675-b985-80dc97d373f5",
"iccRecordDate":"1605318636358",
"expansionFields": "[{\"id\":121,\"type\":0,\"name\":\"通话小结\",\"required\":false,\"otherRules\":{},\"value\":[{\"id\":\"5ae13e0487284f7282c2cda41aa07a1c\",\"summary\":\"业务咨询\"}]},{\"id\":153,\"type\":4,\"name\":\"紧急程度\",\"required\":false,\"otherRules\":{\"data\":[{\"value\":\"一般\",\"selected\":true},{\"value\":\"加急\",\"selected\":false},{\"value\":\"暂缓\",\"selected\":false}],\"fieldInnerType\":0},\"value\":\"一般\"},{\"id\":122,\"type\":1,\"name\":\"服务备注\",\"required\":false,\"otherRules\":{},\"value\":\"客户告知健康宝没有更新,已告知客户联系健康宝客服\"}]"
}
}