Chatbot Overview
Conversational Bots
Intents & Entities
Intelligent Bots
Kore.ai's Approach
Kore.ai Conversational Platform
Bot Concepts and Terminology
Natural Language Processing (NLP)
Bot Types
Bot Tasks
Starting with Kore.ai Platform
How to Access Bot Builder
Working with Kore.ai Bot Builder
Building your first Bot
Getting Started with Building Bots
Using the Dialog Builder Tool
Creating a Simple Bot
Release Notes
Latest Updates
Older Releases
Bot Builder
Creating a Bot
Design
Develop
Dialog Task
Working with User Intent Node
Working with the Dialog Node
Working with Entity Node
Supported Entity Types
Working with Composite Entities
Supported Time Zones
Supported Colors
Supported Company Names
Working with Message Nodes
Working with the Confirmation Nodes
Working with Service Node
Implementing Custom Authentication
Enabling 2-way SSL for Service nodes
Working with Script Node
Working with Agent Transfer Node
Working with WebHook Node
Defining Connections & Transitions
Managing Dialogs
Prompt Editor
Action & Information Task
Working with Action Tasks
Working with Information Tasks
Establishing Flows
Alert Tasks
Working with Alert Tasks
Managing Ignore Words and Field Memory
Knowledge Graph
Terminology
Building Knowledge Graph
Generation of Knowledge Graph
Importing and Exporting Knowledge Graph
Knowledge Graph Analysis
Knowledge Extraction
Natural Language
Overview
Machine Learning
ML Model
Fundamental Meaning
Knowledge Graph Training
Traits
Ranking and Resolver
NLP Detection
NLP Settings and Guidelines
Bot Intelligence
Overview
Context Management
Session and Context Variables
Context Object
Dialog Management
Sub-Intents
Amend Entity
Multi-Intent Detection
Sentiment Management
Tone Analysis
Sentiment Management
Default Conversations
Default Standard Responses
Channel Enablement
Test & Debug
Talking to Bot
Utterance Testing
Batch Testing
Recording Conversations
Publishing your Bot
Analyzing your Bot
Overview
Dashboard
Custom Dashboard
Conversation Flows
Bot Metrics
Advanced Topics
Bot Authorization
Language Management
Collaborative Development
IVR Integration
Universal Bots
Defining
Creating
Customizing
Enabling Languages
Smart Bots
Defining
Sample Bots
Github
Asana
Travel Planning
Flight Search
Event Based Bot Actions
Bot Settings
Bot Functions
General Settings
PII Settings
Customizing Error Messages
Bot Management
Using Bot Variables
API Guide
API Overview
API List
API Collection
SDKs
SDK Overview
SDK Security
SDK App Registration
Kore.ai Web SDK Tutorial
Message Formatting and Templates
Mobile SDK Push Notification
Web Socket Connect & RTM
Using the BotKit SDK
Installing the BotKit SDK
BotKit SDK Configuration
Events for the BotKit SDK
Functions for the BotKit SDK
BotKit SDK Tutorial – Agent Transfer
BotKit SDK Tutorial – Flight Search Sample Bot
Using an External NLP Engine
Bot Administration
Bots Admin Console
User Management
Managing Users
Managing Groups
Managing Role
Bots Management
Enrollment
Inviting Users
Sending Bulk Invites to Enroll Users
Importing Users and User Data
Synchronizing Users from Active Directory
Security & Compliance
Overview
Using Single Sign-On
Cloud Connector
Analytics
Billing
Bot Store
Overview
Creating a Kore.ai Bot Account
Adding a Kore.ai Bot
Choosing a Channel for a Bot
Interacting with a Kore.ai Bot
Setting Up Web Service Alerts
Setting Up RSS Alerts
Setting Up the Kore.ai Webhook Bot
Custom Kore.ai Bots
Bots for your Customers FAQs
Bots for your Workforce FAQs
Adding Bots
Contacting Kore.ai Support
Setting Up Filters
Bot Store Settings
How Tos
Context Switching
Using Traits
Live Agent Transfer
Schedule a Smart Alert
Configure Agent Transfer
Custom Dashboard
  1. Home
  2. Docs
  3. Bots
  4. Advanced Topics
  5. Language Management
  6. Multi-Lingual Bots

