提供: Bright Pattern Documentation
< 5.19:Tutorials-for-admins‎ | AI‎ | WatsonAssistantIntegrationAccount
Revision as of 15:26, 10 April 2020 by Marina (talk | contribs) (Created page with "APIキーは、 ''スキル > マイ・スキル> オプション > API詳細の確認''で取得できます。<br /><br />File:Watson-Skill-URL2-53.png|center|thumb|800px|...")
移動先: 案内検索
• English
• 5.19 • 5.3 • 5.8

Watson Assistant統合アカウントの設定

IBM Watson Assistantとの統合は、 統合アカウントを通じて有効になります。これらの統合アカウントには、サードパーティサービスの認証情報が保存されており、Bright Pattern コンタクトセンターがその情報にアクセスして操作できます。

Watson名に関するご注意

Bright Patternは、IBM Watson Assistant (Conversation) (旧バージョン) と IBM Watson Assistant (最新バージョン)と統合できます。

以前は、Watson AssistantはWatson Conversationと呼ばれ、そのWatson Conversationの認証情報にはユーザー名とパスワードが含まれていました。 IBMはWatson Assistantという名前に変更し、ユーザー名とパスワードの情報をAPIキーに置き換えました。互換性を確保するために、統合アカウントは両方のタイプのボットに対応します。

この記事では、 Watson Assistant 統合の設定方法、そのプロパティの編集方法について説明します。

手順

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

ボット/チャットサジェスト機能エンジン統合アカウントを追加し、Watson Assistantを選択します。


ボット/チャットサジェスト機能エンジン統合アカウントのタイプ


ステップ 2: プロパティを編集します。

プロパティダイアログでは、お持ちの IBM Watson Assistant ボットの認証情報を以下の通りに入力します。そうすることで、Bright Patternが ボットにアクセスし、チャット対話で使用できます。


Watson Assistant ボット/チャットサジェスト機能エンジン統合アカウントのプロパティ


アカウント名

この統合アカウントのユニークな名前です。


タイプ

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


Url

以下のフォーマットで表示されるWatson Assistant スキルのエンドポイントです : <Legacy v1 Workspace URL>?version=2017-05-26

例:

https://gateway.watsonplatform.net/assistant/api/v1/workspaces/12a3ab45-b12b-1234-12a3-12d34aebe56c/message?version=2017-05-26


  1. URLは、 スキル > マイ・スキル> オプション > API詳細の確認で取得できます。

    IBM> Watson スキル >オプション > API 詳細の確認


  2. 開いたスキルの詳細ページで、Legacy v1 Workspace URLをコピーします。

    Legacy v1 Workspace URLのコピー


  3. URLの末尾に?version 2017-05-26を付けます。例:

    https://gateway.watsonplatform.net/assistant/api/v1/workspaces/46a4ab18-b13b-4306-83a0-57d83aebe56c/message?version=2017-05-26

この操作を行う理由とは:

統合アカウントでは、/messageメソッドを使ったV1ランタイムAPI へのリクエストが可能です。このメソッドの場合、ユーザーによる入力がWatson Assistantに送信され、返信が返されます。 /messageメソッドを使ったV2ランタイムAPIへのリクエストも可能です。

APIリクエストには、version=YYYY-MM-DDというフォーマットの日付を使ったバージョンパラメーターが必要です。この統合では、/message version=2017-05-26が使われています。このバージョンの日付はIBM Cloudによって指定された現行のバージョンと一致しない場合があります。しかし、Bright Patternアプリケーションと互換性があるため、このバージョンは当社の統合に使われる正しいものです。

バージョンパラメータがURLプロパティの末尾に付くと、統合されたWatson AssistantがBright Patternチャットサービスで使用されるたびに、適切なバージョンがすべてのAPIリクエストに付きます。


ワークスペース ID

Watson Assistant (Conversation) のスキル (つまり、インスタンス)の識別番号(文字列)です。 IBM Watsonの場合、スキルはワークスペースと呼ばれています。

  1. IDは、 スキル > マイ・スキル> オプション > API詳細の確認で取得できます。

    IBM> Watson スキル >オプション > API 詳細の確認


  2. 開いたスキルの詳細ページで、ワークスペースIDをコピーします。

    ワークスペースIDのコピー


API キー

サービスの認証手続きに使われるAPIキー (文字列) です (例:“EEE-MTX13ZS1Ta4pD8qO4rmGP_SXR7HPB8IAAnPgTwKV”).

APIキーは、 スキル > マイ・スキル> オプション > API詳細の確認で取得できます。

IBM> Watson スキル >オプション > API 詳細の確認



  1. 開いたスキルの詳細ページで、APIキーをコピーします。

    APIキーのコピー

The API key is either auto-generated for you or created manually in IBM Cloud.


How to Create a New Key
  1. Go to IBM's website and navigate to IBM Cloud > Access (IAM) > IBM Cloud API Keys.

  2. Click Create an IBM Cloud API key.

    IBM Cloud API Keys


  3. In Create API Key dialog, add name and description.

    Create API Key


  4. Download it and save it because the API key will be shown only once.

    Create API Key


Max API calls per day

The maximum number of calls that can be done each day. This limit is here to keep your account from being charged for additional calls beyond the first 1,000 that are included in a free account.


Maximum suggestions

The maximum number of suggestions (e.g., 3) that can be delivered to the Agent Desktop during active chat interactions. Suggestions are the bot-generated replies that agents can select and use during chats.


Test Connection

Click to be sure Bright Pattern Contact Center can connect to your Watson Assistant.

If the credentials are invalid, go back to the Url property and make sure you’ve entered it exactly as explained. Test until you see the success dialog: "Account credentials appear to be valid."

Step 3: Save properties

Click Apply at the bottom of the screen to save your account properties. Your Watson Assistant integration configuration is now complete.

Recommended Reading

For more information on Watson Assistant, see: