End

終止指令碼。

根據指令碼媒體類型的不同,此動作的功能也有所不同。重要的是,只對支持的媒體類型使用此動作。參見相依性類似動作部分了解更多資訊。

Dependencies

  • 如果您在一個不支援媒體類型的指令碼中使用End,可能無法正確結束所有流程或聯絡。結束後台流程是終止動作的一個關鍵功能。由於此原因,使用最適合您的指令碼的媒體類型的動作非常重要
    • 對於呼入電話指令碼,只要呼叫尚未接通,即可使用End。呼叫接通後,使用 Hangup 動作來終止指令碼。
    • 對於呼出電話指令碼,您可以使用End,直到 Placecall 動作執行。在呼叫接通後,使用 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.

一般

電話 語音郵件 工作項目 SMS 數位

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?