In this guide, you’ll learn how to activate and configure OmniChatās automatic translation feature to ensure seamless communication across different languages.
The automatic translation feature automatically translates user messages into agent language and agent messages into user language. To enable it check the optionĀ Settings > Artificial Intelligence >Google> Automatic translationĀ and complete the synchronization process. TheĀ multilingual via translationĀ feature also requires these steps.
- The Google account used for the Dialogflow synchronization must have billing and theĀ cloud-translationĀ service enabled, to do that follow the steps below:
- Log in toĀ https://console.cloud.google.comĀ with your Google account and select the project of your Dialogflow Agent.
- On the top search bar typeĀ cloud translation, select theĀ Cloud Translation APIĀ service and enable it. Please note that this is a paid service with a free tier, additional charges may occur.
- Enable the billing by clickingĀ Left menu > BillingĀ and by enabling a billing account with a valid payment method. Enable billing for the project of your Dialogflow agent.
Information
- The user messages in the admin area are translated automatically in real-time to match the agent language.
- The agent messages are translated automatically in real-time to match the user language.
- Agents can view the original message by opening the message menu and by clickingĀ View original message.
- The agent language is based on theĀ languageĀ user detail of the agent if set, otherwise on the browser language, or admin area language.
- The user language is based on theĀ languageĀ user detail, if set, otherwise on chat language, if set, otherwise on the browser language. The language can also be detected with theĀ language detectionĀ feature.
- The notifications are also translated.
- To avoid translating a string, enclose it with the charactersĀ `Ā orĀ “`.
Multilingual via translation
The feature atĀ Settings > Artificial Intelligence > Multilingual via translationĀ automatically translates user messages into the default language of Dialogflow or OpenAI, and translates Dialogflow or OpenAI messages into the language spoken by the user.
Additionally, this feature translates all text displayed within the chat, such as the chatbot’sĀ rich messages, registration forms, and pop-up notifications. To enhance performance and minimize translation costs, the translations are automatically integrated into the translation files. Combine this feature with theĀ language detectionĀ feature for optimal results.
- The original texts must be in English.
Language detection
Detect the language of the user’ messages and change the user language and Dialogflow agent language accordingly, if available, otherwise, show a fallback message. You can use the following merge fields in the message:Ā {language_name}.
- The user message must be at least 2 words long.
- Language detection is executed only for the first 2 user messages of a conversation.
- As long as the OpenAI chatbot is operational and programmed to respond to generic inquiries, the fallback message will never be dispatched, since OpenAI will consistently provide answers to any use message.