本页介绍了 Contact Center AI 平台 (CCAI Platform) 可以导出到质量管理 (QM) 应用的通话会话事件数据。如需详细了解如何将 CCAI 平台与 QM 应用集成,请参阅 QM、SIPREC 和 WFM 集成。
如需了解聊天会话事件数据,请参阅 QM 聊天会话事件数据。
通话会话事件和触发器
某些通话会话事件会触发通话会话数据导出到 QM 应用。本部分列出了通话事件类型以及触发每种事件类型的操作。此外,还包含每种会话事件类型的会话事件载荷示例。
中的代理日志
此事件由以下操作触发:
客服人员使用 Contact Center AI 平台门户网站登录客服人员适配器。
客服人员使用 CRM 登录客服人员适配器。
以下代码示例展示了事件载荷:
{
"type" : "AgentState",
"item" : {
"ParticipantID" : "1234",
"Email" : "some.email@domain.com",
"State" : "login"
}
}
客服人员退出
此事件由以下操作触发:
客服人员使用 Contact Center AI 平台门户退出客服人员适配器。
客服人员使用 CRM 退出客服人员适配器。
以下代码示例展示了事件载荷:
{
"type" : "AgentState",
"item" : {
"ParticipantID" : "1234",
"Email" : "some.email@domain.com",
"State" : "logout"
}
}
系统会投影来电
当最终用户拨打联络中心电话,并且该电话被转接到客服人员时,系统会触发此事件。
此事件仅在通话投屏到 Deltacast 时适用。多播投影不会触发事件。只有级联组中调用的第一个 deltacast 投影会触发事件。
此事件包括通过呼叫转移、重定向和转接收到的呼叫投影。
以下代码示例展示了事件载荷:
{
"type" : "CallState",
"item" : {
"CallID" : "846802bf90d1",
"State" : "ringing",
"Direction" : "incoming",
"Initiator" : "+123456789",
"Queue_path_ids": "1/2/3",
"Queue_path_names" : "support/orders/status",
"Language" : "en",
"Queue_uuid" : 3,
"Recording_permitted" : true,
"Participants" :
[
{
"ParticipantID" : "+123456789",
"Type" : "external",
"State" : "connected"
},
{
"ParticipantID" : "1234",
"Type" : "agent",
"State" : "ringing"
}
],
"MediaID" : "208188811_124248155@67.231.1.110"
}
}
接听呼入电话
当代理接听投影的来电时,系统会触发此事件。
无论是增量投放还是多播投放,当通话由客服人员接听时,都会触发此事件。此事件适用于通过呼叫重定向和呼叫转移接听和应答的来电。
以下代码示例展示了事件载荷:
{
"type" : "CallState",
"item" : {
"CallID" : "846802bf90d1",
"State" : "connected",
"Direction" : "incoming",
"Initiator" : "+123456789",
"Queue_path_ids": "1/2/3",
"Queue_path_names" : "support/orders/status",
"Language" : "en",
"Queue_uuid" : 3,
"Recording_permitted" : true,
"Participants" :
[
{
"ParticipantID" : "+123456789",
"Type" : "external",
"State" : "connected"
},
{
"ParticipantID" : "1234",
"Type" : "agent",
"State" : "connected"
}
],
"MediaID" : "208188811_124248155@67.231.1.110"
}
}
外拨电话正在响铃
此事件由以下操作触发:
代理拨打新的出站电话,该电话正在向最终用户响铃。
客服人员拨打添加方通话,第三方接听电话。
以下代码示例展示了事件载荷:
{
"type" : "CallState",
"item" : {
"CallID" : "e9dd62bb",
"State" : "dialing",
"Direction" : "outgoing",
"Initiator" : "+123456789",
"Queue_path_ids": "1/2/3",
"Queue_path_names" : "support/orders/status",
"Language" : "en",
"Queue_uuid" : 3,
"Recording_permitted" : true,
"Participants" :
[
{
"ParticipantID" : "1234",
"Type" : "agent",
"State" : "connected"
},
{
"ParticipantID" : "+123456789",
"Type" : "external",
"State" : "connected"
}
],
"MediaID" : "208188811_124248155@67.231.1.110"
}
}
外拨电话已接通
此事件由以下操作触发:
最终用户接听了去电。
第三方接听了添加方通话。
以下代码示例展示了事件载荷:
{
"type" : "CallState",
"item" : {
"CallID" : "e9dd62bb",
"State" : "connected",
"Direction" : "outgoing",
"Initiator" : "+123456789",
"Queue_path_ids": "1/2/3",
"Queue_path_names" : "support/orders/status",
"Language" : "en",
"Queue_uuid" : 3,
"Recording_permitted" : true,
"Participants" :
[
{
"ParticipantID" : "1234",
"Type" : "agent",
"State" : "connected"
},
{
"ParticipantID" : "+123456789",
"Type" : "external",
"State" : "connected"
}
],
"MediaID" : "208188811_124248155@67.231.1.110"
}
}
通话处于保持状态
此事件由以下操作触发:
代理将最终用户置于保留状态。
客服人员将第三方置于保留状态。
以下代码示例展示了事件载荷:
"type" : "CallState",
"item" : {
"CallID" : "846802bf90d1",
"State" : "held",
"Direction" : "incoming",
"Initiator" : "+123456789",
"Queue_path_ids": "1/2/3",
"Queue_path_names" : "support/orders/status",
"Language" : "en",
"Queue_uuid" : 3,
"Recording_permitted" : true,
"Participants" :
[
{
"ParticipantID" : "+123456789",
"Type" : "external",
"State" : "held"
},
{
"ParticipantID" : "1234",
"Type" : "agent",
"State" : "connected"
}
],
"MediaID" : "208188811_124248155@67.231.1.110"
}
}
通话已从保留状态中移除
此事件由以下操作触发:
客服人员将最终用户从搁置状态中移除。
客服人员将第三方从保留状态中移除。
以下代码示例展示了事件载荷:
{
"type" : "CallState",
"item" : {
"CallID" : "846802bf90d1",
"State" : "connected",
"Direction" : "incoming",
"Initiator" : "+123456789",
"Queue_path_ids": "1/2/3",
"Queue_path_names" : "support/orders/status",
"Language" : "en",
"Queue_uuid" : 3,
"Recording_permitted" : true,
"Participants" :
[
{
"ParticipantID" : "+123456789",
"Type" : "external",
"State" : "connected"
},
{
"ParticipantID" : "1234",
"Type" : "agent",
"State" : "connected"
}
],
"MediaID" : "208188811_124248155@67.231.1.110"
}
}
发起并接受冷转移
此事件由以下操作触发:
客服人员向另一客服人员发起冷转接呼叫,并且转接被接受。
客服人员向另一个队列发起冷转接呼叫,并且该队列中的客服人员接受了转接。
一位客服人员主动邀请另一位客服人员加入电话会议,另一位客服人员接受邀请并加入电话会议。
以下代码示例展示了事件载荷:
{
"type" : "CallState",
"item" : {
"CallID" : "846802bf90d1",
"State" : "transferred",
"Direction" : "incoming",
"Initiator" : "+123456789",
"Queue_path_ids": "1/2/3",
"Queue_path_names" : "support/orders/status",
"Language" : "en",
"Queue_uuid" : 3,
"Recording_permitted" : true,
"Participants" :
[
{
"ParticipantID" : "+123456789",
"Type" : "external",
"State" : "connected"
},
{
"ParticipantID" : "4321",
"Type" : "agent",
"State" : "connected"
}
],
"MediaID" : "208188811_124248155@67.231.1.110"
}
}
发起并接受了转接
此事件由以下操作触发:
客服人员向另一客服人员发起暖转接呼叫,并且转接被接受。
客服人员向另一队列发起暖转接呼叫,并且该队列中的客服人员接受了转接。
一位客服人员热邀请另一位客服人员加入电话会议,另一位客服人员接受邀请并加入电话会议。
以下代码示例展示了事件载荷:
{
"type" : "CallState",
"item" : {
"CallID" : "846802bf90d1",
"State" : "conferenced",
"Direction" : "incoming",
"Initiator" : "+123456789",
"Queue_path_ids": "1/2/3",
"Queue_path_names" : "support/orders/status",
"Language" : "en",
"Queue_uuid" : 3,
"Recording_permitted" : true,
"Participants" :
[
{
"ParticipantID" : "+123456789",
"Type" : "external",
"State" : "connected"
},
{
"ParticipantID" : "1234",
"Type" : "agent",
"State" : "connected"
},
{
"ParticipantID" : "4321",
"Type" : "agent",
"State" : "connected"
}
],
"MediaID" : "208188811_124248155@67.231.1.110"
}
}
客服人员退出电话会议
当电话会议中的客服人员在未结束电话会议的情况下离开电话会议时,系统会触发此事件。
以下代码示例展示了事件载荷:
{
"type" : "CallState",
"item" : {
"CallID" : "846802bf90d1",
"State" : "participantDisconnect",
"Direction" : "incoming",
"Initiator" : "+123456789",
"Queue_path_ids": "1/2/3",
"Queue_path_names" : "support/orders/status",
"Language" : "en",
"Queue_uuid" : 3,
"Recording_permitted" : true,
"Participants" :
[
{
"ParticipantID" : "+123456789",
"Type" : "external",
"State" : "connected"
},
{
"ParticipantID" : "1234",
"Type" : "agent",
"State" : "disconnected"
},
{
"ParticipantID" : "4321",
"Type" : "agent",
"State" : "connected"
}
],
"MediaID" : "208188811_124248155@67.231.1.110"
}
}
通话已静音
此事件由以下操作触发:
客服人员将通话设为静音。
客服人员在通话中将其他参与者静音。
此事件适用于所有通话。
以下代码示例展示了事件载荷:
{
"type" : "CallState",
"item" : {
"CallID" : "846802bf90d1",
"State" : "connected",
"Direction" : "incoming",
"Initiator" : "+123456789",
"Queue_path_ids": "1/2/3",
"Queue_path_names" : "support/orders/status",
"Language" : "en",
"Queue_uuid" : 3,
"Recording_permitted" : true,\
"Participants" :
[
{
"ParticipantID" : "+123456789",
"Type" : "external",
"State" : "connected"
},
{
"ParticipantID" : "1234",
"Type" : "agent",
"State" : "muted"
},
{
"ParticipantID" : "4321",
"Type" : "agent",
"State" : "muted"
}
],
"MediaID" : "208188811_124248155@67.231.1.110"
}
}
通话已取消静音
此事件由以下操作触发:
客服人员取消通话静音。
客服人员在通话中取消其他参与者的静音。
此事件适用于所有通话。
以下代码示例展示了事件载荷:
{
"type" : "CallState",
"item" : {
"CallID" : "846802bf90d1",
"State" : "connected",
"Direction" : "incoming",
"Initiator" : "+123456789",
"Queue_path_ids": "1/2/3",
"Queue_path_names" : "support/orders/status",
"Language" : "en",
"Queue_uuid" : 3,
"Recording_permitted" : true,
"Participants" :
[
{
"ParticipantID" : "+123456789",
"Type" : "external",
"State" : "connected"
},
{
"ParticipantID" : "1234",
"Type" : "agent",
"State" : "unmuted"
},
{
"ParticipantID" : "4321",
"Type" : "agent",
"State" : "unmuted"
}
],
"MediaID" : "208188811_124248155@67.231.1.110"
}
}
通话已进行编辑
当客服人员对通话内容进行遮盖处理时,系统会触发此事件。
以下代码示例展示了事件载荷:
{
"type" : "CallState",
"item" : {
"CallID" : "846802bf90d1",
"State" : "connected",
"Direction" : "incoming",
"Initiator" : "+123456789",
"Queue_path_ids": "1/2/3",
"Queue_path_names" : "support/orders/status",
"Language" : "en",
"Queue_uuid" : 3,
"Recording_permitted" : true,
"Participants" :
[
{
"ParticipantID" : "+123456789",
"Type" : "external",
"State" : "redacted"
},
{
"ParticipantID" : "1234",
"Type" : "agent",
"State" : "redacted"
}
],
"MediaID" : "208188811_124248155@67.231.1.110"
}
}
通话未经过编辑
当客服取消对通话内容进行编辑时,系统会触发此事件。
以下代码示例展示了事件载荷:
{
"type" : "CallState",
"item" : {
"CallID" : "846802bf90d1",
"State" : "connected",
"Direction" : "incoming",
"Initiator" : "+123456789",
"Queue_path_ids": "1/2/3",
"Queue_path_names" : "support/orders/status",
"Language" : "en",
"Queue_uuid" : 3,
"Recording_permitted" : true,
"Participants" :
[
{
"ParticipantID" : "+123456789",
"Type" : "external",
"State" : "unredacted"
},
{
"ParticipantID" : "1234",
"Type" : "agent",
"State" : "unredacted"
}
],
"MediaID" : "208188811_124248155@67.231.1.110"
}
}
通话已结束
此事件由以下操作触发:
最终用户结束通话。
客服人员结束通话。
此事件适用于所有通话。
以下代码示例展示了入站通话事件载荷:
{
"type" : "CallState",
"item" : {
"CallID" : "846802bf90d1",
"State" : "disconnected",
"Direction" : "incoming",
"Initiator" : "+123456789",
"Queue_path_ids": "1/2/3",
"Queue_path_names" : "support/orders/status",
"Language" : "en",
"Queue_uuid" : 3,
"Recording_permitted" : true,
"Participants" :
[
{
"ParticipantID" : "+123456789",
"Type" : "external",
"State" : "disconnected"
},
{
"ParticipantID" : "1234",
"Type" : "agent",
"State" : "disconnected"
}
],
"MediaID" : "208188811_124248155@67.231.1.110"
}
}
以下代码示例展示了出站通话事件载荷:
{
"type" : "CallState",
"item" : {
"CallID" : "e9dd62bb",
"State" : "disconnected",
"Direction" : "outgoing",
"Initiator" : "1234",
"Participants" :
[
{
"ParticipantID" : "1234",
"Type" : "agent",
"State" : "disconnected"
},
{
"ParticipantID" : "+123456789",
"Type" : "external",
"State" : "disconnected"
}
],
"MediaID" : "208188811_124248155@67.231.1.110"
}
}
通话会话事件字段
下表介绍了 Contact Center AI 平台导出到 QM 应用的会话数据中的字段。
常规字段
| 字段名称 | 允许使用的值 | 说明 | 效果 |
|---|---|---|---|
type |
|
整个 JSON 载荷的事件类型。 |
|
|
包含活动信息的对象。 |
代理状态字段
| 字段名称 | 值 | 说明 | 行为 |
|---|---|---|---|
|
代理 ID |
可在 代理在 Contact Center AI 平台系统中的标识符。 |
|
|
电子邮件地址 |
可在 客服人员的电子邮件地址。 |
|
|
|
可在 事件发生时代理的状态。 |
|
通话状态字段
| 字段名称 | 值 | 说明 | 行为 |
|---|---|---|---|
|
通话 ID |
可在 通话会话在 Contact Center AI 平台系统中的标识符。 |
|
|
|
可在 通话会话的当前状态。 |
|
|
|
可在 从联络中心角度来看的通话会话方向。 |
|
|
|
可在 初始化通话状态的一方的标识符。 |
|
|
队列 ID 的路径 |
可在 最终用户在接通电话后与第一位客服人员通话之前所经过的队列路径。 此值是使用已导航队列的队列 ID 构建的。 |
此功能仅适用于来电。 |
|
队列名称的路径 |
可在 最终用户在接通电话后与第一位客服人员通话之前所经过的队列路径。 此值是使用已导航队列的队列名称构建的。 |
此功能仅适用于来电。 |
|
语言代码 |
可在 最终用户所选语言的语言代码。 |
此功能仅适用于来电。 |
|
队列 ID |
可在 通话到达的队列的 UUID。 |
这仅适用于来电和队列转接的来电。 |
|
一个布尔值 |
可在 指示是否允许对特定通话进行录制 |
|
|
自定义标头 |
可在 此字段用于传递自定义数据,例如 SIP 标头 |
|
|
此对象嵌套在 一个包含通话参与者信息的对象。 |
||
|
|
可在 通话参与者的标识符。 |
在 Contact Center AI 平台会话元数据中传递
传递 Contact Center AI 平台会话元数据中参与者对象的
传递最终用户的手机号码(如有)。 否则,传递 Contact Center AI 平台会话元数据中
传递第三方的手机号码(如果有)。 否则,传递值: |
|
|
可在 通话参与者的类型。 |
|
|
|
可在 参与者在电话会议中的当前状态。 |
|
|
|
可在 来自运营商的通话会话媒体的标识符。 |
|