1. Home
  2. Kore.ai Conversational Platform
  3. Advanced Topics
  4. Multi-Lingual Bots
  5. Language Detection and Selection

Language Detection and Selection

Multilingual bots auto-detect and switch language based on user’s utterance.

Language Detection

Following are the ways a bot can detect the language based upon the user utterance:

  • Kore.ai Bots platform uses Google APIs to detect language from the user utterance. This is the default setting.
  • If you are using BotKit SDK, you may also send the following cheat command from your BotKit to the platform:
    cheat language <language name or code>

    Replace the language name or code with one of these values:

    • English: English or EN
    • German: German or DE
    • French: French or FR
    • Spanish: Spanish or ES

Depending on the language selection configuration (see below), the bot continues to communicate with the user in the same language just for that single session or all the following sessions. In any case, if the user switches to another enabled language anytime later, the bot changes to the new language automatically.

If the bot fails to detect a user’s language with high confidence, it requests the user to select a preferred language from the list of enabled options.

Configuring the Language Selection Logic for Bot Users

  1. On the Bot menu, click Settings > Language Management.
  2. Under Language Selection Time Frame, select one of the following:
    1. Lifetime: The auto-detected language will be set as the user’s preferred language and used for all subsequent communications until the user interacts in another enabled language anytime later. If the user starts to talk in another enabled language, the bot changes to that language.
    2. Per Session: Detects the user’s language at the beginning of every session and responds accordingly.

    For testing and debugging purposes, you can override the language selection settings by using the cheat command during a chat session:

    cheat language <language name or code>

    Replace the language name or code with one of these values:

    • English: English or EN
    • German: German or DE
    • French: French or FR
    • Spanish: Spanish or ES
Was this article helpful to you? Yes No