Amazon Lex now supports sentiment analysis by natively integrating with Amazon Comprehend. Up until now, you had to implement custom logic using Amazon Comprehend APIs to assess user sentiment. Starting today, you can enable sentiment analysis for your bot with a single-click in the Amazon Lex Console. Amazon Comprehend uses natural language processing to detect the overall sentiment in text and returns value as positive, negative, neutral, or mixed.