You can create an assistant from scratch, enable a language for an existing assistant or update the language configuration for an existing assistant. Besides these functionalities, this article also shows you how to switch between languages and how to enable or disable a language.
Selecting a Language when Creating an Assistant from Scratch
To create an Assistant from scratch, follow the below steps:
- Log in to your Kore.ai XO Platform account.
- On the Virtual Assistant landing page, click New Bot on the top-right and select the Start from Scratch option.
- On the Create New Bot window, enter the Assistant details:
- If the selected language is from one of the 26 languages supported as NLU languages (read more here) then by default, the VA language will be the same as the NLU language. You can always change the NLU language to any language by clicking on the Advanced Options link to search and select the NLU language from the list of supported languages.
- Once you select an NLU language, which is different from the default Bot Language, you can enable the following translation modules:
- User Input Translation – This approach uses language translation services to translate the user input into a base language. The conversation is executed in the base language and the responses are auto-translated back to the user’s language using translation services. (Supported from v9.1)
- Runtime Response Translation – The Kore.ai XO Platform can automatically translate all the prebuilt responses as well as plain text messages to the user’s language. For this, you will need to provide your API keys for either Google Cloud Translation or Microsoft Translator service in the Translation Configurations section. You can also translate the content of the templated messages inside the JavaScript using the
koreUtil.AutoTranslate()
function by passing a string or a context variable. For example,koreUtil.AutoTranslate(context.variable1)
Note: If you select Multilingual as the NLU language option, by default the Assistant will be able to understand the user input in 100 plus languages supported by the Kore.ai XO Platform. The Multilingual NLU model is a language-agnostic model, it understands user input in 100 plus languages without the need for translation. However, you could enable Response Translation if the responses are configured in a language other than the assistant language.
- Click Create when done.
Adding a language to an existing Virtual Assistant
Even if your assistant has already been created, you can still add new languages to it. Follow these steps to add a new language for your virtual assistant:
- Go to Build > Configurations > Languages.
- On the Language Management page, in the Standard Languages section, click the + Add Language to add languages.
- The Platform will display all the 100 plus languages that are supported. You can click on the Configure button to enable a language.
Note: You can also search for a language by entering its name in the Search field. - Once you click configure, you can setup the following language configurations:
- Choose the NLU Language – Allows you to select any supported language as the NLU model to train your assistant.
- Select the Language Definition Mode -You can choose any of the following options to copy the language definitions:
- Basic Mode – Lets you only copy dialog prompts and messages.
Note: A base language is a language that is already enabled in the assistant. You need to choose a Base Language for your assistant from which you want to copy your assistant’s data for both Basic and Advanced modes. - Advanced Mode – Lets you copy dialog prompts, messages, knowledge graph, small talks, traits, and training data as per your need.
- Use Language Pack – Lets you upload the language definitions after adding manually translating a JSON file. You can download a JSON language pack of any of the already-enabled languages and then edit the dialog prompts and messages in the JSON file. Upload the updated JSON file to enable the new language for the assistant.
- Basic Mode – Lets you only copy dialog prompts and messages.
- Manage Translations – In case the Translation Engine is not configured, click the Configure link to set up the translation engine for your assistant. To learn how to enable Input Translation or Runtime Response Translation, refer to this article.
- Once you have configured translations, click Enable to add/enable a new language for the assistant.
Updating a language for an existing Virtual Assistant
If you want to enable/disable input translation, change the NLU language of the already enabled language for an assistant or modify the dialog prompts then you can use the update feature.Â
To update an already enabled language for an assistant, follow the below steps:
- Go to Build > Configurations > Languages.
- The platform will display all the languages under the Language Management section.
- Click on the language that is already enabled in the VA. The Manage Language dialog appears, here you can:
- Update the NLU language – Updating the NLU language will need training for the virtual assistant again.
- Update the dialog prompts – You can update the language pack file and upload it to update the dialog prompts.
- Update Manage Translations – You can enable/disable input translation or runtime response translation based on your needs.
- Click the Update button once all the necessary changes are made.
Notes:
|
Switching LanguagesÂ
If you have configured multiple languages for a virtual assistant, you can switch the language to configure the virtual assistant from the top right corner (language dropdown) from within any area of your VA. The dropdown will display all the other supported languages with the corresponding NLU model that is configured for the language.Â
Note: The language dropdown will display the Bot Language and NLU language for the languages where the Bot Language is not equal to NLU language. If the Bot Language and the NLU language are the same then the language drop down will display only the Bot Language. |
Disabling/Enabling Languages
Languages can be enabled or disabled by going to Build > Configurations > Languages < Standard Languages. Use the toggle to enable/disable a language.
Once you have configured and enabled a language you can:
- Disable or deactivate a language that is previously enabled for the VA. The actual language-specific data that has been added while enabling the language will continue to exist in the VA even after disabling the language. Disabling would prevent the users from talking to the assistant in that language (can be viewed in the VA export copy)
- If a language is disabled you can enable it again, since the data is preserved, you need not enter all the details.
Note: Any change in language settings needs to be published before it can take effect in the published assistant. |