Ultimate Guide For Creating Multilingual Chatbots

Post by
Indrek Vainu
    Published: 
September 3, 2021
Ultimate Guide For Creating Multilingual Chatbots

1. What Is A Multilingual Chatbot?

A multilingual smart chatbot (also known as Conversational AI or Intelligent Virtual Assistant) is an artificial intelligence based machine that understands what users ask. Essentially it is a machine that presents information to the user in the language of the user. 

So if you are using a chatbot in a multilingual mode it means that the answers of the chatbot are in the language of the user. Meaning that if the user speaks English then the answers and buttons of the chatbot are in English. If the user speaks Spanish then the answers of the chatbot are in Spanish as are the buttons. 

The language of the chatbot can be determined either manually or automatically. The manual choice is simply giving the user the option to choose the language before interacting with a chatbot. 

The automatic option is to present the chatbot in the language of the website that the user is browsing. For example, if the user is on a website and has chosen the language of the website in Spanish then the chatbot will give answers in Spanish. If the user is on the website and the selected language is German then the chat bot gives answers in German.

In the case of these smart AI chatbots that are capable of understanding natural language, the language detection can be built in. What this means is that if a user comes to the bot and starts chatting in English then the bot will answer in English. However if the user comes and starts asking questions in German then the bot will answer questions in German. You can try a multilingual chatbot here.


multilingual chatbot from alphachat.ai


2. Where Are Multilingual Chatbots Used?

Such multilingual chatbots are used in customer service. The reason is that a chatbot in different languages suits well for companies that have to provide support in multiple languages. 

In cases where you have to support several languages and lack native speakers of the language, a chatbot that is capable of providing support in various languages automatically, is highly appreciated. 

3. Benefits Of Multilingual Chatbots.

The first main benefit is that you need less multilingual support staff. People who speak several languages fluently are usually difficult to find. As such utilizing a multilingual chatbot means that you no longer have to search for extra multilingual staff.

The second benefit is that your users like to be served in their native language. Most people prefer to speak to customer support in their own language because they can better express themselves in that language. 

So when you offer support in their native language, your customers will most definitely appreciate it and be happier with your company and the products and services you provide.

 

4. Three Options On How To Create A Multilingual Chatbot. 

For creating multilingual chatbots you have essentially three options. We will break these down in more detail in the chapter below but here is a summary outlining what each of the options are and their pros and cons.

 

4.1 Option #1 - Train one bot to know multiple languages

 

  • How it works - you have one bot. You add topics in many languages to that one bot and train the one bot in languages that you want.
  • When to use this option - if you have up to 15-20 topics per language and 1-3 languages then you can try this. Quick way to set up the bot but not a long term option if you want to have a thorough and good quality bot.
  • Pros - keep all content in one bot. Takes less time than creating a new bot for each language. Data is not forwarded to any translation companies and stays within the bot provider.
  • Cons - if you have more topics then the bot can get confused because of similarity of topic overlap across languages. 

 

4.2 Option #2 - Make a separate bot for each language

 

  • How it works - you have one bot for English, a separate bot for Spanish and so on. You can copy content from one bot to another but you translate the answers for each bot and insert new training data in the language that you want the bot to be.
  • When to use this option - when you have a bot with 20+ topics and you want to create a long-term quality solution. 
  • Pros - you get a good quality bot where it knows one language and is specifically trained to know that language. No overlap between multiple languages and the customer gets the answer in the language that they ask. Bot provides an answer in the language the way that you wrote it.
  • Cons - takes time if you want to set up many languages because you have to translate the content for each language and maintain the content.

 

4.3 Option #3 - Use machine translation to create a bot in one language and have it be capable of chatting in any language. 

 

  • How it works - you have one bot in one language (so-called “base language”). When a customer asks a question a translation API is used to auto-translate input phrases and output answers so customers see that they are speaking with a native language bot.
  • When to use this option - if you want to have multiple languages quickly in the bot and little chance that languages get mixed up.
  • Pros - use one language and have automatically dozens of languages available through the bot.
  • Cons - the data that flows through the bot (customers’ questions, bot answers) will go through the 3rd party auto translation provider (e.g. Amazon, Google). You do not have control over how the answers are translated in other languages.

 

5. Step-by-step Guide On How To Create Your Own Multilingual Chatbot

 

5.1 Option #1 - One bot that knows multiple languages.

 

With AlphaChat you can use this when your bot has few intents (i.e. topics that the bot knows). There is no exact number as to what is few but in general if you have less than 15-20 actions then you should be fine in having multiple languages in one bot.

 

