Askcaller (Chat Scripts)

チャットの連絡先に情報を要求します。たとえば、このアクションを使用して、アカウント番号、名前、その他の役立つ情報を提供します。

Supported Script Types

The icon for the Chat script type - a chat bubble with an ellipsis inside (...), in a diamond shape.

チャット

Askcallerアクションは、SMSメディアタイプのスクリプトでも使用できます。

Input Properties

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

プロパティ

説明

Caption

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

Message このアクションの実行時に選択したターゲットに送信されるテキスト。フィールドに変数を使用できます。
ResultVar 作成され、返された情報を保持する変数名。たとえば、コンタクトがアカウント番号を123456と入力した場合、変数は123456を保持します。
TimeoutSec アクションがタイムアウトする前に実行を待機する秒数。値は0から60の間でなければなりません。 The contact has this amount of time to enter information into their chat window.

Result Branch Conditions

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

状態

説明

Default スクリプトが他のブランチのいずれかを取る必要がある条件を満たさない限り、パスが取られます。他のブランチが定義されていない場合にも使用されます。
Timeout 指定された秒数の間応答がない場合に取られるパス。
CallerResponded 連絡先が応答を提供する場合に取られるパス。
Error アクションが正しく実行されなかったときにとられるパス。これは例えば、接続不良、構文エラーなど予期しない問題が発生した場合などです。_ERR変数に1つのアンダースコア文字がある場合、問題の簡潔な説明を入力する必要があります。

Script Example

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

In the following script, the Askcaller action requests an account number from the contact. If the contact provides an account number, they are passed on to an agent through the Reqagent action. If the contact does not respond, the interaction is looped back to the account number prompt. This occurs up to the number of times specified in the Loop action. Each loop sends a message explaining that the system did not receive a response from the contact. If no response is received after the specified number of loops, a different message is sent to inform the contact that no account number was received, then the interaction ends.

Would you like to download this script?