はじめに
対話型AIプラットフォーム
チャットボットの概要
自然言語処理(NLP)
ボットの概念と用語
クイックスタートガイド
プラットフォームへのアクセス
ボットビルダーの操作
リリースノート
最新バージョン(英語)
以前のバージョン(英語)
廃止機能(英語)
コンセプト
設計
ストーリーボード
ダイアログタスク
ダイアログタスクとは
ダイアログビルダー
ノードタイプ
インテントノード
ダイアログノード
エンティティノード
フォームノード
確認ノード
ロジックノード
ボットアクションノード
サービスノード
Webhookノード
スクリプトノード
グループノード
エージェント転送ノード
ユーザープロンプト
音声通話プロパティ
イベント ハンドラー
ナレッジグラフ
ナレッジグラフの抽出
ナレッジグラフの構築
ボットにナレッジグラフを追加
グラフの作成
ナレッジグラフの構築
既存のソースからFAQを構築
特性、同義語、停止用語
変数ネームスペースの管理
更新
ノード間の質問と回答の移動
用語の編集と削除
質問と応答の編集
ナレッジグラフの分析
通知タスク
スモールトーク
デジタルスキル
デジタルフォーム
デジタルビュー
デジタルビューとは
パネル
ウィジェット
トレーニング
トレーニングとは
機械学習
機械学習とは
モデル検証
ファンダメンタルミーニング
ナレッジグラフ
示唆
ランキングおよび解決
NLPの詳細設定
NLPのガイドライン
インテリジェンス
インテリジェンスとは
コンテキスト
コンテキストインテント
割り込み
複数インテントの検出
エンティティの変更
デフォルトの会話
センチメント管理
トーン分析
テストとデバッグ
ボットと会話
発話テスト
バッチテスト
会話テスト
デプロイ
チャネル
公開
分析
ボットの分析
NLPメトリクス
会話フロー
Usage Metrics
封じ込め測定
カスタムダッシュボード
カスタムダッシュボードとは
メタタグ
カスタムダッシュボードとウィジェット
ユニバーサルボット
ユニバーサルボットとは
ユニバーサルボットの定義
ユニバーサルボットの作成
ユニバーサルボットのトレーニング
ユニバーサルボットのカスタマイズ
他言語の有効化
ストア
プラントと使用
Overview
Usage Plans
Support Plans
Invoices
管理
ボット認証
複数言語対応ボット
個人を特定できる情報の編集
ボット変数の使用
IVRのシステム連携
一般設定
ボット管理
ハウツー
会話スキルの設計
バンキングボットを作成
バンキングボット – 資金の振り替え
バンキングボット – 残高を更新
ナレッジグラフを構築
スマートアラートの予約方法
デジタルスキルの設計
デジタルフォームの設定方法
デジタルビューの設定方法
データテーブルのデータの追加方法
データテーブルのデータの更新方法
Add Data from Digital Forms
ボットのトレーニング
示唆の使用方法
インテントとエンティティのパターンの使用方法
コンテキスト切り替えの管理方法
ボットのデプロイ
エージェント転送の設定方法
ボット関数の使用方法
コンテンツ変数の使用方法
グローバル変数の使用方法
Web SDK Tutorial(英語)
Widget SDK Tutorial(英語)
ボットの分析
カスタムダッシュボードの作成方法
カスタムタグを使ってフィルタリング
管理
ボット管理者コンソール
ダッシュボード
ユーザーの管理
ユーザーの管理
グループの管理
ロール管理
ボット管理モジュール
登録
ユーザーの招待
招待状の一括送信
ユーザーデータのインポート
Active Directoryからユーザーを同期
セキュリティ/コンプライアンス
シングル サインオンの使用
セキュリティ設定
Billing(日本未対応)
  1. ホーム
  2. Docs
  3. Virtual Assistants
  4. How Tos
  5. Travel Planing Assistant
  6. Travel VA: Configuring Digital Forms

Travel VA: Configuring Digital Forms

