message property
The message to convey to the user. The message can come from the bot's configuration or from a Lambda function.
If the intent is not configured with a Lambda function, or if the Lambda
function returned Delegate
as the
dialogAction.type
its response, Amazon Lex decides on the next
course of action and selects an appropriate message from the bot's
configuration based on the current interaction context. For example, if
Amazon Lex isn't able to understand user input, it uses a clarification
prompt message.
When you create an intent you can assign messages to groups. When messages are assigned to groups Amazon Lex returns one message from each group in the response. The message field is an escaped JSON string containing the messages. For more information about the structure of the JSON string returned, see msg-prompts-formats.
If the Lambda function returns a message, Amazon Lex passes it to the client in its response.
Implementation
final String? message;