提供: Bright Pattern Documentation
移動先: 案内検索
(Created page with "=== ステップ 5: シナリオを編集してボットと連携します。=== ウェブチャットの対話でWatson Assistantを使用するには、基本的なモバイ...")
(Created page with "このようなボット対応シナリオを設定するには多くの方法があります。このステップで挙げられている内容は、チャットでのWatson...")
Line 82: Line 82:
 
シナリオビルダーリファレンスガイド]]をご覧ください。
 
シナリオビルダーリファレンスガイド]]をご覧ください。
  
There are many ways to construct such a bot-enabled scenario; the instructions given in this step are provided as just one example of how to use your Watson Assistant in chat.
+
このようなボット対応シナリオを設定するには多くの方法があります。このステップで挙げられている内容は、チャットでのWatson Assistantの使用方法の1つの例です。
  
 
In this scenario-building exercise, you will be configuring the system to use the bot to:
 
In this scenario-building exercise, you will be configuring the system to use the bot to:

Revision as of 20:03, 10 April 2020

• English
• 5.19 • 5.3 • 5.8

ボットとチャットの統合方法

Bright Pattern コンタクトセンターは、AlterraやIBM Watsonなどのプロバイダーと統合して、チャットボットをコンタクトセンターサービスで使用できるようにします。この記事では、IBM Watson Assistant(つまり、対話型ボット)を設定済みのチャットサービスと統合する方法について説明します。

ウェブチャットの設定方法では、チャットシナリオ、チャットサービス、チャットシナリオのエントリポイントが連携してウェブサイトにチャットウィジェットを表示するための設定方法について説明しました。有効なチャットウィジェットは、ウェブサイトのお客様をコンタクトセンターのエージェントへ接続します。

ボットがチャットサービスと統合されている場合、お客様はボットに接続でき、ボットは質問への回答、セルフサービスの提供、必要に応じてエージェントへの接続できます。エージェントにルーティングされたチャットの場合でも、統合されたボットは背景で起動し、サジェスト(つまり、エージェントが選択して使用するためのサジェスト)を提供してエージェントをサポートします。

必須条件

この記事は次のことを前提としています:

  • ウェブチャットの設定方法を読み理解すること
  • 会社のIBM Cloudアカウントへのアクセスを持つこと
  • Watson Assistantの仕組みについて理解すること

手順

この手順には、次のステップが含まれています:

  • IBM Watsonでボットを作成する
  • IBM Watson統合アカウントを追加する
  • ボット統合を組み込んだチャットシナリオを作成または選択する
  • ボット専用のチャットサービスを作成または選択する
  • チャットシナリオとサービスを統合アカウントにリンクする
  • チャットをテストする

ステップ 1: IBM CloudでWatson Assistantを作成します。

  1. 作成がまだの場合、 BMアカウントにサインアップし、IBM Cloudを起動します。IBM Cloud は、Watson Assistantチャットボットなど、リソースの展開と管理が行えるアプリケーションです。

  2. IBMの初めてのチュートリアルに記載されている手順に従ってWatson Assistantを作成します。Watson Assistant はボットになり、ワークスペースでそのボットにインテント、エンティティ、およびダイアログを追加できます。Watson Assistantに関する詳しい情報は、リファレンスをご覧ください。

  3. Watson Assistantの作成方法の基本的なガイドラインもご参考ください。

ステップ 2:Watson認証情報を取得します。

Bright Pattern コンタクトセンターをWatson Assistantと統合するには、認証情報が必要です。認証情報は、統合アカウントの追加手順で使われます。

  1. IBM Cloud コンソールでは、次の2つの場所のいずれかからWatson Assistant認証情報を取得できます:
    1. Watson サービス > アシスタント > 管理 (プレーンテキストの認証情報)
    2. Watson サービス > アシスタント > サービス認証情報 (JSONスニペット専用)

  2. Watson Assistant のUrl, ユーザ名,パスワードをテキストファイルなどの別のドキュメントに コピーします。


Watson Assistant 認証情報


ステップ3: 統合アカウントを追加します。

統合アカウントは、コンタクトセンターがサードパーティのサービスと連携するためのものです。

  1. コンタクトセンター管理者アプリケーションの 設定 > コールセンターの設定 >統合アカウントへ進みます。

  2. アカウントの追加 (+) ボタンをクリックし、新しい統合アカウントを追加します。

    新しい統合アカウントの追加


  3. ボット / チャットサジェスト機能エンジンというアカウントタイプを選択し、OKをクリックします。

    "ボット / チャットサジェスト機能エンジン"の選択


  4. ボット / チャットサジェスト機能エンジンのタイプというダイアログで、 Watson Conversationを選択し、OKをクリックします。

    "Watson Conversation"の選択


