표준 봇처럼 범용 봇에 한 개 이상의 언어를 활성화할 수 있지만 기능은 전혀 다릅니다. 표준 봇에 새로운 언어를 활성화하는 경우, 전체 봇 정의로 구성된 언어 팩을 업로드할 필요가 있습니다. 반면 표준 봇에 새로운 언어를 활성화하는 경우, 해당하는 기본 대화를 설정하기만 하면 됩니다. 표준 봇은 연결된 봇의 활성화된 언어를 얻지 않습니다. 범용 봇에 기본값과 추가 언어를 활성화해야 합니다. 사용자 발화가 활성화된 언어로 만들어진 경우, 범용 봇은 이를 같은 언어가 활성화된 이러한 링크된 봇 작업에만 라우팅 됩니다. 예를 들어, 표준 봇에 독일어가 활성화되어 있고 독일어로 된 사용자 발화가 있는 경우, NLP 엔진은 독일어를 지원하는 모든 링크된 봇 작업을 찾고 이러한 작업에만 발화를 전송합니다.

참고: 사용자가 활성화되지 않은 언어로 표준 봇과 상호작용하는 경우, 지원되는 언어 중 하나로 상호작용하도록 사용자에게 요청하는 표준 응답을 기본 언어로 전송합니다. 또한, 관련 응답이 링크된 작업 중 어느 것에도 없는 경우, 봇은 언어별 기본 대화를 트리거합니다.

시작하기 전에 이 항목은 사용자가 Kore.ai의 다국어 봇의 기초를 이해하고 있으므로 표준 봇에 관련된 측면에 초점을 맞추고 있는 것으로 가정합니다. 봇 빌더 내의 다국어 봇 기초에 관한 내용은 다국어 봇 구축하기를 참조하세요.

언어 활성화

다음과 같은 단계를 따라 표준 봇에 추가 언어를 활성화합니다.

  1. 새 언어를 설정하고자 하는 범용 봇을 엽니다.
  2. 상단 메뉴에서 구축 탭을 선택합니다.
  3. 왼쪽 메뉴에서 설정 ->언어를 선택합니다.
  4. 오른쪽 상단에서 언어 추가 버튼을 클릭합니다.
  5. 언어 추가 창에서, 원하는 언어 옆의 설정을 클릭합니다.
    참고: 언어는 표준 봇에만 활성화되며, 이 언어가 링크된 봇에도 활성화되고 게시되었는지 확인합니다.
  6. 언어 선택 시간 프레임(이 옵션을 보려면 아래로 스크롤) 아래에서 다음과 같은 옵션 중 하나를 선택합니다.
    • 수명: 자동 감지된 언어나 사용자가 선택한 선호하는 언어가 사용자의 선호 언어로 설정됩니다.
    • 세션 당: 모든 세션이 시작할 때 사용자의 언어를 감지하고 그에 맞춰 응답합니다.
      참고: 높은 확신으로 언어를 결정할 수 없으면, 봇은 사용자에게 선호하는 언어를 선택하라고 요청합니다. 언어 기본 설정 선택 도중 사용자와 소통에는 기본 언어가 사용됩니다.
  7. 저장을 클릭합니다.

기본 대화 커스터마이징

사용자 의도를 Kore.ai NLP 엔진이 파악하지 못한 경우, 표준 봇은 사용자에게 기본 대화로 응답합니다. 각 활성화된 언어에 언어별 기본 대화 버전을 생성하여 이런 봇 응답이 사용자의 선호하는 언어로 응답하도록 해야 합니다. 그렇지 않으면, 표준 봇 응답은 사용자의 선호하는 언어와 상관없이 기본 봇 언어를 적용합니다. 언어별 기본 대화를 열려면 다음 단계를 따르세요.

  1. 언어별 기본 대화를 변경하고자 하는 표준 봇을 엽니다.
  2. 봇 창의 상단 오른쪽에서 현재 봇 언어의 이름을 클릭하고 활성화된 언어 중 어떤 것이라도 선택합니다. 이렇게 하면 선택에 따라 봇 언어가 전환됩니다.

언어를 일단 전환했으면, 봇의 기본 대화로 이동하여 기본 대화 커스터마이징 항목에 설명된 대로 필요한 내용을 변경합니다.

標準ボットと同様に、ユニバーサルボットでも複数の言語を有効にすることができますが、機能は全く異なります。新しい言語を標準ボットで有効にする場合、ボット全体の定義から成る言語パックをアップロードする必要があります。一方で、ユニバーサルボットで新しい言語を有効にする場合、対応するデフォルトダイアログを設定する必要があります。ユニバーサルボットは、リンクされたボットの有効化された言語を取得しません。ユニバーサルボットで、デフォルト言語と追加言語を有効にする必要があります。ユーザーが有効な言語で発話した場合、ユニバーサルボットは、同一言語が有効になっているリンクされたボットタスクにのみその発話を伝達します。例えば、ユニバーサルボットでドイツ語が有効になっており、ユーザーがドイツ語で発話した場合、NLPエンジンはドイツ語をサポートするすべてのリンクされたボットのタスクを探し、それらのタスクにのみその発話を送信します。

