Amazon Lex

Quickly set up the Amazon Lex NLP into your NLX workspace

Integrate Amazon Lex

To integrate with the Amazon Lex NLP engine, begin by selecting Integrations from your workspace menu:

  • Click + Add integration > Choose Amazon Lex from the Type dropdown

  • Provide your integration a name

  • Click the IAMrole and Lex V2 Service Role

This takes you to AWS where you can log into your account. The Quick create stack page appears with Template, Stack Name, and Parameters information.

  • In the Capabilities section at the bottom of that page, select the acknowledgement checkbox and click the Create stack button

  • Once the stack is created, click the Output tab > Under the Key section, locate your newly-generated values for LexManagementRoleArn and LexV2ServiceLinkedRoleArn

  • Copy and paste those values into NLX in the IAM Role ARN and Lex Service Role ARN fields respectively

  • Click Create integration

Successful integration is noted with an Amazon Lex status of Live.

At any time, you may edit or delete your Amazon Lex integration by expanding the integration name and selecting the edit or delete icons.


Enabling Sentiment

There is an additional one-time setup required in order to enable permissions to detect sentiment using Amazon Lex. This adds the Comprehend permissions to the Lex service linked role that is created by the NLX - Lex Integration.

  • Build and deploy an application using the desired Amazon Lex integration

  • Go to the Lex service in your AWS Console > Select your application from the Bots table

  • Under Deployment, select Aliases

  • Select the TestBotAlias

  • Click Edit and Enable Sentiment Analysis (Note: If sentiment analysis is already enabled, disable it, save, and re-enable it)

  • To confirm permission was successfully added, check the service linked IAM role for the ComprehendPolicy

Last updated