How to detect the Web Messenger language in Architect

Hi,
I have built a Web Messaging channel for two languages Dutch and French.
Now the widget (snippet) that we use on the webpage automatically detects the language of the browser and uses the correct language (in header and system messages).

But, if I use a Send Response action in Architect how do I make sure the correct language is used?
I have added both languages in Architect to and I can send responses for both languages, but without any setting of the languages Architect will always use the deafult one.

I have used Language Detection now, and that works (kind of) but then we must wait on customer input to determine which language to use. I would like to somehow get the language used by the Web Messaging widget so I can set the language in the Archtect Flow.

Any ideas?
BR,
Rob

Hi Rob :wave:
You raise a valid use-case, there's an Idea posted here: https://genesyscloud.ideas.aha.io/ideas/DIG-I-1000
For now, I would recommend to capture the detected browser language on the client (navigator.language || navigator.userLanguage) and to pass that as Custom Attribute so that you can retrieve as Participant Data within Architect Flows. Perhaps the Bot can kindly ask for confirmation ("Is this your preferred conversation language?").

Hi Angelo,

Thanks for your answer, I will check the idea and try to work with the language detection on the client.
BR,
Rob

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.