Amazon Connect
Last updated
Last updated
To integrate your Amazon Lex bot in an Amazon Connect Virtual Contact Center, follow these instructions to utilize all available functionalities.
Amazon Lex can't communicate directly with eva, therefore it needs a Lambda function to forward the payload to ava and then return the response in a special format to Amazon Lex.
When using the Amazon Lex bot for NLU, we forward the entire NLU response 1:1 to eva, and then the built-in Amazon Lex NLU in Cognigy.AI will transform the transcript, Intents and Slots into a format that can be understood by eva
1. Log on to the AWS console as a privileged user.
2. Open AWS Lambda and create a new Lambda function with a Node.js runtime.
3. Create your lambda that communicates with eva (you can ask for the OIL template). You will need to configurate the environment variables for the credentials and bot configuration (user, password, api-key, project, channel…)
4. Modify the service that was created for the Lambda function. You will need to add the rights lex:ListIntents and lex:ListSlots. Instead you may also use a predefined role such as AmazonLexReadOnly.
5. Save the Lambda function.
1. Log on to the AWS console with a privileged user.
2. Open your bot in the AWS Lex V2 console.
3. Open your first Intent.
Expand Fulfillment and enable the Fulfillment Lambda code hook in the Advanced options.
5. Click Update Options and Save intent.
6. Open each Intent in the current language, including the FallbackIntent, and repeat these steps.
7. Build the language, then repeat these steps for additional languages if required.
8. Go to Bot versions and create a new version.
9. Go to Aliases and create a new alias or associate an existing one to the newest version.
Reopen the alias and click on the name of each language that is supported
Select the previously created Lambda function with its latest version and save