Wait

為指令碼新增一個暫停。

Wait在系統需要短暫時間來處理請求的情況非常有用,例如如下情況:

  • 將檔案寫入到伺服器或透過 FTP 傳送。
  • 處理內容。
  • 與 CRM 整合,以檢索和排隊工作項目。

在這些情況和類似情況下,新增短暫的暫停,即可完成處理過程。它有助於保持伺服器不因並行請求而超載。暫停時間可以很短,短到 0.1 秒。

Wait還有其他用途,例如:

  • 要在 Hangup 動作之前新增一個延遲。這讓聯絡人有機會掛斷電話,而不是聽到通話斷開聲。
  • 在聊天指令碼的 Exit 動作之前,新增一個延遲。如果您在訊息發出後過快地終止指令碼,有時最後的訊息不會出現在聊天中。
  • 要用Music動作建立一個重複迴圈。確保您在WaitMusic之間有雙向連接器。
  • 當使用Askcaller動作提示聯絡人進行另一個回應時,提示聯絡人提供另一個回應。

Dependencies

當使用Wait建立一個迴圈時,例如使用Music動作,您必須在Wait和其他動作之間有雙向連接器,如本例圖中所示。

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.

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

一般

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

Input Properties

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

屬性

描述

Caption

輸入在指令碼中唯一標識此操作的短語。標題出現在指令碼畫布上的動作圖示下。The default is the action name.

Seconds

輸入暫停的長度(秒)。可以輸入小於一秒的時長,如 0.5

Result Branch Conditions

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

條件

描述

Default

指令碼未能滿足需要它採用其中一個分支的條件時採用的路徑。如果沒有定義動作的其他分支,也會採用該路徑。

Tips & Tricks

  • 在將檔案寫入伺服器或 FTP 的指令碼中,Wait 可能特別有用。
  • Wait 在處理內容或與 CRM 整合以檢索和排隊工作項目的指令碼中可能會有幫助。用此動作新增一個短暫的暫停,以便處理過程完成,並有助於保持伺服器不被並行請求所超載。短暫的等待,如 0.1 秒,可以防止出現問題。
  • Hangup 動作前,包括幾秒鐘的等待時間。這讓聯絡人在聽到呼叫斷開前有機會掛斷電話。
  • 在聊天指令碼的 Wait 動作之前,新增一個 Exit 動作。如果您在訊息發出後過快地終止指令碼,有時訊息不會出現在聊天中。
  • Wait 動作與 Askcaller 動作循環以提示聯絡人繼續回應。
  • 如果您測試了指令碼,發現它在處理小數的秒數時似乎有問題,可以嘗試用逗號代替句號。例如,用 0,5 來代替 0.5

Script Example

此範例不是一個完整的指令碼。使用此動作時需要額外的指令碼編寫工作。

This example shows a message that plays when the script is triggered and then requests and agent. If the caller has to wait for the agent to answer, music will play for 20 seconds and then suspended for 0.5, play for another 20, and so on until the call is answered.

Download this script.