Language Detection Flow in SF Chat
This document describes the different ways the Language I/O app determines the language of an end-user, and goes through the priority order of each.
To see how to configure language detection, see Determining the language of a customer in SF Chat. There are two main flows for language detection, depending on whether or not you enable the "Attempt Locale Detection" setting.
When "Attempt Locale Detection" is enabled
When "Attempt Locale Detection" is enabled, the flow goes like this, in order of priority: Subject Field (Pre-Chat form text) > Description Field (Pre-Chat form text) > Language Field (Related Field).
To configure Subject Field, Description Field and Language Field, see the custom settings.
- Using the Pre-Chat form:
- If the end-user fills out the field from the pre-chat form, the Language I/O app sets this as the language for the chat. If the Language Field was pre-populated with a value, the detected language from the pre-chat form overwrites this value.
- If the end-user does not fill out the field from the pre-chat form, the Language I/O app uses the Language Field as the customer’s language.
- Using the Language Field:
- If there is a value in the Language field but the end-user's first message is in a different language, then the Language I/O app translates the message, then prompts the agent to confirm if they want to update the Language Field.
- If there is no content in the Subject or Description, and there is no value in the Language Field, then the Language I/O app detects the language based on the first message that the end-user sends. The Language I/O app then populates the Language Field value automatically with the detected language.
- If you only rely on Attempt Locale Detection but do not have any other end-user language detection feature enabled, then the Language I/O app detects the language based on the first message the end-user sends to the agent.
When "Attempt Locale Detection" is disabled
When "Attempt Locale Detection" is disabled, the flow goes like this, in order of priority: Custom Detail Locale (Pre-Chat Picklist) > Language Field (Related Field) > Chat Button > Browser Language.
- The Pre-Chat Picklist is a list of languages: the end-user picks their language and this sets the language for the chat.
- Language Field, then Chat Button
- If there is a value in the Language field, then this takes precedence over the Chat Button language. In other words, it ignores the Chat Button.
- If there is no value in the Language Field, then the Chat Button language serves as the end-user's language and the Language Field is populated with this value.
- Language Field, then Browser Locale - if Language Field is configured in the custom settings.
- If there is a value in the Language Field, then it takes precedence over the Browser Locale.
- If there is no value in the Language Field, then the Browser Locale a serves as the end-user’s language and the Language Field is populated with this value.
Comments
0 comments
Please sign in to leave a comment.