End a Contact

This help page is for Desktop Studio. This information is also available for Studio.

用于根据唯一的联系人 ID 终止一个活动的联系。 可用于任何媒体类型或渠道中,并通过合理执行操作来强制性让活动的联系结束。 典型的用例是在紧急情况下、从队列中清除卡住不动的联系、终止特定的脚本(比如 生成的脚本)或者当使用 API 调用运行坐席应用程序时。

如果要终止特定的脚本,可以使用 End 操作。 要在同一脚本中终止活动语音联系,可以使用 End a Contact操作。

支持的脚本类型

The icon for a Generic script type - a rectangle with < and > symbols inside it.

The icon for the Email script type - a large @ symbol in a diamond.

The icon for the Chat script type - a chat bubble with an ellipsis inside (...), in a diamond shape.

The icon for the Phone script type - an old-style phone handset with curved lines indicating sound coming out of it.

The icon for the Voicemail script type - a symbol that looks like a cassette tape - two circles sitting on a horizontal line.

The icon for the Work Item script type-a piece of paper with one corner folded down and a bullet list on it.

The icon for the SMS script type - a smart phone with a chat bubble coming out of it.

通用

电子邮件 聊天 电话 语音信箱 工作项目 短信

类似操作比较

以下操作具有类似功能,但存在一些关键区别:

  • Discard :终止电子邮件脚本。
  • End :终止电话、语音邮件、SMS 或数字脚本。 不终止数字联系人,但终止使用其他媒体类型的脚本中的联系人。
  • End a Contact: 终止活动联系。 不终止当前脚本。
  • EndText终止不包含 Regagent 操作的 SMS 工作流(仅适用于数字关闭 与Digital Experience相关的任何渠道、联系或技能。渠道)。
  • EndWi: 终止带原因代码的工作项。 不终止当前脚本。
  • Exit :终止聊天会话并断开与聊天联系的连接。
  • Hangup :终止电话脚本。
  • Return :终止子脚本并将控制权返回给原始脚本。

请勿使用Stopaction来结束脚本。 它不会终止脚本,而会让联系人继续运行。 这会对CXone Mpower服务器产生负面影响。

输入属性

这些属性定义操作在执行时使用的数据。

属性

说明

SecurityUser SetSecurityUser 操作的输出值,该操作会根据安全配置文件中的坐席权限对选定的坐席进行身份验证。 此字段接受用花括号 ( { } ) 格式化的变量。 默认值为 SecurityUser(与 SetSecurityUser 的默认输出值相同)。
ContactID 在成功执行此操作之后,坐席将被设置为的所需状态。 选项包括 UnavailableAvailable,并且可以作为变量使用。

输出属性

这些属性包含保存执行操作返回的数据的变量。 它们在操作完成后供引用和使用。

属性

说明

__DISCONNECTREASON TerminateScript

结果分支条件

结果分支条件允许您在脚本中创建分支,以在执行操作时处理不同的结果。

条件

说明

Default 除了脚本满足条件要求其接受其他分支的情况之外,所要采用的路径。 如果未定义操作的其他分支,也会执行此操作。
OnSuccess 完成操作而无错误,且 API 调用或数据返回全部成功时所采用的路径(2xx 响应代码)。
OnInvalidContactID 所请求的联系人 ID 无效时所采用的路径。
OnUnauthorized SecurityUser 没有正确的角色/权限来执行 API 操作时所采用的路径。
OnInvalidSecurityUser 使用无效的安全用户时所采用的路径。