Case

アクションのVariableプロパティの値に基づいて、複数のカスタムブランチを設定できます。

例えば、Caseアクションは、チャットウィンドウがコンタクトにプレチャットフォームを提示するチャットスクリプトで使用される場合があります。フォームのドロップダウンから、連絡先はチャットする製品のリストから選択します。製品はスクリプトのBeginアクションで変数として設定され、Caseアクションは、連絡先が選択した製品に応じて異なるブランチを設定するために使用されます。

1つのCaseアクションで使用できるブランチの数に制限はありません。

Dependencies

  • 可能なすべての変数値に対して、カスタム分岐条件を作成する必要があります。
  • 常にCase アクションのDefaultブランチを接続します。これは、Variableプロパティの変数が、異なる値や予期せぬ値を保持する可能性がある場合には特に重要です。Defaultブランチを接続することで、スクリプトは予期せぬ値を処理することができます。

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.

ジェネリック

Eメール チャット 電話 ボイスメール ワークアイテム SMS デジタル

Input Properties

これらのプロパティは、アクションが実行時に使用するデータを定義します。

プロパティ

説明

キャプション を追加

スクリプト内でこのアクションを一意に識別できる、短いフレーズを入力します。アクションアイコンにカーソルを合わせるとキャプションが表示されます。The default is the action name.

Variable CASEに値を取得させる元の変数の名前。

Result Branch Conditions

結果の分岐条件を使用すると、アクションが実行されたときにさまざまな結果を処理できるように、スクリプトにブランチを作成できます。

状態

説明

Default スクリプトが他のブランチのいずれかを取る必要がある条件を満たさない限り、パスが取られます。他のブランチが定義されていない場合にも使用されます。

Add a Variable Branch to a CASE Action

Case variables are added by using the connector or link to the appropriate action.

  1. On the canvas, drag a connector from the Case action to a different action.

    The Pick Branch window will open, as follows:

  2. Click the Plus sign (+) to create a new branch.

  3. Enter the value of the variable that will trigger this branch to be taken, for example '1.'
  4. Click OK.
  5. Repeat as needed for each branch.

Script Example

この例は完全なスクリプトではありません。このアクションを使用するには、追加のスクリプト作業が必要です。

In this example, Case is connected to three different Runscript actions. If a call comes in with a DNIS閉じた 着信音声通話のために連絡先がダイヤルした番号と、発信音声通話でエージェントまたはシステムがダイヤルした番号を識別します。 of 8881234567, then the Sales Runscript action runs a designated subscript. If the DNIS is 8771234567, then the Collections Runscript action runs a different script. Finally, if call does not come in on either of those DNIS numbers, the Customer Service Runscript action triggers a subscript.

Would you like to download this script?