DialogAction class

Describes the next action that the bot should take in its interaction with the user and provides information about the context in which the action takes place. Use the DialogAction data type to set the interaction to a specific state, or to return the interaction to a previous state.

Constructors

DialogAction({required DialogActionType type, FulfillmentState? fulfillmentState, String? intentName, String? message, MessageFormatType? messageFormat, String? slotToElicit, Map<String, String>? slots})
DialogAction.fromJson(Map<String, dynamic> json)
factory

Properties

fulfillmentState FulfillmentState?
The fulfillment state of the intent. The possible values are:
final
hashCode int
The hash code for this object.
no setterinherited
intentName String?
The name of the intent.
final
message String?
The message that should be shown to the user. If you don't specify a message, Amazon Lex will use the message configured for the intent.
final
messageFormat MessageFormatType?
  • PlainText - The message contains plain UTF-8 text.
  • CustomPayload - The message is a custom format for the client.
  • SSML - The message contains text formatted for voice output.
  • Composite - The message contains an escaped JSON object containing one or more messages. For more information, see Message Groups.
  • final
    runtimeType Type
    A representation of the runtime type of the object.
    no setterinherited
    slots Map<String, String>?
    Map of the slots that have been gathered and their values.
    final
    slotToElicit String?
    The name of the slot that should be elicited from the user.
    final
    type DialogActionType
    The next action that the bot should take in its interaction with the user. The possible values are:
    final

    Methods

    noSuchMethod(Invocation invocation) → dynamic
    Invoked when a nonexistent method or property is accessed.
    inherited
    toJson() Map<String, dynamic>
    toString() String
    A string representation of this object.
    inherited

    Operators

    operator ==(Object other) bool
    The equality operator.
    inherited