Capture

透過 DTMFClosed 使用者點擊或輕點電話鍵盤上的某個鍵而產生的訊號音。 從聯絡人處收集資訊。

Supported Script Types

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

電話

Input Properties

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

屬性

描述

Caption

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

Variable 您想保留的變數名稱 the DTMF value that the contact enters.
MaxDigits 使用者可為此動作提供的最大位數;例如,若提示請求輸入個人社會安全號碼的後四位,則將此值設定為 4。預設值為 1。若提示需要結尾字元(例如井字號或 #),您必須在設定 MaxDigits 值時將其考慮在內。例如,若錄音的選單訊息詢問社會安全號碼的最後 4 位並以井字號結束,則將此值設定為 5。達到 MaxDigits值時,如果有連接的話,指令碼會按照 MaxDigits 分支繼續執行。
Terminator

輸入您希望聯絡人輸入的字元,表示他們已經完成了數字輸入。例如,井字號 (#) 通常用作終止字元。如果您不想在此動作中使用終止字元,請將此屬性留空。

終止字元儲存在 Variable 中,除非您在 Terminator 欄位的後面加一個減號。例如:#-

如果您指定了終止字元,必須將其包含在 MaxDigits 屬性的字元數中。

Timeout 動作超時前等待執行的秒數。值必須在060之間。
InterDigitTimeout 聯絡人輸入一個數字後,系統等待查看聯絡人是否輸入另一個數字的時間。您必須建立指令碼編寫邏輯來處理超時。

Result Branch Conditions

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

條件

描述

Default 指令碼未能滿足需要它採用其中一個分支的條件時採用的路徑。如果沒有定義動作的其他分支,也會採用該路徑。
Terminator 呼叫者提供屬性中指定的值時採用的路徑。
MaxDigits 當來電者的輸入達到 MaxDigits 值時,採用的路徑。
Timeout 在指定的秒數內沒有回應時採用的路徑。
InterDigitTimeout 在呼叫者對提示進行 DTMF 回應過程中,超過InterDigitTimeout屬性中指定的時間時採用的路徑。

Tips & Tricks

  • 聯絡人可能會在執行 Capture 動作之前按下數位鍵,例如在聽語音提示時。這些數字儲存在數字緩衝區內,在觸發 Capture 動作時即會將其包含在內。
  • 若要在觸發Capture之前清除數位緩衝區,請先觸發另一個逾時屬性設定為 0 的 Capture 動作。

Script Example

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

In this example, the script requests an agent while the contact is in queue. During that time, music plays. If the contact presses any digit (DTMF tone) on their keypad while the music is playing, the contact will follow the digit branch to the Capture action. The Capture action assigns the stored DTMF tone as the value of the user-defined variable in the Capture action. In this case, the variable is named CallbackReq. Then, the If action checks the variable value and uses an expression (CallbackReq=1) to determine whether to follow the TRUE or FALSE branch. If TRUE, the contact proceeds to the Play action and a subsequent callbackClosed 保留客戶在佇列中的位置,並在客戶移至佇列靠前位置時自動呼叫客戶。. If FALSE, music will continue to play for another 30 seconds.

A script where the MUSIC action has a branch connecting to CAPTURE, which links to IF, which has two branches for true and false.

Would you like to download this script?