In this How-To, we will explore a scenario in a Travel Planning assistant, through which a user can book a flight. We will see how Digital Forms can be used to gather all the required information from the user, then make the booking based on that information.

For details on what Digital Forms are and how they are implemented in the Kore.ai XO Platform, refer here.

Problem Statement

Consider a Travel Planning Assistant helping a user book a flight. There are several information categories that the VA should collect from the user in order to complete this task. Rather than asking the user for each piece of information one by one, the VA can ask the user just once to complete a form that collects all the necessary data. Once the form is successfully submitted, the VA can pull the data and process the booking.

Prerequisites

To go through these configurations, you need to know at least the basics of the following XO Platform features:

Configurations

When a user makes a booking, the following needs to happen within your assistant

  1. A Digital Form needs to be displayed in order to gather input from the user;
  2. A Dialog Task needs to:
    1. trigger the above Digital Form; and
    2. capture the user-entered booking information.

Digital Form Configuration

Moving forward, we will be creating a form that gathers some of the necessary information in order to allow the user to book a flight:

  • Trip Type – Roundtrip or One Way.
  • Departure Airport (From);
  • Arrival Airport (To);
  • Departure Date;
  • Return Date  
  • Fare – default selection set to Premium Economy;
  • Pro Tip – showcases a promotional offer for Premium Economy seats and only displays when the selected Fare is Economy.
  • Passenger First Name and Last Name.

Form Creation

  1. From the Kore.ai XO Platform, open the Travel Planning assistant.
  2. Select the Build tab from the top menu.
  3. From the left navigation menu, select Digital Skills > Digital Forms.
  4. Click New Form and enter the following:
    1. Name – name to the form, say BookingForm
    2. Display Name for the form, say Booking Form
    3. Description of the form.
    4. Logo and style for the form header
    5. Description toggle set to on/off depending on whether you want to display the form description in the header
  5. Save & Proceed to the next step.

The Form Editor

The Form Editor opens with components on the left, and a blank form. You can drag and drop components to the form as per your requirement. By default, a Submit button is added to the form. This would trigger the submit event which would capture the user input and save in the context object. As soon as you drag and drop a component, its property settings panel will be displayed. There are several settings available for each component and you can set them up according to your own requirements. Some of these settings include: making a field mandatory, adding tooltips, securing field data, and more. This article takes you through the basic ones.

  1. Start by adding a selection field for the Trip Type. Drag and drop a Toggle component onto the form and set the following values:
    1. Display Name, say Trip Type.
    2. Name used for internal reference, say TripType.
    3. Description of the field.
    4. Placeholder value to be displayed in the field when blank, say, Please select whether you are booking a roundtrip.
    5. Value used to display functionality when the toggle is either on or off. When the toggle is enabled, set the value to Roundtrip. For the disabled state of the toggle, set the value to One Way.

  2. Drag and Drop a Dropdown component onto the form, for the From field.
    1. Display Name, say From.
    2. Name used for internal reference, say From.
    3. Description of the field.
    4. Placeholder value to be displayed in the field when blank, say, Select the trip type.
    5. Scroll and locate Data Settings, then click Add Values to enter the values. You can add a list of airports from which flights are departing.

  3. Repeat Step 2 to add the To field, for the arrival airport.
  4. Drag and drop a Date field onto the form, to add the Departure Date
    1. Display Name, say Departure Date.
    2. Name used for internal reference, say DepartureDate.
    3. Description of the field.
    4. Placeholder value to be displayed in the field when blank, say, Please select the departure date.

  5. Add a second Date field, for the Return Date and repeat Step 4. 
  6. Drag and drop a Radio Button component onto the form for the Fare field, and set it up as follows:
    1. Display Name, say Fare.
    2. Name used for internal reference, say Fare.
    3. Description of the field.
    4. Placeholder value to be displayed in the field when blank, say, Please select the Fare Category.
    5. Scroll and locate Data Settings, then click Add Values to enter the values – Economy, Premium Economy and First Class. You can mark one value, e.g. Premium Economy, as default. This would be selected by default at the time of execution.

  7. Add a Pro Tip component. This field will only be visible if the user selects Economy as the Fare.
    1. Display Name, say Pro Tip
    2. Name used for internal reference, say Protip.
    3. Description of the field, say Book a Premium Economy seat and get a free hot meal onboard.
    4. Placeholder value to be displayed in the field when blank. 
    5. Scroll down to Visibility Settings and click Add Visibility Rule. 
    6. Now, set the rule by building the following logical expression:Fare Equal to Value Economy.

      This rule ensures that the Pro Tip will only be visible when the user selects the Economy option under the Fare field.

  8. Drag and drop a Text Field component onto the form, to add the Passenger First Name field.
    1. Display Name, say Passenger First Name.
    2. Name used for internal reference, say PassengerFirstName.
    3. Description of the field.
    4. Placeholder value to be displayed in the field when blank, say, Enter the name of the account holder.

  9. Repeat Step 7 to add the Passenger Last Name field. 
  10. Use any additional fields that are required for your process. For example, a Select Flight field, as a Radio Button, further fields for flight documents, (as e.g.: Text, Text Area, etc.) onboard meal options (as e.g.: Checkboxes or Radio Buttons), etc.
  11. You can select how the VA handles the conversation when the user cancels the form. You can choose from two options:
    • Discard the task and trigger End of Task Event: This is the default option.
       
    • Continue with this task and transition to this node: In the Select Node drop-down list, you can select any node present in the current dialog task.

    Note: :The target node has to be in the same dialog, you cannot make a jump to a target node outside the current dialog. The list of target nodes only shows the local nodes. If the target node is not present during runtime, the platform presents the error Error in continuing the conversation, and the task should get discarded.

