Hi, Everbody.
A have a update of this case, unfortunetly don't works at call flows, but it's a good feature:
When building digital experiences in Genesys Cloud, one useful function that is often overlooked is DetectLanguage().
This function analyzes the text provided by a customer and attempts to identify the language being used, returning an IETF language tag such as:
✅ "en" → English
✅ "es" → Spanish
✅ "pt" → Portuguese
✅ "fr" → French
Syntax:
DetectLanguage(String stringToSearch, String defaultString)
Example:
DetectLanguage(
Email.Message.body,
""
)
Output:
"es"
If the customer sends an email in Spanish, the function automatically detects the language and returns "es".
Another example:
DetectLanguage(
"Esta es una prueba que debe verificar nuestra capacidad de encontrar un lenguaje en una cadena de texto nativo.",
"en"
)
Output:
"es"
Practical use cases
🔹 Route conversations to agents based on customer language
🔹 Dynamically select bot prompts and messages
🔹 Deliver multilingual self-service experiences
🔹 Improve omnichannel customer journeys
🔹 Automatically assign language-specific queues
This function is available in Chat, Email, Messaging, Digital Bot Flows, Workflows, Common Modules, and several other Genesys Cloud flow types, making it a powerful tool for global customer support operations.
Have you used DetectLanguage() in your Architect flows? Share your experience in the comments.
------------------------------
Lineu Romão
------------------------------