6. 通话流程
6.1 外呼流程事件
6.1.1 外呼流程(呼叫外线)
makecall --> outringing --> outcall --> calledringring --> answer --> cancelmakecall --> after
EventName | API | Remark |
after | 无 | 外呼座席挂机时,会收到after事件 |
answer | 无 | 外呼用户摘机时,会受到answer事件 |
calledringing | 无 | 外呼用户振铃时,会收到callerdringring事件 |
cancelmakecall | callcenter.cancelmakecall() | 调用挂机接口,会收到cancelmakecall事件 |
makecall | callcenter.callout() | 调用外呼接口,会收到makecall事件响应 |
outcall | 无 | 外呼座席摘机时,会收到outcall事件 |
outringing | 无 | 外呼座席振铃时,会收到outringing事件 |
6.1.1.1 makacall响应数据
事件参数名 | 参数类型 | 参数说明 |
Type | String | 固定值makecall |
Status | Int | 状态码0正常 非0错误 |
Reason | String | 原因 |
Callid | String | 发起呼叫成功,产生的通话唯一标识 |
6.1.1.2 outringing响应数据
事件参数名 | 参数类型 | 参数说明 |
Type | String | 固定值outringing |
Called | String | 被叫号码 |
Caller | String | 显号 |
Callid | String | 通话唯一标识 |
followData | Json | 用户随路数据 |
Nowgroupid | Int | 当前技能组id |
Origcaller | String | 座席硬化机号码 |
Preview | Json | 预览外呼任务信息 |
Timestamp | String | 通话创建unix时间戳 |
Type | String | 固定值outringing |
Userdata | Json | 平台随路数据 |
uuiData | String | User to user data |
callerArea | json | 主叫归属地 { “city”:’’, // 市 “provice”:’’ // 省 } |
calledArea | json | 被叫归属地 { “city”:’’, // 市 “provice”:’’ // 省 } |
6.1.1.3 outcall响应数据
事件参数名 | 参数类型 | 参数说明 |
callid | string | 通话唯一标识 |
number | string | 客户号码 |
type | string | 固定值 outcall |
6.1.1.4 calledringing响应数据
事件参数名 | 参数类型 | 参数说明 |
type | string | 固定值 calledringing |
callid | string | 通话唯一标识 |
timestamp | string | 通话创建unix时间戳 |
caller | string | 显号 |
origcaller | string | 坐席硬话机号码 |
called | string | 被叫号码 |
nowgroupid | int | 当前技能组id |
userdata | json | 平台随入数据 |
preview | json | 预览外呼任务信息 |
followData | json | 用户随入数据 |
uuiData | string | user to user data |
callerArea | json | 主叫归属地 { “city”:’’, // 市 “provice”:’’ // 省 } |
calledArea | json | 被叫归属地 { “city”:’’, // 市 “provice”:’’ // 省 } |
6.1.1.5 answer响应数据
事件参数名 | 参数类型 | 参数说明 |
called | string | 客户号码 |
caller | string | 显号 |
callid | string | 通话唯一标识 |
type | string | 固定值 answer |
6.1.1.6 cancelmakecall响应数据
(详见挂机接口)
6.1.1.7 after响应数据
(详见挂机接口)
6.1.2 外呼流程(呼叫坐席)
正常内呼流程:
发起呼叫坐席:makecall --> outringing --> outcall --> calledringing --> answer --> cancelmakecall --> after
接听呼叫坐席:innerringing --> innercall --> cancelmakecall --> after
内呼失败流程:makecall --> innercallout
EventName | API | Remark |
after | 无 | 内呼坐席挂机时,会收到 after 事件。 |
answer | 无 | 内呼发起呼叫坐席收到接听呼叫坐席摘机,会收到 answer 事件。 |
calledringing | 无 | 内呼发起呼叫坐席收到接听呼叫坐席振铃,会收到 calledringing 事件。 |
cancelmakecall | CallCenter.cancelmakecall() | 调用挂机接口,会收到 cancelmakecall 事件。 |
innercall | 无 | 内呼接听呼叫坐席摘机时,会收到 innercall 事件。 |
innercallout | 无 | 内呼坐席失败,会收到 innercallout 事件。 |
innerringing | 无 | 内呼接听呼叫坐席振铃时,会收到 innerringing 事件。 |
makecall | CallCenter.callout() | 调用外呼接口,会收到 makecall 事件响应。 |
outcall | 无 | 内呼发起呼叫坐席摘机时,会收到 outcall 事件。 |
outringing | 无 | 内呼发起呼叫坐席振铃时,会收到 outringing 事件。 |
6.1.2.1 makecall响应数据
(同6.1.1.1)
6.1.2.2 outringing响应数据
(同6.1.1.2)
6.1.2.3 outcall响应数据
(同6.1.1.3)
6.1.2.4 callerdringing响应数据
(同6.1.1.4)
6.1.2.5 answer响应数据
(同6.1.1.5)
6.1.2.6 Innerringing响应数据
事件参数名 | 参数类型 | 参数说明 |
type | string | 固定值 innerringing |
called | string | 被叫号码 |
caller | string | 显号 |
callid | string | 通话唯一标识 |
followData | json | 用户随入数据 |
nowgroupid | int | 当前技能组id |
origcaller | string | 坐席硬话机号码 |
preview | json | 预览外呼任务信息 |
timestamp | string | 通话创建unix时间戳 |
userdata | json | 平台随入数据 |
uuiData | string | user to user data |
6.1.2.7 Innercall响应数据
事件参数名 | 参数类型 | 参数说明 |
type | string | 固定值 innercall |
callid | string | 通话唯一标识 |
timestamp | string | 通话创建unix时间戳 |
caller | string | 显号 |
origcaller | string | 坐席硬话机号码 |
called | string | 被叫号码 |
nowgroupid | int | 当前技能组id |
userdata | json | 平台随入数据 |
preview | json | 预览外呼任务信息 |
followData | json | 用户随入数据 |
uuiData | string | user to user data |
6.1.2.8 cancelmakecall响应数据
(详见挂机接口)
6.1.2.9 after响应数据
(详见挂机接口)
6.1.2.10 innercallout响应数据
事件参数名 | 参数类型 | 参数说明 |
callid | string | 发起呼叫成功,产生的通话唯一标识 |
reason | string | 原因 |
status | int | 状态码 0 正常 非0 错误 |
type | string | 固定值 innercallout |
6.2 呼入流程事件
6.2.1 呼入流程
inringing --> playtts --> incall --> cancelmakecall --> after
EventName | API | Remark |
after | 无 | 坐席挂机时,会收到 after 事件。 |
cancelmakecall | CallCenter.cancelmakecall() | 调用挂机接口,会收到 cancelmakecall 事件。 |
incall | 无 | 坐席呼入电话摘机,会收到 incall 事件 |
inringing | 无 | 坐席呼入电话振铃,会收到 inringing 事件 |
playtts | 无 | 坐席呼入电话设置有TTS语音,会收到 playtts 事件。 |
事件参数名 | 参数类型 | 参数说明 |
called | string | 被叫 特服号 |
caller | string | 主叫 客户号码 |
callid | string | 通话唯一标识 |
followData | json | 用户自定义数据 |
nowgroupid | int | 当前技能组id |
origcaller | string | 原主叫 |
timestamp | string | 通话创建秒时间戳 |
type | string | 固定值inringing |
userdata | json | 平台随入数据 |
uuiData | string | user to user data |
事件参数名 | 参数类型 | 参数说明 |
type | string | 固定值 playtts |
事件参数名 | 参数类型 | 参数说明 |
called | string | 呼入特服号 |
caller | string | 客户号码 |
callid | string | 通话唯一标识 |
type | string | 固定值 incall |
示例:
- // 坐席监听呼入振铃事件
- CallCenter.addEventListener("inringing",function(json){
- // json 响应数据
- // {"callid":"24542515792953351","userdata":"*","caller":"*","origcaller":"18910393942","called":"*","nowgroupid":802,"type":"inringing","followData":"*","timestamp":1562898710}
- });
- // 坐席监听播放TTS事件
- CallCenter.addEventListener("playtts",function(json){
- // json 响应数据
- // {"type":"playtts"}
- });
- // 坐席监听呼入摘机事件
- CallCenter.addEventListener("incall",function(json){
- // json 响应数据
- // {"callid":"24542515792953351","caller":"*","type":"incall","called":"*"}
- });
6.2.2 智能外呼呼入
outringing --> outboundcall --> cancelmakecall --> after
EventName | API | Remark |
after | 无 | 长签智能外呼坐席挂机时,会收到 after 事件。 |
cancelmakecall | CallCenter.cancelmakecall() | 调用挂机接口,会收到 cancelmakecall 事件。 |
outboundcall | 无 | 智能外呼坐席呼入电话接听,会收到 outboundcall 事件。 |
outringing | 无 | 智能外呼坐席呼入电话振铃,会收到 outtringing 事件 |
事件参数名 | 参数类型 | 参数说明 |
type | string | 固定值 outringing |
callid | string | 通话唯一标识 |
timestamp | string | 通话创建unix时间戳 |
caller | string | 客户号码 |
origcaller | string | 原主叫 |
called | string | 呼入特服号 |
nowgroupid | int | 当前技能组id |
userdata | json | 平台随入数据 |
followData | json | 用户随入数据 |
uuiData | string | user to user data |
custId | json | 预测外呼任务信息 |
device | string | 用户设备唯一标识 |
devicetype | int | 固定值 2 表明是用户设备 |
agentid | int | 当前坐席数据库表id |
groupid | int | 任务技能组id |
userCallid | string | 与callid一致 |
auto | boolean | 固定值 false |
座席端接通事件:
座席状态变更为外呼通话中
事件参数名 | 参数类型 | 参数说明 |
type | string | 固定值 outboundcall |
callid | string | 通话唯一标识 |
timestamp | string | 通话创建unix时间戳 |
caller | string | 客户号码 |
origcaller | string | 原主叫 |
called | string | 呼入特服号 |
nowgroupid | int | 当前技能组id |
userdata | json | 平台随入数据 |
followData | json | 用户随入数据 |
uuiData | string | user to user data |
custId | json | 预测外呼任务信息 |
device | string | 用户设备唯一标识 |
devicetype | int | 固定值 2 表明是用户设备 |
agentid | int | 当前坐席数据库表id |
groupid | int | 任务技能组id |
userCallid | string | 与callid一致 |
auto | boolean | 固定值 false |
6.3 转接流程事件
6.3.1 发起转接方流程
transfercall --> transfering --> after
转接失败会收到 transfercall 事件且 status 值为非 0
事件参数名 | 参数类型 | 参数说明 |
dir | int | 呼叫方向 0呼入 1呼出 |
reason | string | 原因 |
status | int | 状态码 非0 |
type | string | 固定值 transfercall |
转接成功时会收到 transfering 事件
事件参数名 | 参数类型 | 参数说明 |
type | string | 固定值 transfering |
6.3.2 被转接方式平台座席 流程
transferinringing --> transferincall --> cancelmakecall --> after
事件参数名 | 参数类型 | 参数说明 |
type | string | 固定值 transferinringing |
callid | string | 通话唯一标识 |
timestamp | string | 通话创建unix时间戳 |
caller | string | 主叫 |
origcaller | string | 原主叫 |
called | string | 被叫 |
nowgroupid | int | 当前技能组id |
userdata | json | 平台随入数据 |
followData | json | 用户随入数据 |
uuiData | string | user to user data |
dir | int | 呼叫方向 0呼入 1呼出 |
事件参数名 | 参数类型 | 参数说明 |
called | string | 被叫 |
caller | string | 主叫 |
callid | string | 通话唯一标识 |
followData | json | 用户随入数据 |
nowgroupid | int | 当前技能组id |
origcaller | string | 原主叫 |
timestamp | string | 通话创建unix时间戳 |
type | string | 固定值 transferincall |
userdata | json | 平台随入数据 |
uuiData | string | user to user data |
6.4 咨询流程事件
6.4.1 发起咨询方流程
agentconsult --> consultationcalls
事件参数名 | 参数类型 | 参数说明 |
dir | int | 呼叫方向 0呼入 1 呼出 |
reason | string | 原因 |
status | int | 状态码 0正常 1 非正常 |
type | string | 固定值 agentconsultback |
事件参数名 | 参数类型 | 参数说明 |
type | string | 固定值 consultationcalls |
6.4.2 被咨询方式平台座席 流程
consultinringing --> consultincall
事件参数名 | 参数类型 | 参数说明 |
called | string | 被叫 |
caller | string | 主叫 |
callid | string | 通话唯一标识 |
followData | json | 用户随入数据 |
nowgroupid | int | 当前技能组id |
origcaller | string | 原主叫 |
timestamp | string | 通话创建unix时间戳 |
type | string | 固定值 consultinringing |
userdata | json | 平台随入数据 |
uuiData | string | user to user data |
事件参数名 | 参数类型 | 参数说明 |
uuiData | string | user to user data |
userdata | json | 平台随入数据 |
type | string | 固定值 consultincall |
timestamp | string | 通话创建unix时间戳 |
origcaller | string | 原主叫 |
nowgroupid | int | 当前技能组id |
followData | json | 用户随入数据 |
callid | string | 通话唯一标识 |
caller | string | 主叫 |
called | string | 被叫 |
6.5 转接IVR流程事件
transferservice --> cancelmakecall --> after
6.6 咨询IVR流程事件
6.6.1 外呼咨询IVR
consulationservice --> answer
EventName | API | Remark |
answer | 无 | 外呼咨询IVR结束时,会收到 answer 事件。 |
consulationservice | CallCenter.consulationservice() | 调用咨询IVR接口,会收到 consulationservice 事件响应。 |
6.6.2 发起咨询方流程
consulationservice --> incall
EventName | API | Remark |
consulationservice | CallCenter.consulationservice() | 调用咨询IVR接口,会收到 consulationservice 事件响应。 |
incall | 无 | 呼入咨询IVR结束时,会收到 incall 事件。 |
6.7 智能外呼流程事件
坐席以智能外呼模式登录,接收智能外呼事件
logon --> inringing --> incall
坐席呼通后示闲,接收智能外呼用户接通事件
agentidle --> outringing --> outboundcall
logon | CallCenter.opLogin() | 调用登录接口,会收到 logon事件响应。 |
inringing | 无 | 长签登录时,坐席话机振铃,或者短签登录时,模拟振铃,会收到 inringing事件。 |
incall | 无 | 长签登录时,坐席话机接听,或者短签登录时,模拟接听,会收到 incall 事件。 |
agentidle | CallCenter.free() | 长签登录时,话机接通后,坐席可以示闲,短签登录时,登录成功后,可以示闲,会收到 agentidle事件。 |
outringing | 无 | 长签登录时,用户呼通后桥接坐席时,模拟振铃,或者短签坐席,坐席话机振铃,会收到 outringing 事件。 |
outboundcall | 无 | 长签登录时,用户呼通后桥接坐席时,模拟接听,或者短签坐席,坐席话机接听,会收到 outboundcall事件。 |
cancelmakecall | CallCenter.cancelmakecall() | 调用挂机接口,会收到 cancelmakecall 事件。 |
after | 无 | 外呼坐席挂机时,会收到 after 事件。 |
6.7.1 inringing响应数据
事件参数名 | 参数类型 | 参数说明 |
type | string | 固定值 inringing |
agentStandby | boolean | 固定值 true 呼入时没有该字段,可以根据该字段判断是呼入电话还是预测电话 |
6.7.2 incall相应数据
事件参数名 | 参数类型 | 参数说明 |
type | string | 固定值 incall |
agentStandby | boolean | 固定值 true 呼入时没有该字段,可以根据该字段判断是呼入电话还是预测电话 |
6.7.3 outringing响应数据
事件参数名 | 参数类型 | 参数说明 |
agentid | int | 当前坐席数据库表id |
auto | boolean | 是否是预测外呼 |
called | string | 呼入特服号 |
caller | string | 客户号码 |
callid | string | 通话唯一标识 |
custId | json | 预测外呼任务信息 |
device | string | 用户设备唯一标识 |
devicetype | int | 固定值 2 表明是用户设备 |
followData | json | 用户随入数据 |
groupid | int | 任务技能组id |
nowgroupid | int | 当前技能组id |
origcaller | string | 原主叫 |
timestamp | string | 通话创建unix时间戳 |
type | string | 固定值 outringing |
userCallid | string | 用户侧通话唯一标识 |
userdata | json | 平台随入数据 |
uuiData | string | user to user data |
6.7.4 outboundcall响应数据
事件参数名 | 参数类型 | 参数说明 |
type | string | 固定值 outboundcall |
callid | string | 通话唯一标识 |
timestamp | string | 通话创建unix时间戳 |
caller | string | 客户号码 |
origcaller | string | 原主叫 |
called | string | 呼入特服号 |
nowgroupid | int | 当前技能组id |
userdata | json | 平台随入数据 |
followData | json | 用户随入数据 |
uuiData | string | user to user data |
custId | json | 预测外呼任务信息 |
device | string | 用户设备唯一标识 |
devicetype | int | 固定值 2 表明是用户设备 |
agentid | int | 当前坐席数据库表id |
groupid | int | 任务技能组id |
userCallid | string | 用户侧通话唯一标识 |
auto | boolean | 是否是预测外呼 |
6.8 呼入/智能外呼排队事件
监听排队事件 queuenum 每隔5秒可以收到坐席所在技能组排队数据,即:当前坐席所在技能组有多少通电话正在等待接听。
普通坐席和班长坐席都可以监听 queuenum 事件接收排队数据。
6.8.1 普通座席排队事件
6.8.1.1 queuenum事件响应数据
事件参数名 | 参数类型 | 参数说明 |
autonum | int | 预测技能组排队数量 |
cmdtype | int | 固定值 1 表示电话条上时间不重新计时 |
groupid | int | 技能组id |
num | int | 呼入技能组排队数 |
type | string | 固定值 queuenum |
示例:
- // 监听排队事件,接收坐席排列信息(班长坐席和普通坐席)
- CallCenter.addEventListener("queuenum",function(json){
- // json 响应数据
- // {"type":"queuenum","cmdtype":1,"autonum":0,"groupid":802,"num":1}
- });
6.8.2 班长座席排队事件
6.8.2.1 queuenum事件响应数据(同6.8.1.1)
示例:
- // 监听排队事件,接收坐席排列信息(班长坐席和普通坐席)
- CallCenter.addEventListener("queuenum",function(json){
- // json 响应数据
- // {"type":"queuenum","cmdtype":1,"autonum":0,"groupid":802,"num":1}
- });
6.8.2.2 monitorqueue事件响应数据
班长坐席开启坐席监控后,会收到 monitorqueue 事件,接收技能组呼入排队数和预测技能组排队数
事件参数名 | 参数类型 | 参数说明 |
cmdtype | int | 固定值 1 表示电话条上时间不重新计时 |
data | jsonarray | 排队信息 |
data[i].autonum | int | 预测技能组排队数量 |
data[i].groupid | int | 技能组id |
data[i].num | int | 技能组呼入排队数 |
type | string | 固定值 monitorqueue |
6.8.2.3 monitorcaller事件响应数据
班长坐席开启坐席监控后,当班长所在技能组用户排队信息发生变化之后,班长坐席会收到用户排队变化的数据
事件参数名 | 参数类型 | 参数说明 |
cmdtype | int | 固定值 1 表示电话条上时间不重新计时 |
data | jsonarray | 排队信息 |
data[i].callers | jsonarray | 技能组下排队的通话信息 |
data[i].groupid | int | 技能组id |
type | string | 固定值 monitorcaller |
callers是一个jsonarray 里面的元素是json json的格式如下:
属性名称 | 属性描述 | 参数说明 |
baseScore | int | 通话在技能组上的排队打分,分数越高,越容易被空闲坐席服务 |
caller | string | 主叫号码 |
customerName | string | 客户姓名,可能不存在 |
customerType | int | 用户类型 1普通用户 2vip用户 |
joinedTime | string | 通话进入排队队列时间 unix时间戳 |
joinedType | int | 进入队列类型 1呼入2转接 |
startTime | string | 通话开始时间 unix时间戳 |
示例:
- // 监听排队监控事件(班长坐席)
- CallCenter.addEventListener("monitorqueue",function(json){
- // json 响应数据
- // {"type":"monitorqueue","data":[{"autonum":0,"groupid":802,"num":1}],"cmdtype":1}
- });
- // 监听排队用户事件(班长坐席)
- CallCenter.addEventListener("monitorcaller",function(json){
- // json 响应数据
- /* {
- "type":"monitorcaller",
- "data":[
- {"groupid":802,"callers":[{"customerType":1,"caller":"18910393942","joinedType":1,"joinedTime":"1562923059024","startTime":"1562923059024","baseScore":0}]},
- {"groupid":804,"callers":[]}
- ],
- "cmdtype":1
- }*/
- });
- // 开启班长监控(班长坐席)
- CallCenter.monitoragent();
6.9 智能外呼任务事件
坐席签入签出智能外呼技能组时,会给坐席班长推送坐席信息和签入签出技能组信息。
只有班长坐席开启坐席监控后,才能监听智能外呼事件,接收坐席信息和技能组信息。
6.9.1 智能外呼任务开启
智能外呼任务开启时,坐席签入智能外呼技能组,如果班长坐席开启了坐席监控,会收到 agentbegingroup 事件
事件参数名 | 参数类型 | 参数说明 |
cmdtype | int | 固定值 1 表示电话条上时间不重新计时 |
data | jsonarray | 排队信息 |
type | string | 固定值 agentbegingroup |
data是一个jsonarray 里面的元素是json json的格式如下:
属性名称 | 属性描述 | 参数说明 |
agentKey | string | 工号@企业缩写 |
auto | Boolean | 是否是预测外呼 |
busydescr | int | 忙碌类型,只有在status为busy的情况下才有用,值为admin配置的忙碌类型的id |
called | string | 坐席当前通话的被叫 |
caller | string | 坐席当前通话的主叫 |
companyId | int | 企业id |
groupids | jsonarray | 坐席所在技能组id的jsonarray |
name | string | 坐席姓名 |
nowgroupid | int | 坐席所在当前技能组id |
operate_time | string | 坐席状态最后变更时间 yyyy-MM-dd HH:mm:ss |
operatorid | int | 工号 |
status | string | 欧西当前状态 |
taskgroupid | int | 坐席签入的任务技能组id |
worktype | int | 坐席上班选择的话机类型 0话机 1sip话机 2webcall |
示例:
- // 监听坐席签入智能外呼技能组事件(班长坐席)
- CallCenter.addEventListener("agentbegingroup",function(json){
- // json 坐席信息和技能组信息
- /* {
- "type":"agentbegingroup",
- "data":[{
- "auto":true,"called":"13300000019","nowgroupid":804,
- "worktype":2,"agentKey":"1001@wucb","companyId":152,
- "caller":"01041234","groupids":[802,804],"name":"1001",
- "taskgroupid":804,"operatorid":"1001","status":"offwork",
- "operate_time":"2019-07-12 16:47:32"
- }],
- "cmdtype":1
- }*/
- });
- // 开启班长监控
- CallCenter.monitoragent();
6.9.2 智能外呼任务关闭
智能外呼任务关闭时,坐席签出智能外呼技能组,如果班长坐席开启了坐席监控,会收到 agentstopgroup 事件
事件参数名 | 参数类型 | 参数说明 |
cmdtype | int | 固定值 1 表示电话条上时间不重新计时 |
data | jsonarray | 排队信息 |
type | string | 固定值 agentstopgroup |
data是一个jsonarray 里面的元素是json json的格式如下:
属性名称 | 属性描述 | 参数说明 |
agentKey | string | 工号@企业缩写 |
auto | Boolean | 是否是预测外呼 |
busydescr | int | 忙碌类型,只有在status为busy的情况下才有用,值为admin配置的忙碌类型的id |
called | string | 坐席当前通话的被叫 |
caller | string | 坐席当前通话的主叫 |
companyId | int | 企业id |
groupids | jsonarray | 坐席所在技能组id的jsonarray |
name | string | 坐席姓名 |
nowgroupid | int | 坐席所在当前技能组id |
operate_time | string | 坐席状态最后变更时间 yyyy-MM-dd HH:mm:ss |
operatorid | int | 工号 |
status | string | 欧西当前状态 |
taskgroupid | int | 坐席签出的任务技能组id |
worktype | int | 坐席上班选择的话机类型 0话机 1sip话机 2webcall |
示例:
- // 监听坐席签入智能外呼技能组事件(班长坐席)
- CallCenter.addEventListener("agentstopgroup",function(json){
- // json 坐席信息和技能组信息
- /* {
- "type":"agentstopgroup",
- "data":[{
- "auto":true,"called":"13300000020","nowgroupid":804,
- "worktype":2,"agentKey":"1001@wucb","companyId":152,
- "caller":"01041234","groupids":[802,804],"name":"1001",
- "taskgroupid":804,"operatorid":"1001","status":"free",
- "operate_time":"2019-07-12 16:48:11"
- }],
- "cmdtype":1
- }*/
- });
- // 开启班长监控
- CallCenter.monitoragent();
6.10 公告通知事件
6.10.1 智能外呼通知sendmsg
开始预测任务后,每次预测坐席切换轮次时,可以收到智能外呼通知消息
事件参数名 | 参数类型 | 参数说明 |
annoucement | boolean | true 公告通知,false 智能外呼通知 |
cmdtype | int | 固定值 1 表示电话条上时间不重新计时 |
msg | string | 公告信息 |
type | string | 固定值 sendmsg |
示例:
- CallCenter.addEventListener("sendmsg",function(json){
- // json 通知消息
- // json.annoucement 为 false ,表示智能外呼通知数据,解析 json.msg 通知数据
- });
6.10.2 智能外呼任务结束通知endtask
开始预测任务后,每个预测外呼任务结束后,执行任务的坐席都会收到endtask事件
事件参数名 | 参数类型 | 参数说明 |
type | string | 固定值 endtask |
cmdtype | int | 固定值 1 表示电话条上时间不重新计时 |
cmd | string | 固定值 endtask |
done | boolean | 所有任务结束,true表示结束,false表示未结束 |
status | int | 当前任务结束,3 任务完成,4 任务关闭 |
groupid | int | 坐席执行任务技能组ID |
companyid | int | 企业ID |
activity_id | int | 活动ID, 0 默认值,无活动;非0 有活动 |
示例:
- CallCenter.addEventListener("endtask",function(json){
- if(json.done){
- // 所有智能外呼任务结束
- }
- if(json.status==3){
- // 当前任务执行完成
- }
- if(json.status==4){
- // 当前任务被关闭
- }
- });
6.10.3 预览外呼通知
每次坐席登录CCC,CCCS获取预览任务,有新任务时弹出通知消息
注意:预览外呼通知目前没有接口
6.10.4 公告通知
后台admin,pds给坐席推送公告信息或者预测外呼轮次信息。
事件参数名 | 参数类型 | 参数说明 |
annoucement | boolean | true 公告通知,false 智能外呼通知 |
cmdtype | int | 固定值 1 表示电话条上时间不重新计时 |
msg | string | json字符串 |
msg.id | int | 无用 |
msg.isannouncement | boolean | 是否公告消息,1公告消息 |
msg.remark | string | thisisannouncementnew 去3CS获取公告信息并弹出通知标识 thisisannouncementupdate 仅去3CS获取公告信息不弹出通知 |
type | string | 固定值 sendmsg |
示例:
- CallCenter.addEventListener("sendmsg",function(json){
- // json 通知数据
- // json.annoucement为true,表示公告通知,解析json.msg判断通知状态,调用接口去获取通知数据
- });
6.11 固定记忆坐席
坐席手拨客户再次回电时,支持回电至上次外呼的坐席。
如果客户回电时坐席处于非就绪状态,则会收到memberEnqueue事件。
事件参数名 | 参数类型 | 参数说明 |
type | string | 固定值:’memberEnqueue’,电话进队列排队事件 |
caller | string | 当前电话的主叫号码 |
callId | string | 通话ID |
companyId | int | 企业ID |
currentLineUpNum | int | 当前技能组电话排队数量 |
memoryLineUpNum | int | 当前记忆坐席电话排队数量 |
customerType | int | 用户类型 |
groupId | int | 技能组ID |
joinedTime | int | 当前电话进队列时间 |
memoryAgentKey | string | 电话找记忆坐席标识(工号@企业缩写) |
startTime | int | 当前电话进队列时间 |
joinedType | Int | 无用 |
stationNo | int | 无用 |
baseScore | Int | 无用 |
如果回电用户挂机或通话接起时会收到memberDequeue事件。
事件参数名 | 参数类型 | 参数说明 |
type | string | 固定值:memberDequeue,电话出队列事件 |
caller | string | 当前电话的主叫号码 |
callId | string | 通话ID |
companyId | int | 企业ID |
currentLineUpNum | int | 当前技能组电话排队数量 |
memoryLineUpNum | int | 当前记忆坐席电话排队数量 |
customerType | int | 用户类型 |
groupId | int | 技能组ID |
joinedTime | int | 当前电话进队列时间 |
memoryAgentKey | string | 电话找记忆坐席标识(工号@企业缩写) |
leavingTime | int | 当前电话出队列时间 |
joinedType | Int | 无用 |
stationNo | int | 无用 |
baseScore | Int | 无用 |
leaveType | Int | 1转到坐席,2排队放弃 |