Multilingual Bots

To ensure your bot can effectively serve users speaking various languages, follow these steps to configure multilingual support:

Step 1. Add additional languages:

If you want your bot to communicate in languages other than the default language, navigate to the Languages section and add the desired languages to your bot.

Step 2. Use real-time machine translation

Develop multilingual bots effortlessly by leveraging machine translation services for real-time translation. With machine translation, there's no need for manual authoring for each language defined on the bot. Simply author the bot in the default language, and machine translation will seamlessly translate messages, buttons, user input, and intents ([[ChatUser]].Language) into the specified languages available in the SDL/Azure Account.

For information on how it works and how to activate it on your bot, see Building Multi-Language Bots Using Machine Translation.

Step 3. Enable language change detection

DRUID is equipped with the ability to detect language changes within conversations, ensuring seamless communication across languages. Language change detection occurs before triggering the "Intent not found" flow, covering scenarios where users input text in languages other than the default language of the bot. Note that.

Note:  The user can change the current language in conversation in either the idle state, or inside a flow. In the second situation, the current flow gets canceled. Language change detection does not include cases where users manually change the conversation language using the snippet's Language option

Prerequisite

From the Solutions Library, import the Language detection flow solution template or define a flow for handling the cases when language change is detected in the conversation. For more information, see Language changed flow.

To enable language detection in DRUID versions prior to 5.15, follow these steps:

  1. Click the Dialogue management section and select the Language Changed flow to be triggered when language change is detected in the conversation.
  2. Tap on Language detection. The Threshold field becomes editable.
  3. Set a value for the Threshold field (we recommend a threshold of 90). Once the threshold is reached, the selected "Language Changed Flow" will be triggered.
  4. Note:  Only the texts that are detected in another language with a probability greater than the threshold will be taken into consideration.

  5. Save the bot.
Important!   The Language Detected flow is triggered only if the following conditions are met simultaneously:
  • [[ChatUser]].DetectedLanguage is different from the [[ChatUser]].Language.
  • [[ChatUser]].DetectedLanguage.Score is higher than the threshold value specified in the NLP.Language.Detection.Threshold parameter.
  • The last language change detection for the same new language identified was more than 15 minutes ago. (E.g., the current language is German and bot detects English; the users doesn’t want to switch to English because they only used a universal word like “laptop” or “mouse”; therefore, next time the bot will identify a language change intent to English and current language is still German, it will not trigger the Language Changed special flow again).

Use the user says feature to test the Predicted language and Confidence score of the predicted language. This is particularly useful for debugging purposes to ensure accurate language detection and flow triggering.