About the Chat trigger
在多个差异提供主动的聊天信息rent languages,duplicatethe trigger for each language you want to offer. For each proactive message you want to send, you will have a set of triggers, one for each language.
How to create the trigger in Chat
Zendesk comes with thedefault languages triggeras an example of how to send a specific message, in French, to French audiences. Eitherduplicate that trigger to use as a template orbuild your own triggersfrom scratch.
The example triggers below useLocation of visitorconditions to differentiate visitors. See more options in theZendesk Chat triggers conditions and actions reference. Learn how Zendesk identifies the country or city your visitor is browsing from in this article:How does Zendesk capture the location of the end-user?
An example set of triggers
This example set of chat triggers is designed to send the messageBonjour. Est-ce que je peux vous aider?
to visitors browsing from France,¿Hola, cómo puedo ayudarte?
to visitors browsing from Spain, and "Hello, How can I help?" to visitors browsing from any other location.
Notice how the English version of the messages is a "catch-all" for any location not directly targeted with a special translation. This is a great strategy if you only offer support in a limited number of languages, but want all visitors browsing your website to see some version of this message.
SendBonjour. Est-ce que je peux vous aider?
to visitors from France
- Run trigger: When a visitor has loaded the chat widget
- Check conditions: Check all of the following conditions
- Visitor country code | Equals |FR
- Visitor requesting chat | Is false
- Visitor served | Is false
- Still on site | 60
- Perform the following actions
- Send message to visitor |
Service client |Bonjour. Est-ce que je peux vous aider?
- Send message to visitor |
Send¿Hola, cómo puedo ayudarte?" to visitors from Spain
- Run trigger: When a visitor has loaded the chat widget
- Check conditions: Check all of the following conditions
- Visitor country code | Equals |SP
- Visitor requesting chat | Is false
- Visitor served | Is false
- Still on site | 60
- Perform the following actions
- Send message to visitor |Servicio al Cliente|
¿Hola, cómo puedo ayudarte?
- Send message to visitor |Servicio al Cliente|
Send "Hello, how can I help?" to visitors from everywhere else
-
- Run trigger: When a visitor has loaded the chat widget
- Check conditions: Check all of the following conditions
- Visitor country code | Not equal |FR
- Visitor country code | Not equal |SP
- Visitor requesting chat | Is false
- Visitor served | Is false
- Still on site | 60
- Perform the following actions
- Send message to visitor |Customer Service | Hello, how can I help?
2 Comments
Hi, why would we set the language based on location? Can't we use the Locale?
What language would you use for a user located in Canada or Switzerland?
Our clients can choose their language independently than their location, seems like a very basic need for triggers!
Chat trigger does not have the Visitor locale available as a condition hence this recipe uses Visitor country code. TheZendesk Chat triggers conditions and actions referencealso has the other lists of the Location of visitors and Visitor information available for the trigger.
I can see the importance of having the Visitor locale as an available chat trigger condition based on your use case. I encourage you to create a new post in theChat & Messaging Product Feedback topicin our community to engage with other users who have similar needs and discuss possible workarounds.
Pleasesign into leave a comment.