Your form is ready.

You can toggle between Desktop View and Mobile View to see how it looks on each device type. 

Use the Test button to see a preview. Below is a demo of the user experience with the form we have built:

 

Dialog Task Configuration

We will be creating a dialog task and adding a form node to trigger the Digital Form created in the above step and use a service node to make a service call to complete the booking process. Please see Using the Dialog Builder for details on working with Dialog Tasks. 

Create a Dialog Task

  1. Select the Build tab from the top menu
  2. From the left navigation menu, select Conversational Skills > Dialog Tasks.
  3. Click Create Dialog to create a new Task
    1. Enter the Intent Name, say, Book a Flight
    2. Create & Proceed to open the dialog builder page.

Add a Digital Form Node

  1. Click the + next to the intent node and select the Digital Form node.
  2. From the dropdown list select the Booking Form we created earlier.
  3. You will be prompted to select the Form Experience. Kore.ai XO Platform allows you to gather user input both from the form and through conversation based on the channel.
  4. For this use case, let us select Only Form UI experience.
  5. A Form Node would be added, you can customize the form name, etc.
  6. We are changing the Name to BookingForm and Display Name to Booking Form.

Add a Message Node

Next, we will see how to capture the values returned by the Form Node using a Script and a Message node..

  1. Add a Message Node to the form node.
  2. Set the Name to FormMessage and Display Name to Form Message.
  3. Click Manage under Bot Responses to open the message editor.
  4. Select the JavaScript tab and enter the following code. This is a simple script that captures some of the data from within the context object, as submitted by the user into the Form, and displays it accordingly.
    var message;
      message = 'You have booked a '+context.forms.BookingForm.TripType+' flight in the name of '+context.forms. BookingForm.PassengerLastName;
      message = message + ' and opted for '+ context.forms. BookingForm.Fare;
    print(message);

  5. Your dialog task is ready to use a digital form.

 

Test the Assistant

Talk to the bot to trigger the above dialog. The form will be displayed, enter the values and click Submit, the message will be displayed.

You can use the context object as shown above in Script or Service nodes for further processing of the booking.

See here for how to add this data into data tables.

Travel VA: Configuring Digital Forms