What you need to do is create a topic for the bot in one language (e.g. English).

 

1. Add a topic.

 

multilingual chatbot

 

2. Give the topic a name.

 

multilingual chatbot

 

3. Add an answer to the topic.

 

multilingual chatbot

 

 

 

 

multilingual chatbot

 

4. Add phrases and utterances to the topic. 10-15 phrases will do.

 

multilingual chatbot

 

5. Train the topic.

 

 

multilingual chatbot

 

 

 

6. Test the topic with some of the phrases that you just used for training.

 

multilingual chatbot

 

For more information we have added a video below where you can get an overview of how to add text, images and links to the bot content.

 

And here is a video explaining how to add training phrases to the chatbot.

 

Now when you want to add the same topic in another language (e.g. German), then make a new topic and go through the same steps as above but only add the topic in German. We suggest to create a folder for each language and to put all topics in that language under that folder. This makes handling your bot content much easier as you add more languages. 

1. Create a new folder for German language and add a topic in German.

 

multilingual chatbot

 

 

multilingual chatbot

 

2. Enter the answer in German for the topic.

 

multilingual chatbot

 

3. Train the German topic with German phrases.

 

multilingual chatbot

 

 

multilingual chatbot

 

4. Test the bot in German.

 

multilingual chatbot

 

Now you have a bot that can answer questions both in English and in German.

 

 

5.2 Option #2 - Make a separate bot for each language.

 

It makes sense to make a separate bot for each language once you have more than 20 topics. The reason being that if you see that over time (in the next few months to a year) your bot will have 50+ topics then making a separate bot for each language makes sense.

 

The sheer number of topics will make managing the content a bit cumbersome. In addition there might be overlap between topics between several languages if you have many topics. 

 

For example if you offer a credit card titled Mastercard Gold for your customers, then that name can be the same in English, Spanish and German. So when you only have one bot and customers ask a question in Spanish then the bot can answer in German. This of course is not good for you and your customers.

 

When you have few topics and little overlap in terminology about your company and products, then having all the different languages in one bot can work. However, when your bot grows then it can start providing wrong answers.

 

If you wish to create a separate bot for each language then the steps to follow are the same as in the example above. The only exception being that you create the topics in one language only (e.g. only in English and not in any other language).

 

For single language bots we suggest creating a folder for major topics (e.g. credit cards, withdrawals, loans etc if we continue our banking example). You will have a variety of topics under those larger umbrella topics and it is easy to keep your content organized.

 

5.3 Option #3 - Multiple languages in one bot with machine translation.

 

If you have more than 15-20 topics per bot but you still do not want to go through the hassle of creating a bot for each language separately then you can use machine translation with AlphaChat.

 

How that works is that you create a bot for one language, let’s say English. Now when a customer comes and asks a question in Spanish then the Spanish phrase is translated into English. The English phrase is fed into the bot AI engine where the AI determines the topic and provides an answer in English. The English answer is translated into Spanish and the Spanish answer is shown to the customer.

 

All this is done in less than a second and all the customer sees is a question she asked in Spanish and the answer the bot gave in Spanish. The number of languages available depends on the translation API that is connected with the bot but using either Google or Amazon there are 50+ languages available.

 

Here is what you need to do if you want to have one bot that knows all languages through auto translate.

 

What you need to do is create a topic for the bot in one language (e.g. English).

 

1. Add a topic.

 

multilingual chatbot

 

2. Give the topic a name.

 

multilingual chatbot

 

3. Add an answer to the topic.

 

multilingual chatbot

 

 

 

 

multilingual chatbot

 

4. Add phrases and utterances to the topic. 10-15 phrases will do.

 

multilingual chatbot

 

5. Train the topic.

 

 

multilingual chatbot

 

6. Enable the machine translate feature and select which translation API provider you wish to use (Google Translate or Amazon Polly).

 

machine translation

 

7. Test with English and with German phrases. The bot answers both though it is only trained in English.

 

multilingual ai

 

 

multilingual conversational ai

 

6. Summary


Multilingual chatbots are interfaces through which users can chat and get answers to their questions in several languages automatically. 


You have options for building multiple languages into one bot if your bot has few topics. You can also create a bot for each language separately or you can use machine translation for making a bot in one language and have it available in all languages.


With AlphaChat you can create your own multilingual bots in all three options. Feel free to play around with the product and if you have any questions, feel free to reach out.