End

终止脚本。

根据脚本媒体类型的不同,此操作的运作方式也有一些区别。仅对受支持的媒体类型使用此操作非常重要。有关更多信息,请参见依赖关系类似操作部分。

Dependencies

  • 如果您在包含不受支持的媒体类型的脚本中使用 End,则可能无法正确结束所有进程或联系。结束后台进程是终止操作的一项关键功能。因此,使用最适合脚本 :
    • 对于呼入电话脚本,只要呼叫尚未连接,即可使用 End。呼叫连接后,使用 Hangup 操作终止脚本。
    • 对于呼出电话脚本,您可以在 Placecall 操作执行之前使用 End。呼叫连接后,使用 Hangup 操作终止脚本。
    • 对于聊天脚本,请使用 Exit 终止脚本。
    • 对于电子邮件脚本,请使用 Discard 终止脚本。
    • 对于数字脚本,End 仅终止脚本。它不会终止联系人。数字联系人继续存在于 Digital First Omnichannel 中。对于所有其他脚本类型,End 会同时终止脚本和联系人。
  • 如果您在子脚本中使用 End,则会终止子脚本和原始脚本。如果要终止子脚本但要继续原始脚本,请使用 Return 操作。
  • End 应用于终止活动脚本的逻辑流并调用 OnRelease 事件操作。因此,不应在 OnRelease 事件逻辑之后使用它。

Supported Script Types

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

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.

The icon for the Digital script type - a computer monitor with a smartphone next to it.

通用

电话 语音信箱 工作项目 短信 数字

Comparison of Similar Actions

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

Input Properties

None

Result Branch Conditions

None

Script Example

此示例并非完整的脚本。要使用此操作,需要额外的脚本编写工作。

This script shows a very simple example in which End is used in a phone script, but the outbound call was never placed because an error occurred. If the error had not occurred, Placecall would have been triggered, and you would have used Hangup in a different branch. Refer to Placecall to see an example of using Hangup in a phone script.

Would you like to download this script?