End a Contact

用以基於唯一聯絡 ID 終止活躍聯絡。這可以在任何媒體類型或通道中使用,並強制活躍聯絡在正確執行後結束。典型用例是在緊急情況下,從佇列中清除卡死的聯絡人,終止特定的指令碼(例如spawned)或使用 API 呼叫來執行您的 Agent 應用程式。

若要終止特定指令碼,您可以使用 End 動作。如需在同一指令碼內終止活躍語音聯絡,可以使用 End a Contact 動作。

Supported Script Types

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.

一般

電郵 聊天 電話 語音郵件 工作項目 SMS

Comparison of Similar Actions

以下動作有類似的功能,但有一些關鍵區別:

不要使用 Stop動作action來終止指令碼。它不會終止指令碼,而是讓聯絡人繼續運行。這對CXone伺服器有不利影響。

Input Properties

這些屬性定義了動作執行時使用的資料。

屬性

描述

SecurityUser SetSecurityUser 動作的輸出值,它根據選定客服專員在安全性設定檔中的權限對其進行身分驗證。此欄位接受使用大括號 ({ }) 格式的變數。預設值為SecurityUser(與SetSecurityUser的預設輸出值相同)。
ContactID 成功執行此動作後客服專員將設為的所需狀態。選項包括UnavailableAvailable,並且可以作為變數使用。

Output Properties

這些屬性包含變數,用於儲存執行動作後返回的資料。當動作完成後,它們可供參考和使用。

屬性

描述

__DISCONNECTREASON TerminateScript

Result Branch Conditions

結果分支條件允許您在指令碼中建立分支,以處理執行動作時的不同結果。

條件

描述

Default 指令碼未能滿足需要它採用其中一個分支的條件時採用的路徑。如果沒有定義動作的其他分支,也會採用該路徑。
OnSuccess 動作完成且無錯誤而且任何 API 調用或資料返回均成功時採用的路徑(2xx 回應代碼)。
OnInvalidContactID 如果請求的「聯絡人 ID」無效時,採用的路徑。
OnUnauthorized SecurityUser 沒有正確的角色/權限來執行 API 動作時採用的路徑。
OnInvalidSecurityUser 使用無效的安全使用者時採用的路徑。