To send email surveys in multiple languages, you need to set up a trigger for each language.
For example: you want to send surveys in English and Spanish when a Ticket's Status is marked as solved
.
Key step: You need to set up language
as a condition.
Here are examples of how to set up triggers that will fire email surveys in English and Spanish.
Email Survey Trigger:
In the payload, you would need to specify the values for the survey in English:
{
"emails" : ["{{ticket.requester.email}}"],
"subject" : "Help us improve!",
"intro" : "In our company we're always looking ways to improve. Help us by answering this survey.",
"survey_settings" : {
"language" : "EN",
"product_name" : "Wootric",
"audience_text" : "a close friend",
"custom_messages" : {
"promoter_followup_text" : "Thanks for your feedback.",
"promoter_thank_you_link_text" : "¡Visit our webstie!",
"promoter_thank_you_link_url" : "https://wootric.com",
"promoter_thank_you_main" : "Thanks for your feedback!",
"promoter_prompt_text" : "What did you like the most?",
"passive_followup_text" : "Thanks for your feedback. How can we improve?",
"passive_thank_you_link_text" : "Visit our website!",
"passive_thank_you_link_url" : "https://wootric.com",
"passive_thank_you_main" : "We appreciate your feedback!",
"passive_prompt_text" : "Help us improve!",
"detractor_followup_text" : "How can we improve your experience?",
"detractor_thank_you_link_text" : "Visit our website!",
"detractor_thank_you_link_url" : "https://wootric.com",
"detractor_thank_you_main" : "Thanks for your feedback. We'll make sure to address your feeback.",
"detractor_prompt_text" : "Your opinion is very important to us!"
}
}
}
And in Spanish:
{
"emails" : ["{{ticket.requester.email}}"],
"subject" : "¡Ayúdenos a mejorar!",
"intro" : "En nuestra empresa siempre estamos buscando maneras para mejorar. Ayúdenos contestando esta encuesta.",
"survey_settings" : {
"language" : "ES",
"product_name" : "Wootric",
"audience_text" : "un amigo cercano",
"custom_messages" : {
"promoter_followup_text" : "Gracias por su retroalimentación.",
"promoter_thank_you_link_text" : "¡Visite nuestro sitio web!",
"promoter_thank_you_link_url" : "https://wootric.com",
"promoter_thank_you_main" : "¡Gracias por su retroalimentación!",
"promoter_prompt_text" : "¿Qué fue lo que más le gustó?",
"passive_followup_text" : "Gracias por su retroalimentación. ¿Cómo podemos mejorar?",
"passive_thank_you_link_text" : "¡Visite nuestro sitio web!",
"passive_thank_you_link_url" : "https://wootric.com",
"passive_thank_you_main" : "¡Apreciamos mucho su retroalimentación!",
"passive_prompt_text" : "¡Ayúdenos a mejorar!",
"detractor_followup_text" : "¿Cómo podemos mejorar su experiencia?",
"detractor_thank_you_link_text" : "¡Visite nuestro sitio web!",
"detractor_thank_you_link_url" : "https://wootric.com",
"detractor_thank_you_main" : "Gracias por su retroalimentación. Nos aseguraremos de atender sus comentarios.",
"detractor_prompt_text" : "¡Su opinión es muy importante para nosotros!"
}
}
}
And that's it! Now depending on the Language of the user that submitted the ticket, the survey will be sent in the corresponding language. Here is the final result:
English
Spanish