In this How-To, we will explore a scenario in a Travel Planning assistant, through which a user can book a flight. We will see how Digital Forms can be used to gather all the required information from the user, then make the booking based on that information.

For details on what Digital Forms are and how they are implemented in the Kore.ai XO Platform, refer here.

Problem Statement

Consider a Travel Planning Assistant helping a user book a flight. There are several information categories that the VA should collect from the user in order to complete this task. Rather than asking the user for each piece of information one by one, the VA can ask the user just once to complete a form that collects all the necessary data. Once the form is successfully submitted, the VA can pull the data and process the booking.

Prerequisites

To go through these configurations, you need to know at least the basics of the following XO Platform features:

Configurations

When a user makes a booking, the following needs to happen within your assistant

  1. A Digital Form needs to be displayed in order to gather input from the user;
  2. A Dialog Task needs to:
    1. trigger the above Digital Form; and
    2. capture the user-entered booking information.

Digital Form Configuration

Moving forward, we will be creating a form that gathers some of the necessary information in order to allow the user to book a flight:

  • Trip Type – Roundtrip or One Way.
  • Departure Airport (From);
  • Arrival Airport (To);
  • Departure Date;
  • Return Date  
  • Fare – default selection set to Premium Economy;
  • Pro Tip – showcases a promotional offer for Premium Economy seats and only displays when the selected Fare is Economy.
  • Passenger First Name and Last Name.

Form Creation

  1. From the Kore.ai XO Platform, open the Travel Planning assistant.
  2. Select the Build tab from the top menu.
  3. From the left navigation menu, select Digital Skills > Digital Forms.
  4. Click New Form and enter the following:
    1. Name – name to the form, say BookingForm
    2. Display Name for the form, say Booking Form
    3. Description of the form.
    4. Logo and style for the form header
    5. Description toggle set to on/off depending on whether you want to display the form description in the header
  5. Save & Proceed to the next step.

The Form Editor

The Form Editor opens with components on the left, and a blank form. You can drag and drop components to the form as per your requirement. By default, a Submit button is added to the form. This would trigger the submit event which would capture the user input and save in the context object. As soon as you drag and drop a component, its property settings panel will be displayed. There are several settings available for each component and you can set them up according to your own requirements. Some of these settings include: making a field mandatory, adding tooltips, securing field data, and more. This article takes you through the basic ones.

  1. Start by adding a selection field for the Trip Type. Drag and drop a Toggle component onto the form and set the following values:
    1. Display Name, say Trip Type.
    2. Name used for internal reference, say TripType.
    3. Description of the field.
    4. Placeholder value to be displayed in the field when blank, say, Please select whether you are booking a roundtrip.
    5. Value used to display functionality when the toggle is either on or off. When the toggle is enabled, set the value to Roundtrip. For the disabled state of the toggle, set the value to One Way.

  2. Drag and Drop a Dropdown component onto the form, for the From field.
    1. Display Name, say From.
    2. Name used for internal reference, say From.
    3. Description of the field.
    4. Placeholder value to be displayed in the field when blank, say, Select the trip type.
    5. Scroll and locate Data Settings, then click Add Values to enter the values. You can add a list of airports from which flights are departing.

  3. Repeat Step 2 to add the To field, for the arrival airport.
  4. Drag and drop a Date field onto the form, to add the Departure Date
    1. Display Name, say Departure Date.
    2. Name used for internal reference, say DepartureDate.
    3. Description of the field.
    4. Placeholder value to be displayed in the field when blank, say, Please select the departure date.

  5. Add a second Date field, for the Return Date and repeat Step 4. 
  6. Drag and drop a Radio Button component onto the form for the Fare field, and set it up as follows:
    1. Display Name, say Fare.
    2. Name used for internal reference, say Fare.
    3. Description of the field.
    4. Placeholder value to be displayed in the field when blank, say, Please select the Fare Category.
    5. Scroll and locate Data Settings, then click Add Values to enter the values – Economy, Premium Economy and First Class. You can mark one value, e.g. Premium Economy, as default. This would be selected by default at the time of execution.

  7. Add a Pro Tip component. This field will only be visible if the user selects Economy as the Fare.
    1. Display Name, say Pro Tip
    2. Name used for internal reference, say Protip.
    3. Description of the field, say Book a Premium Economy seat and get a free hot meal onboard.
    4. Placeholder value to be displayed in the field when blank. 
    5. Scroll down to Visibility Settings and click Add Visibility Rule. 
    6. Now, set the rule by building the following logical expression:Fare Equal to Value Economy.

      This rule ensures that the Pro Tip will only be visible when the user selects the Economy option under the Fare field.

  8. Drag and drop a Text Field component onto the form, to add the Passenger First Name field.
    1. Display Name, say Passenger First Name.
    2. Name used for internal reference, say PassengerFirstName.
    3. Description of the field.
    4. Placeholder value to be displayed in the field when blank, say, Enter the name of the account holder.

  9. Repeat Step 7 to add the Passenger Last Name field. 
  10. Use any additional fields that are required for your process. For example, a Select Flight field, as a Radio Button, further fields for flight documents, (as e.g.: Text, Text Area, etc.) onboard meal options (as e.g.: Checkboxes or Radio Buttons), etc.
  11. You can select how the VA handles the conversation when the user cancels the form. You can choose from two options:
    • Discard the task and trigger End of Task Event: This is the default option.
       
    • Continue with this task and transition to this node: In the Select Node drop-down list, you can select any node present in the current dialog task.

    Note: :The target node has to be in the same dialog, you cannot make a jump to a target node outside the current dialog. The list of target nodes only shows the local nodes. If the target node is not present during runtime, the platform presents the error Error in continuing the conversation, and the task should get discarded.

