跳转到主要内容

预测式外呼 - 任务状态参数回调说明

接口说明

预测试外呼当一个任务开始之后,系统会根据创建任务时传入的参数,呼叫对应号码,当目标号码接通之后,系统会根据任务所属任务组中的坐席闲忙状态发生变化,将用户分配给任务组中的空闲坐席分机中,对应的分机就会响铃(此时会向后台配置的分机发生状态回调地址发送分机响铃状态回调数据),当客服人员接听(此时会向后台配置的分机状态回调地址发送分机接听状态回调数据)然后挂断(此时会向后台配置的分机状态回调地址发送分机挂断状态回调数据)之后,系统会向后台配置的话单推送回调地址发送话单回调数据。

回调方式

由客户提供一个可以接收json数据的接口地址,由我们配置或客户自行在后台配置都可以

分机状态回调数据示例

{
	"buuid"taskid":"9c6f2092-6aad-11eb-a1b9-5107cdf1d50a", "callee":"89683227899",
    "caller":"20280005"20260828142910757770",
	"companycode":"2028", "direction":"callout",
    "disnumber":"2120280001",
    "extnumber":"20280005",
    "isbleg":"true",
    "method":"2",
    "starttime":"1612857945"3562829",
	"status":"ring", 3,
	"type"round":"call", 1,
	"uuid"endtype": "9c568ac8-6aad-11eb-a1b3-5107cdf1d50a"over"
}

字段说明

字段 类型 说明
buuidtaskid string B侧唯一任务id
calleestring被叫号码(用户号码)
callerstring呼叫号码(分机号)
companycode string 公司编码
directionstring呼叫方向 callin 呼入、callout 呼出
disnumberstring显示号码
extnumberstring分机号
isblegstring是否B侧
methodstring呼叫方式、1分机、2手动、3接口、4双呼、5预测
starttimestring呼叫开始时间
status string 分机状态任务结束 ring 响铃 answer 接听 hangup 挂断3
typeround string 呼叫轮次
uuidendtype string 通话唯一id结束类型 over 正常结束, timeout 任务截止结束

话单回调数据示例

{
    "type":"callout",
    "callmethod":6,
    "starttime":"2021-02-09 10:00:03",
    "answertime":"",
    "endtime":"2021-02-09 10:00:15",
    "duration":12,
    "billsec":0,
    "crmid":"0",
    "memberid":"0",
    "chengshudu":"0",
    "disnumber":"211040260001",
    "destnumber":"81211623586",
    "extnumber":"000000",
    "recordfilename":"",
    "downloadip":"",
    "hangupdirection":10040,
    "hangupcause":10020,
    "companycode":"104026",
    "uuid":"863ff91e-6a7a-11eb-acf1-5107cdf1d50a",
    "userkey":"",
    "customuuid":"110001475"
}

字段说明

字段类型说明
typestring呼叫方式
callmethodint呼叫方式
starttimestring呼叫时间
answertimestring接听时间
endtimestring挂机时间
durationint等待接听时长
billsecint通话时长
crmidstring坐席id
memberidstring自定义参数
chengshudustring自定义参数
disnumberstring主叫号码
destnumberstring目标号码
extnumberstring分机号
recordfilenamestring通话文件名
downloadipstring下载ip
hangupdirectionint挂断方向
hangupcauseint挂断原因
companycodestring公司码
uuidstring通话唯一id
userkeystring用户按键
customuuidstring自定义参数