プロパティ

統合アカウントのプロパティ



以下のフィールドを入力します:

  • 名前:ボットのユニークな名前です。

  • タイプ:アカウントを追加するときに“Watson Assistant ”というタイプが選択されたため、既定のタイプも“Watson Assistant”です。

  • Url:Watson Assistantのエンドポイントです (https://gateway.watsonplatform.net/assistant/api) + /v1/workspaces/ + your workspace ID (see below) + /message?version=2017-05-26
  • ワークスペース ID: Watson Assistant ワークスペースの識別番号です。
    • このIDを取得するには、IBM Watson Assistant > ワークスペースへ進み、ご希望のワークスペースの アクションボタンをクリックし、 詳細の確認を選択します。

      IBM Watson Assistant > ワークスペース
    • ワークスペース IDをコピーします。
ワークスペースIDのコピー
  • ユーザー名:サービス認証情報からコピーされたIBMアカウントのユーザー名です。

  • パスワード:サービス認証情報からコピーされたIBMアカウントのパスワードです。

  • 1日あたりのAPIコールの最大件数:毎日発信できるコールの最大件数です。この制限は、無料アカウントに含まれている1000件以降のコールに対して追加料金が課されないようにするためのものです。

  • サジェストの最大件数:サジェストの最大件数(例:3)は、アクティブなチャット中にエージェントデスクトップに配信できるサジェストの最大件数です。サジェストは、エージェントがチャット中に選択して使用できるボットからの返信です。

  • 接続テスト:クリックして、Bright Pattern コンタクトセンターがWatson Assistantに接続できることを確認します。
    • 認証情報が無効な場合は、Urlプロパティに戻り、それらを正しく入力したことを確認してください。
    • "アカウントの認証情報は有効です"というダイアログが表示されるまでテストします。

画面の下部にある適用をクリックして、アカウントのプロパティを保存します。


ステップ 4: チャットシナリオを作成または選択します。

このステップは ウェブチャットの設定ステップ 1と同じです。

  1. 設定 > シナリオ > チャットへ進みます。

    設定 > シナリオ > チャット


  2. リストから既存のチャットシナリオを選択するか、画面の下にある テンプレートの追加Add-From-Template-Button.pngボタンをクリックし、”モバイルチャット”に基づいて新しいチャットシナリオを作成します。

    "モバイルチャット" のテンプレートの選択


  3. テンプレートから新しいチャットシナリオを作成すると、シナリオビルダーアプリケーションが新しいブラウザータブまたはウィンドウで開きます。シナリオをそのままにして、 保存 をクリックします。

    シナリオに名前を付ける


  4. シナリオにユニークな名前 (例えば、"ボットシナリオ") を付け、 保存をクリックします。新しいシナリオはシナリオリストに表示されます。


ステップ 5: シナリオを編集してボットと連携します。

ウェブチャットの対話でWatson Assistantを使用するには、基本的なモバイルチャットシナリオテンプレートを編集して、ボットがお客様と対話できるように設定しなければなりません。シナリオの詳しい情報は、 シナリオビルダーリファレンスガイドをご覧ください。

このようなボット対応シナリオを設定するには多くの方法があります。このステップで挙げられている内容は、チャットでのWatson Assistantの使用方法の1つの例です。

In this scenario-building exercise, you will be configuring the system to use the bot to:

  • Automatically accept the customer’s chat request
  • Greet the customer
  • Provide answers to the customer
  • Provide suggested replies to the agent
  • Connect to an agent when it’s determined that the bot is not being helpful


Example chat scenario in Scenario Builder


  1. Download File:App Example Bot Scenario.zip and import it to your Contact Center Administrator application.

  2. Select the imported scenario and click EDIT to open it.


The following scenario blocks (with comments) are included in this example scenario. Be sure to read the comments that explain each scenario block's properties.


  1. Chat Bot Select Account: This block tells the system which integrated bot will be used for this scenario.

    Select an integration account


  2. Set Variable: This establishes the customer's first name and last name. Setting this context helps to personalize the conversation.

    Use a variable to get the customer's name from the pre-chat form and use it in the chat interaction


  3. Send Message+: This block delivers a chat message to the customer, incorporating the customer's name.

    Have the bot send a message to the customer, addressing him/her by name


  4. Set Variable: This time, we are defining a step. In this example scenario, we want the bot to respond to the customer two times before connecting to the agent. The first time is specified as "step 0" and the second time is specified as "step 1." The scenario will run through both steps. If the customer's issue is not resolved by step 1, the customer is transferred to the agent for help.

    Use a variable to define this part as the first in a series of steps


  5. If: The If block specifies what happens if the customer did not write a message in the pre-chat form's Message field. If that field is empty, the scenario tells the bot to send a message. The message aligns with what you have configured your Watson Assistant to say. We call the bot's messages suggestions.

    1. Add a branch

    2. Give it a condition of item.message is empty

      If the customer's message is empty, have the bot send a message to the customer


  6. Ask a Bot: The scenario uses this block to get suggestions (i.e., some response from the Watson Assistant) to deliver to the customer. For each of the conditional exits (Failed, Timeout, or No Data), the scenario will send a message and then connect to the agent.

    Get suggestions from the bot


  7. Send Message+: This is used to send a message to the customer via either chat or SMS. In this example, the message is sent in the active chat interaction. If a specific message is not defined here, the standard system-wide message is sent to the customer.

    Send another message if you want


  8. Set Variable: This time, we are defining "step 1." Remember, we want the bot to respond to the customer two times before connecting to the agent. The first time is specified as "step 0" and the second time is specified as "step 1." The scenario will run through both steps. If the customer's issue is not resolved by step 1, the customer is transferred to the agent for help.

    Define this part as step 1


  9. If: In this If block, a condition is set to make sure that if the scenario takes more than two steps to resolve the customer's issue, then it will transfer the chat from the bot to the agent.

    1. Add a branch

    2. Give it a condition of “steps” > “2”

      If the scenario takes more than two steps to resolve the customer's issue, then the agent steps in


  10. Find Agent: The Find Agent block looks for the next available skilled agent to accept the chat. You can use Find Agent to set wait times and send the customer messages about estimated waiting time (EWT).

    The bot couldn't resolve the customer in two steps, so the scenario looks for an agent


  11. Connect Chat: Connect Chat is for setting the destination of the chat. If you leave the destination fields empty, the Find Agent block will find the first available agent.

    You can either specify a destination for the chat or let the system find the next available agent


  12. Exit: The Exit block completes the scenario. Without it, the scenario will loop through this configured flow until the customer ends the chat.


Step 6: Create or Select a Chat Service

See Web Chat Configuration Step 2.


Step 7: Create or Choose a Chat Scenario Entry

Note that this step is basically the same as Web Chat Configuration Step 3, with the addition of another important property.

  1. Go to Configuration > Scenario Entries > Messaging/Chat and select a scenario entry point to use with your chat scenario. The entry point is what starts the scenario.

    Messaging/Chat scenario entries list


  2. If there are no existing chat scenario entries shown, you have to create one.

How to Add a New Chat Scenario Entry

  1. Click the Add chat scenario entry button.

  2. In the Properties tab, fill in the properties as appropriate (see below for required and optional properties). For definitions, see the Contact Center Administrator Guide, section Messaging/Chat.

Required Properties

In the Properties tab, make sure to address the following fields right now. These are critical to chat configuration.

Messaging/Chat scenario entry properties that you need to address for chat to work
  • Name - The unique name (any) of the chat scenario entry (e.g., "Redwood Chat")
  • Unique identifier - A long string of characters that identifies the chat entry. It is recommended that you change it to something short and unique (e.g., "1234").
  • Scenario - Choose the Chat Scenario you selected or created earlier in this procedure (e.g., "Super Chat"). This is where the parts come together to make chat possible.
  • Service - Choose the Chat Service you selected or created earlier in this procedure (e.g., "Pacific Chat"). This is where the parts come together to make chat possible.
  • Bot / Chat suggestions engine - The engine that will provide suggested replies to the agent during chat. Note that in order to use a bot/chat suggestions engine, you must have an integration account configured for your contact center.


Other Properties

The other remaining properties are optional at this time. You can come back to them later.


Step 8: Edit Chat Widget Style

See Web Chat Configuration Step 4


Step 9: Add a Contact Tab

In order for this chat scenario entry to work, you must add a contact tab for the chat widget. See How to Add a Contact Tab.

Step 10: Get the HTML

See Web Chat Configuration Step 6


Final Step: Test the Chat

You have now successfully set up your contact center service, scenario, and chat widget to work in an integrated manner with your Watson Assistant. You should test it to make sure that the:

  • Customer's name entered on the pre-chat form comes through during the chat
  • Bot is able to automate the conversation with the customer
  • Customer is connected to an agent if the bot couldn't help within two tries
  • Agent is able to see the bot's suggestions during the active chat


The following screenshot shows a service chat (on the Agent Desktop side) where the bot provides two responses to the customer and then connects to an agent. You can see the bot's suggestion below the agent's text input field.


Example chat as seen on Agent Desktop


And the following is how the chat looks to the customer:


Example chat as seen by customer on webpage
< 前へ