Your form is ready.

You can toggle between Desktop View and Mobile View to see how it looks on each device type. 

Use the Test button to see a preview. Below is a demo of the user experience with the form we have built:

 

Dialog Task Configuration

We will be creating a dialog task and adding a form node to trigger the Digital Form created in the above step and use a service node to make a service call to complete the booking process. Please see Using the Dialog Builder for details on working with Dialog Tasks. 

Create a Dialog Task

  1. Select the Build tab from the top menu
  2. From the left navigation menu, select Conversational Skills > Dialog Tasks.
  3. Click Create Dialog to create a new Task
    1. Enter the Intent Name, say, Book a Flight
    2. Create & Proceed to open the dialog builder page.

Add a Digital Form Node

  1. Click the + next to the intent node and select the Digital Form node.
  2. From the dropdown list select the Booking Form we created earlier.
  3. You will be prompted to select the Form Experience. Kore.ai XO Platform allows you to gather user input both from the form and through conversation based on the channel.
  4. For this use case, let us select Only Form UI experience.
  5. A Form Node would be added, you can customize the form name, etc.
  6. We are changing the Name to BookingForm and Display Name to Booking Form.

Add a Message Node

Next, we will see how to capture the values returned by the Form Node using a Script and a Message node..

  1. Add a Message Node to the form node.
  2. Set the Name to FormMessage and Display Name to Form Message.
  3. Click Manage under Bot Responses to open the message editor.
  4. Select the JavaScript tab and enter the following code. This is a simple script that captures some of the data from within the context object, as submitted by the user into the Form, and displays it accordingly.
    var message;
      message = 'You have booked a '+context.forms.BookingForm.TripType+' flight in the name of '+context.forms. BookingForm.PassengerLastName;
      message = message + ' and opted for '+ context.forms. BookingForm.Fare;
    print(message);

  5. Your dialog task is ready to use a digital form.

 

Test the Assistant

Talk to the bot to trigger the above dialog. The form will be displayed, enter the values and click Submit, the message will be displayed.

You can use the context object as shown above in Script or Service nodes for further processing of the booking.

See here for how to add this data into data tables.

メニュー