メモ:有効でない言語を使用してユーザーがユニバーサルボットと対話した場合、ユニバーサルボットは、サポートされている言語での対話を求める標準応答を、デフォルトの言語でユーザーに送信します。リンクされたタスクのいずれも関連する応答を持たない場合、ボットは言語別のデフォルトダイアログをトリガーします。

はじめに この記事では、Kore.aiのボットプラットフォームを使用したイベントハンドラの機能の基礎について、お客様が理解していることを前提としていますので、ユニバーサルボットに特化して焦点を当てています。ボットビルダーの多言語ボットの基礎については、多言語ボットの構築を参照してください。

言語を有効化

ユニバーサルボットの追加言語を有効にするには、以下の手順に従います。

  1. 新しい言語を構成したいユニバーサルボットを開きます。
  2. トップメニューから構築タブを選択します。
  3. 左側のメニューから、構成->言語を選択します。
  4. 右上の言語の追加ボタンをクリックします。
  5. 言語を追加ウィンドウで、目的の言語の横の構成をクリックします。
    メモ:言語はユニバーサルボットでのみ有効になります。この言語が有効になっていて、リンクされているボットでも公開されていることを確認してください。
  6. 言語選択期限(下にスクロールすると表示されます)では、以下のいずれかのオプションを選択します。
    • ライフタイム: 自動検出された言語またはユーザーが選択した言語設定が、ユーザーの優先言語として設定されます。
    • セッションごと: すべてのセッションの開始時にユーザーの言語を検出し、それに応じて応答します。
      メモ:言語を強い確信のもと決定できない場合、ボットはユーザーに希望の言語を選択するよう要求します。デフォルトの言語は、言語設定の選択時ににおけるユーザーとのやり取りに使用されます。
  7. 保存をクリックします。

デフォルトダイアログのカスタマイズ

Kore.aiのNLPエンジンがユーザーインテントを認識できない場合、ユニバーサルボットはデフォルトダイアログでユーザーに応答します。ユーザーが希望する言語でこうしたボットの応答が行われるように、有効な言語ごとにデフォルトダイアログの言語固有のバージョンを作成する必要があります。それ以外の場合は、ユーザーの希望の言語に関わらず、デフォルトのボット言語で応答します。次の手順に従って、言語固有のデフォルトダイアログを開きます。

  1. 言語固有のデフォルトダイアログを変更したいユニバーサルボットを開きます。
  2. ボットウィンドウの右上で、現在のボット言語の名前をクリックし、有効な言語を選択します。選択に応じてボットの言語を切り替えます。

言語を切り替えたら、ボットのデフォルトダイアログにアクセスし、デフォルトダイアログのカスタマイズで説明しているように、必要な変更を行います。

Like standard bots, you can enable more than one language for universal bots, but the functionality is completely different.

When you enable a new language for a standard bot, you need to upload language packs consisting of the entire bot definitions. Whereas to enable a new language for a universal bot, you just need to set up the corresponding default dialog.

Universal bots do not obtain the enabled languages of the linked bots. You must enable default and additional languages for the universal bot. When user utterances are made in an enabled language, the universal bot routes it to only those linked bot tasks that have the same language enabled. For example, if German is enabled for the universal bot and a user utters in German, the NLP engine looks for all the linked bot tasks that support German and sends the utterance only to those tasks.

Note: If a user interacts with the universal bot in a non-enabled language, it sends a standard response in the default language requesting the user to interact in one of the supported languages. Also, if none of the linked tasks have a relevant response, the bot triggers the language-specific default dialog.

Before you Begin

This article assumes that you understand the fundamentals of multi-language bots in Kore.ai and therefore focuses on the aspects specific to the universal bots. For the fundamentals of multi-language bots in the Bots Builder, refer to Building Multi-Language Bots.

Enable Language

Follow these steps to enable an additional language for a universal bot:

  1. Open the universal bot for which you want to configure new language.
  2. Select the Build tab from the top menu.
  3. From the left menu select Configurations -> Languages.
  4. Click the Add Language button from the top right.
  5. On the Add Language window, click Configure next to the language you want to.
    Note: The language would be enabled only for the Universal Bot, ensure that this language is enabled and published in the linked bots as well.
  6. Under the Language Selection Time Frame (scroll down to view this option) select one of these options:
    • Lifetime: The auto-detected language or the language preference selected by the user will be set as the user’s preferred language.
    • Per Session: Detects the user’s language at the beginning of every session and responds accordingly.
      Note: If the language cannot be determined with high confidence, the bot requests the users to select their preferred language. The default language is used to communicate with the user during language preference selection.
  7. Click Save.

Customizing Default Dialog

If the Kore.ai NLP engine cannot recognize the user intent, the universal bot responds to the users with the default dialog. You must create language-specific versions of the default dialog for each enabled language so that such bot responses go in the users’ preferred language. Otherwise, the universal bot responds applies the default bot language regardless of the user’s preferred language.
Follow these steps to open the language-specific default dialog:

  1. Open the universal bot whose language-specific default dialog you want to change.
  2. On the top-right side of the bot window, click the name of the current bot language, and select any of the enabled languages. It switches the bot language as per your selection.

Once you switch the language, go to the Default Dialog of the bot and make the necessary changes as explained in the Customizing the Default Dialog article.