Multi-Lingual Bots

Consumers are more likely to engage with your bot if it can communicate in their preferred language. Kore.ai Bots Platform supports enabling multiple languages for a bot without having to rebuild the bot definitions.

You can build the bot in your preferred language and then enable one or more supported languages. As part of enabling the language, the platform automatically translates all Standard Responses and you can then translate various other bot elements in the new language.

Supported Languages

Bots Platform currently supports the following languages:

  • Arabic
  • Bahasa
  • Brazilian
  • Chinese Simplified
  • Chinese Traditional
  • Dutch
  • English
  • French
  • German
  • Italian
  • Japanese
  • Korean
  • Portuguese
  • Spanish
  • Finnish (post v6.4 release)
  • Russian (post v7.0 release)
  • Polish (post v7.0 release)
  • Ukranian (post v7.0 release)
  • Swedish (post v7.1 release)

Default Language

You can choose a default language for the bot while creating it (see image below). Bot communicates with the user in the default language until the user’s language is identified. If the bot supports the user’s language, it switches to that language for the current or all of the following user sessions, depending on Bot’s Language settings.

Enabling Languages

Enabling a supported language to a bot involves the following steps:

Step 1: Enable a new language

Follow these steps to enable a new language for the bot:

  1. Open the bot for which you want to enable other languages.
  2. Hover over the side navigation panel select Settings > Config Settings and click Language Management.
  3. From the list of Supported Languages, next to the language you want to enable, click Enable.
  4. Clicking Enable opens the Enable Language – <Language Name> dialog where you have two options to enable the selected language for the bot – duplicate an existing language pack or creating a new language pack, as explained in Step 2 below.

Step 2: Create a language-specific version of the bot

You can enable a new language for the bot in the following two ways:

Option 1: Duplicate the default language

If you want to enable the new language for the bot quickly and translate the bot elements incrementally, you can begin by copying the configuration of the default language for the new language. It replicates the bot definition for the enabled language but continues to have all the bot elements in the default language, which you can translate from the application UI.

Follow these steps to create a new bot version by copying over the default language configurations:

  1. On the Enable Language – <Language name> window, select Copy default language.
  2. On the top-right corner of the window, click Enable. After a successful import, a prompt appears notifying that the new language bot is enabled.
  3. After completing the previous steps, the bot definition gets created for the newly enabled language but the bot elements remain in the default language. You need to translate the bot elements from the UI.
  4. Refer to the Translatable Bot Components section to view the complete list of bot elements for which you can add translations.
Option 2: Create a new language pack

You can create a translated version of the bot elements directly, perhaps with help from a language expert, by creating a JSON language pack for the enabled language.

You can download a JSON language pack of any of the already-enabled languages from the bot and then add translations in the JSON file.

Follow these steps to create a JSON language pack for the new enabled language:

  1. On the Enable Language – <Language name> window, select Use <language-name> language configuration file option
  2. From the Base Language Pack drop-down, select a language to download its language pack.
  3. Click Download JSON.
  4. The downloaded JSON file consists of various bot elements for which you should provide the translations. Refer to the Translatable Bot Components section to learn more about these bot elements.
  5. To enter a translation for a bot element in the JSON file, replace the corresponding text with the translated text.
  6. After customizing the downloaded JSON file for the new language, in the Enabling language pack field, click Choose File and upload the new language pack.
  7. On the top-right corner of the window, click Enable. Upon successful import, the Import Successful window appears with the import results.
  8. Click OK. Success prompt appears on the top-right corner of your screen.
Notes:
  • After you enable a new language, the status of all the published tasks that are modified to Configured. To make the new language work in the bot, you must re-publish the bot. Until then, the bot continues to function with the previously published languages.
  • Support for Synonyms is restricted to English, French, Spanish and German languages. The respective sections in Natural Language and Entity Node will be in a disabled state for other languages.
Verification

