SentimentResponse - Amazon Lex API Reference

SentimentResponse

Provides information about the sentiment expressed in a user's response in a conversation. Sentiments are determined using Amazon Comprehend. Sentiments are only returned if they are enabled for the bot.

For more information, see Determine Sentiment in the Amazon Comprehend developer guide.

Contents

sentiment

The overall sentiment expressed in the user's response. This is the sentiment most likely expressed by the user based on the analysis by Amazon Comprehend.

Type: String

Valid Values: MIXED | NEGATIVE | NEUTRAL | POSITIVE

Required: No

sentimentScore

The individual sentiment responses for the utterance.

Type: SentimentScore object

Required: No

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: