Search code examples
amazon-web-servicesamazon-lexamazon-connect

Integrating AWS Lex Bot with Amazon Connect and with Support of two languages


I want to integrate a Lex Bot with Amazon Connect and the bot should support two languages eg, English US and French. The language selection will be based on the Selection in the get Customer input block prompted for language. The Problem is how can I handle the situation if the customer selects French and the Bot should interact with a customer in French. I have also added the Language attribute in a set voice block. With English its working fine but if I select french before invoking the lex bot. it gives me an error. Note: I have added Both of the languages (English and French)in Lex Bot with the reqired Intents.

Thanks in Addvance.


Solution

  • Without seeing screenshots of your lex bot configs and flow it is difficult to tell what's going wrong, but there are a couple of things to check:

    1. Make sure when you create the bot version you include both languages and that your alias is pointing to a version of your bot with both languages.

    2. Make sure you have set the language using the Set Voice block with the Set Language Attribute checkbox checked. See here for more info on this.