PostContentResponse
Types
Properties
A list of active contexts for the session. A context can be set when an intent is fulfilled or by calling the PostContent
, PostText
, or PutSession
operation.
One to four alternative intents that may be applicable to the user's intent.
The prompt (or statement) to convey to the user. This is based on the bot configuration and context. For example, if Amazon Lex did not understand the user intent, it sends the clarificationPrompt
configured for the bot. If the intent requires confirmation before taking the fulfillment action, it sends the confirmationPrompt
. Another example: Suppose that the Lambda function successfully fulfilled the intent, and sent a message to convey to the user. Then Amazon Lex sends that message in the response.
The version of the bot that responded to the conversation. You can use this information to help determine if one version of a bot is performing better than another version.
Content type as specified in the Accept
HTTP header in the request.
Identifies the current state of the user interaction. Amazon Lex returns one of the following values as dialogState
. The client can optionally use this information to customize the user interface.
The text used to process the request.
The message to convey to the user. The message can come from the bot's configuration or from a Lambda function.
The text used to process the request.
Current user intent that Amazon Lex is aware of.
The format of the response message. One of the following values:
Provides a score that indicates how confident Amazon Lex is that the returned intent is the one that matches the user's intent. The score is between 0.0 and 1.0.
The sentiment expressed in an utterance.
Map of key/value pairs representing the session-specific context information.
If the dialogState
value is ElicitSlot
, returns the name of the slot for which Amazon Lex is eliciting a value.