When the bot supports multiple languages, the top right corner of the bot window shows the default bot language followed by a drop-down to view the other supported languages. Check if the enabled language appears in the list.

Step 3: Add or edit translations

After enabling a new language for the bot, you might need to add or edit translations on an ongoing basis. You can make these edits from the application UI, which is particularly helpful if you have created the bot version by copying over the default bot configurations. Editing from the UI also helps when you want to make minor edits.
Note: If you need to make significant changes to the language pack, we recommend you to make the changes in the offline copy of the language pack and then upload it to the bot. Refer to Editing and Re-uploading a language pack to learn how to do it.

To add or edit translations to a bot element from the UI, follow these steps:

  1. On the top right corner of the bot window, click the current bot language.
  2. From the drop-down list, select the bot language in which you want to make the changes.
  3. Enter the language-specific text for the selected bot elements, just as you did for the default language.
    For example, if you want to add a bot synonym in the new language, follow these steps:

    1. Hover over the bot’s side-navigation panel and click Natural Language > Synonyms.
    2. From the list of keywords and synonyms, click the keyword for which you want to add the synonym.
    3. In the synonyms box, type the synonym (in the enabled language) and press enter.
Note: Refer to the Translatable Bot Components article for the complete list of bot elements to which you can add or edit translations.
Editing and Re-uploading a language pack

If you need to make major changes to the language pack, the recommended practice is to make the changes in the offline copy of the language pack and re-upload it to the bot.

Note: Proceed with a full replacement of the language pack only if you are externally managing the language pack. The newly updated doesn’t just update the existing language pack but replaces it. If you are looking to make small changes that don’t warrant a full replacement, make them directly from the application UI.

To re-upload a language pack to a bot, follow these steps:

  1. On the top right corner of the bot window, click the current bot language.
  2. From the drop-down list, select the bot language in which you want to make the changes.
  3. Hover over the side navigation panel and click Settings > Config Settings -> Language Management. The Language Management window opens displaying a Manage button next to the enabled languages.
  4. Click Manage and in the Manage Language window click Choose File and upload the updated language pack.

Language Detection and Selection

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

Language Detection

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

  • By Default: Kore.ai Bots platform uses its own language detection algorithm to detect language from the user utterance. This is the default setting and the end user’s language will be detected by the platform.
  • For on-prem installation, you can go with the above-mentioned default setting of Kore.ai’s in-house language detection algorithm or use Google APIs for language detections. You can set it in the Kore Config file.
  • 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>

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 > Config Settings -> Language Management.
    • 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.
    • Per Session: Detects the user’s language at the beginning of every session and responds accordingly. Under Language Selection Logic (scroll down for the option), for language selection time frame, set to one of the following:
  2. For testing and debugging purposes, you can override the language selection settings by using the cheat command during a chat session:
    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

Translatable Components

This section lists the bot elements for which you can provide translations, along with their JSON properties. You can also translate these elements from the application UI. Refer to the help links added across the article to get an overview of the relevant topic areas.

Note: You need not translate Standard Responses as the platform automatically translates them when you enable a language.

Bot Metadata

JSON object consisting of the following translatable elements

Field Name Type Description
Bot Name String Name of the bot
Bot Description String Description of the bot
Bot Synonyms Object Arrays of important words in the task names and their corresponding synonyms. Enter translation of the words as well as their synonyms. Refer to Managing Synonyms to learn more about bot synonyms.
Bot Error Codes Object Arrays of error codes and their corresponding messages. Enter translations of the error message. Refer to Customizing Error Messages to learn more about error messages.

Dialog Tasks

JSON object consisting of the following translatable components of your bot’s Dialog Tasks.

Field Name Type Description
Dialog Task Name String Name of the dialog task
Dialog Task Desc String Description of the dialog task
Dialog Task Upgrade Message String Message displayed to the developer on the History page for the upgraded task

Dialog Components

JSON object consisting of the following translatable components related to the NLP settings of a dialog task.

