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

Amazon Connect error using Lex as customer input


I am trying to create a demo call centre using AWS connect.

Part of my contact flow makes use of the "Get Customer Input", as I want to use an Amazon lex bot. I have created to divert to a specific working queue. For example, if the user says "sales" they should be directed to the sales queue.

I have tested the Lex bot within the Lex console and it works as intended.

However when testing the Lex integration within AWS connect it will always follow the "error" path on the block after a user says something on the phone.

Here is the CloudWatch log showing the Error result of the module.

{
   "Results": "Error",
   "ContactFlowName": "Inbound Flow",
   "ContactFlowModuleType": "GetUserInput",
   "Timestamp": "2022-02-12T18:06:10.940Z"
}

Here is the contact flow: enter image description here

Here is the settings for the "Get Customer Input Block": enter image description here

Here is a test of the Lex bot in the Lex dashboard: Lex bot test

Any help would be greatly appreciated.


Solution

  • Turns out the solution was if you're using LexV2 make sure you set the proper Language Attribute as well. Easiest way is using the set Voice block in your Contact Flow, on the very bottom of the block you can enable "set language attribute".