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.
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.
To enable language detection in DRUID versions prior to 5.15, follow these steps:
- Click the Dialogue management section and select the Language Changed flow to be triggered when language change is detected in the conversation.
- Tap on Language detection. The Threshold field becomes editable.
- 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.
- Save the bot.
- [[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.