Assign

ユーザー定義変数に一意の値を割り当てます。

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

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

プロパティ

説明

Caption

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

Variable 保持したい変数の名前 the value.
Value 保存される値またはデータ。
Type StringNumeric、またはDatetimeから選択します。ここで選択するタイプにより、Valueプロパティが変更され、Valueフィールドに入力されたデータが解釈されます。例えば、Stringを選択して値「1+1」を入力すると、変数に代入される実際の値は「1+1」になります。しかし、Numericを選択して値「1+1」を入力した場合、変数に代入される値は「2」になります。
ScreenPop

作成した変数のプロパティ。trueに設定すると、変数の値がエージェントに表示されるデフォルトのスクリーンポップ閉じた 連絡先に関する情報を含む構成可能なポップアップウィンドウ。特定のイベントの後、通常はエージェントが連絡先に接続したときに、エージェントの画面に表示されます。に表示されます。ユーザスクリーンポップオプションは、現在のACDスキル閉じた エージェントのスキル、能力、知識に基づいてインタラクションの配信を自動化するために使用されますで有効にする必要があります。Select True to enable the display of this value in the default screen pop.デフォルトは Falseです。

SavetoDB

作成した変数のプロパティで、変数の値をCXoneプラットフォームデータベースに保存するかどうかを制御します。保存されたデータにアクセスする方法は2つあります。

Snippetアクションで変数扱う際、savetodb()変数プロパティを使うこともできます。

Select True to enable this value to be saved in the database.デフォルトは Falseです。

MaxStringSize 格納できる値の最大サイズ(KB単位)。デフォルトのサイズは2 KBです。

Result Branch Conditions

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

状態

説明

Default スクリプトが他のブランチのいずれかを取る必要がある条件を満たさない限り、パスが取られます。他のブランチが定義されていない場合にも使用されます。
Overflow 変数に割り当てられた値が最大文字列サイズを超えた場合に取られるパス。

Tips & Tricks

  • Assignを使用して、ストリングまたは数値変数の内容を設定します。
  • 変数の値を追加や編集するためのAssignアクションの使用方法については、変数のヘルプページを参照してください。
  • エージェントアプリケーションの変数名が一致し、スクリプトのAssignアクションがScreenPop = trueに設定されている場合、スクリプト変数の値は、クイックリプライ変数に自動的にマージまたは事前入力されます。変数値が正常にマージされた場合、エージェントは、事前入力されたクイックリプライフィールドを手動で変更する能力を維持します。ScreenPopに設定する変数データの合計量が200 KBを超えないようにしてください。データ量が多いとエージェントアプリケーションのパフォーマンス速度が低下する可能性があります。
  • 変数名の前にキーワードglobalを含めることで、サブスクリプトにグローバル変数が作成されます。例:Global:varName

Script Example

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

Begin triggers a Menu that provides three options, press 1 for Sales, 2 for Support, or 3 for Account Management. When the user selects an option, the script uses a specific Assign action to assign a value for the Skill ID that Countagents uses to determine the number of agents logged in with that skill. The If action then uses an expression, TOTAL=0, to determine which branch to take if agents are logged in. TRUE means the total agents logged in does equal 0 for that ACD skill, and the script will run a separate script for leaving a message. FALSE means the total agents logged in does not equal 0, and Reqagent uses the variable value in Assign to request an agent with the skill (via the Skill ID in Newskill).

Download this script.