Module Values.ResponseCardSource

If you configure a response card when creating your bots, Amazon Lex substitutes the session attributes and slot values that are available, and then returns it. The response card can also come from a Lambda function ( dialogCodeHook and fulfillmentActivity on an intent).

Sourcetype nonrec t = {
  1. version : String_.t option;
    (*

    The version of the response card format.

    *)
  2. contentType : ContentType.t option;
    (*

    The content type of the response.

    *)
  3. genericAttachments : GenericAttachmentList.t option;
    (*

    An array of attachment objects representing options.

    *)
}
Sourceval make : ?version:??? -> ?contentType:??? -> ?genericAttachments:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `List of [> `Structure of (string * [> `List of [> `Structure of (string * [> `String of ButtonTextStringWithLength.t ]) list ] list | `String of StringWithLength.t ]) list ] list | `String of String_.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t