Setting up variables and transitions for routing Email workitems by detected language
Language detection can be used to route text based work items. If Language detection is used then a single campaign and workflow can be used as opposed to creating a separate campaign per supported language
In order to set up language detection you need to add a few actions in the email campaign workflow
in the expression field, this tells the system to capture the text in the email subject
You can name the variable whatever you want but make sure not to include spaces or special character. The variable will now contain the text that was contained in the expression. In this example let us call the variable EmailSubject
Email Content is used to capture the text located in the body of an email so that you can save it as a variable.
You can name the variable name whatever you want but make sure not to include spaces or special character. The variable will now contain the text in the body of the email. In this example let us call the variable emailContent
(workitem.data.subjectVariable + workitem.data.emailBdyVariablle)
the system will be analyzing both the subject + the body of the email to detect a language
workitem.detectLanguageResult.mostLikelyLanguage == the 1st language your organization supports
eg. if your organization wants to route work items based on French being detected you would enter
workitem.detectLanguageResult.mostLikelyLanguage == ‘fr’
workitem.detectLanguageResult.mostLikelyLanguage == the 2nd language your organization supports
eg. if your organization wants to route work items based on Spanish being detected you would enter
workitem.detectLanguageResult.mostLikelyLanguage == ‘es’
Currently you can access a list of language codes supported by google here.
The rich text element allows you to create and format headings, paragraphs, blockquotes, images, and video all in one place instead of having to add and format them individually. Just double-click and easily create content.
A rich text element can be used with static or dynamic content. For static content, just drop it into any page and begin editing. For dynamic content, add a rich text field to any collection and then connect a rich text element to that field in the settings panel. Voila!
Headings, paragraphs, blockquotes, figures, images, and figure captions can all be styled after a class is added to the rich text element using the "When inside of" nested selector system.