Field Name Type Description
Dialog Component Intent String Name of the User Intent node
Dialog Component Description String Description of the User Intent node
Dialog Component Synonyms Object Synonyms for the words in the entity node names. Refer to Managing Synonyms to learn more.
Dialog Component Patterns Object Patterns for the User Intent and Entity nodes in the dialog task. Refer to Managing Patterns to learn more.

Message Templates

JSON object with arrays of Message Template IDs and Message Template Text values. They correspond to the User Responses field in the Message node and the Bot Prompts and Error Prompts fields in the Entity node of the dialog tasks.

Field Name Type Description
Message Template Text String The text entered in User Responses, Bot Prompts, or Error Prompts fields in any Message or Entity node of a dialog task.

Action Task

JSON object consisting of the following translatable components of your bot’s Action Tasks.

Field Name Type Description
Action Name String Name of the action task
Action Short Desc String Description of the action task
Action Keywords Array The search keywords entered for the action task
Action Patterns Array Arrays of patterns related to the action task’s name. Replace the pattern text with the translated text. Refer to Managing Patterns to learn more.
Action Field Synonyms Object Arrays of synonyms for each task field. Replace the field name and the synonyms with the translated text. Refer to Managing Synonyms to learn more.
Action Field Patterns Object Array consisting of patterns for each task field. Replace the pattern text with the translated text. Refer to Managing Patterns to learn more.
Action Ignore Words Array Array of ignore words related to the action task. Replace the words with the translated text. Refer to Managing Ignore Words and Field Memory to learn more.
Action Upgrade Short Message String Upgrade Short Message related to the action task.
Action Upgrade Long Message String Upgrade Long Message related to the action task.
Action Query Fields Object Key-value pairs of Action Field Help and Action Field Title. Replace the text with the translated text.
Action Payload Fields Object Key-value pairs of Alert Payload fields. Replace the text with the translated text.

Alert Task

JSON object consisting of the following translatable components of your bot’s Alert Tasks.

Field Name Type Description
Alert Name String Name of the alert task
Alert Short Desc String Description of the alert task
Alert Keywords Array The search keywords entered for the alert task
Alert Patterns Array Array of patterns related to the alert task’s name. Replace the pattern text with the translated text. Refer to Managing Patterns to learn more.
Alert Field Synonyms Object Arrays consisting of synonyms for each task field. Replace the field name and the synonyms with the translated text. Refer to Managing Synonyms to learn more.
Alert Field Patterns Object Arrays consisting of patterns for each task field. Replace the pattern text with the translated text. Refer to Managing Patterns to learn more.
Alert Ignore Words Array Arrays of ignore words related to the alert task. Replace the words with the translated text. Refer to Managing Ignore Words and Field Memory to learn more.
Alert Upgrade Short Message String Upgrade short message related to the alert task.
Alert Upgrade Long Message String Upgrade long message related to the alert task.
Alert Query Fields Object Arrays consisting of key-value pairs of Alert Field Help and Alert Field Title. Replace the text with the translated text.
Alert Payload Fields Object Arrays consisting of key-value pairs of Alert Payload fields. Replace the text with the translated text.

Action Fields

JSON object consisting of the following translatable components in the API Request tab of the Action task.

Field Name Type Description
Action Field Title String The title of the user input field related to the action task, for example, Choose account
Action Field Help String The help text displayed below the field title to describe the task, for example, Which account would you like to get the balance for?
Action Field Placeholder Array The placeholder text displayed inside the field

Alert Fields

JSON object consisting of the following translatable components in the API Request tab of the Alert task.

Field Name Type Description
Alert Field Title String The title of the user input field related to the alert task, for example, Choose city
Alert Field Help String The help text displayed below the field title to describe the task, for example, Which city would you like to get weather alerts for?
Alert Field Placeholder String The placeholder text displayed inside the field.

Bot Filters

JSON object consisting of the following translatable components related to Bot filters

Field Name Type Description
Filter Name String Name of the task filter

IDP Config Form Fields

JSON object consisting of the following translatable components related to IDP configuration form

Field Name Type Description
IDP Form Field String Name of the IDP Form Field displayed to the end-user in the authentication dialog
Menu