search

How to create a multilingual bot

If your website gets visitors who speak different languages, it’s a good idea to use the Multilanguage feature – the language packs you add will translate your widget’s texts. You can read about that feature here.

However, to make your bot work in more than one language, it will need to detect the visitors’ browser settings and base its actions on that. A multilingual bot is another step in interacting with your customers all over the world!

Such a bot needs to have the ‘Language’ condition placed after its trigger, and before the rest of the content. The method can be used for every bot, as long as the condition is added and the paths connected properly. This article will show you how to configure it all step by step.

Adding the ‘Language’ condition

  1. Two languages
  2. Three languages and more

To allow your bot to detect the visitor’s specific language preferences, you need to add the ‘Language’ condition. It can be found in the Conditions menu on the right.

Multilingual condition bot

Once added, it’s time to adjust the ‘Language’ node and connect everything as needed. Below you can read about two different examples: when your bot just needs two language versions, and when it needs three or more.

A bot for two different languages

When you click on the ‘Language’ condition, you need to select a language that you want the bot to check for. In addition to that, select if you need the language to equal or not equal to a specific position in the available list. The bot can carry out two different actions depending on the visitor’s browser language, and you connect those actions by dragging the “yes” and “no” lines from the condition.

In the example below, the condition checks if the language is equal to Polish. It then connects with the ‘Send a chat message’ action through a “yes” connection – as a result, the bot will send the custom Polish message if the detected language is Polish. There is a second message set up, connected with the “no” line – this message will be sent if the visitor is using any other language as the default in their browser. In the majority of cases, this is English.

Multilingual bot for two languages

Naturally, your bot doesn’t have to be limited to just sending a single translated message; it can go much further and include many other nodes and connections, according to what you need. For the purposes of a multilingual bot, he only important thing is to use a properly set ‘Language’ condition and to create two different paths for two different scenarios (“yes” and “no”). This will ensure that both groups of visitors receive similar (or identical) paths, the only difference being the translation.

A bot for three languages (or more)

When you want to create a bot that supports more than two languages – you just need to add more ‘Language’ conditions, and connect them similarly as before. In the example below, each additional condition checks if the visitor’s language is equal to a specific position from the list.

The bot from the example can send a message in Polish, Dutch, or Spanish – if that’s the visitor’s browser setting. If none of the languages is detected – the default message will be sent (in English, in this case).

Multilingual Bot Image

If you need your bot to include more language versions, you can add more ‘Language’ conditions in place of the English ‘Send a chat message’ action from the screenshot above. This way, you can create a bot that will be able to carry out actions based on many more languages!

If you need anything else regarding the Multilingual bot – feel free to contact us!

Can't find what you're looking for?

CONTACT SUPPORT