Module Values.CreateIntentResponseSource

Creates an intent. To define the interaction between the user and your bot, you define one or more intents. For example, for a pizza ordering bot you would create an OrderPizza intent. When you create an intent, you must provide a name. You can optionally provide the following: Sample utterances. For example, "I want to order a pizza" and "Can I order a pizza." You can't provide utterances for built-in intents. Information to be gathered. You specify slots for the information that you bot requests from the user. You can specify standard slot types, such as date and time, or custom slot types for your application. How the intent is fulfilled. You can provide a Lambda function or configure the intent to return the intent information to your client application. If you use a Lambda function, Amazon Lex invokes the function when all of the intent information is available. A confirmation prompt to send to the user to confirm an intent. For example, "Shall I order your pizza?" A conclusion statement to send to the user after the intent is fulfilled. For example, "I ordered your pizza." A follow-up prompt that asks the user for additional activity. For example, "Do you want a drink with your pizza?"

Sourcetype nonrec t = {
  1. intentId : Id.t option;
    (*

    A unique identifier for the intent.

    *)
  2. intentName : Name.t option;
    (*

    The name specified for the intent.

    *)
  3. intentDisplayName : DisplayName.t option;
    (*

    The display name specified for the intent.

    *)
  4. description : Description.t option;
    (*

    The description specified for the intent.

    *)
  5. parentIntentSignature : IntentSignature.t option;
    (*

    The signature of the parent intent specified for the intent.

    *)
  6. sampleUtterances : SampleUtterancesList.t option;
    (*

    The sample utterances specified for the intent.

    *)
  7. dialogCodeHook : DialogCodeHookSettings.t option;
    (*

    The dialog Lambda function specified for the intent.

    *)
  8. fulfillmentCodeHook : FulfillmentCodeHookSettings.t option;
    (*

    The fulfillment Lambda function specified for the intent.

    *)
  9. intentConfirmationSetting : IntentConfirmationSetting.t option;
    (*

    The confirmation setting specified for the intent.

    *)
  10. intentClosingSetting : IntentClosingSetting.t option;
    (*

    The closing setting specified for the intent.

    *)
  11. inputContexts : InputContextsList.t option;
    (*

    The list of input contexts specified for the intent.

    *)
  12. outputContexts : OutputContextsList.t option;
    (*

    The list of output contexts specified for the intent.

    *)
  13. kendraConfiguration : KendraConfiguration.t option;
    (*

    Configuration for searching a Amazon Kendra index specified for the intent.

    *)
  14. botId : Id.t option;
    (*

    The identifier of the bot associated with the intent.

    *)
  15. botVersion : DraftBotVersion.t option;
    (*

    The version of the bot associated with the intent.

    *)
  16. localeId : LocaleId.t option;
    (*

    The locale that the intent is specified to use.

    *)
  17. creationDateTime : Timestamp.t option;
    (*

    A timestamp of the date and time that the intent was created.

    *)
  18. initialResponseSetting : InitialResponseSetting.t option;
    (*

    Configuration settings for the response that is sent to the user at the beginning of a conversation, before eliciting slot values.

    *)
  19. qnAIntentConfiguration : QnAIntentConfiguration.t option;
    (*

    Details about the the configuration of the built-in Amazon.QnAIntent.

    *)
  20. qInConnectIntentConfiguration : QInConnectIntentConfiguration.t option;
    (*

    Qinconnect intent configuration details for the create intent response.

    *)
}
Sourcetype nonrec error = [
  1. | `ConflictException of ConflictException.t
  2. | `InternalServerException of InternalServerException.t
  3. | `PreconditionFailedException of PreconditionFailedException.t
  4. | `ServiceQuotaExceededException of ServiceQuotaExceededException.t
  5. | `ThrottlingException of ThrottlingException.t
  6. | `ValidationException of ValidationException.t
  7. | `Unknown_operation_error of string * string option
]
Sourceval make : ?intentId:??? -> ?intentName:??? -> ?intentDisplayName:??? -> ?description:??? -> ?parentIntentSignature:??? -> ?sampleUtterances:??? -> ?dialogCodeHook:??? -> ?fulfillmentCodeHook:??? -> ?intentConfirmationSetting:??? -> ?intentClosingSetting:??? -> ?inputContexts:??? -> ?outputContexts:??? -> ?kendraConfiguration:??? -> ?botId:??? -> ?botVersion:??? -> ?localeId:??? -> ?creationDateTime:??? -> ?initialResponseSetting:??? -> ?qnAIntentConfiguration:??? -> ?qInConnectIntentConfiguration:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `ConflictException of ConflictException.t | `InternalServerException of InternalServerException.t | `PreconditionFailedException of PreconditionFailedException.t | `ServiceQuotaExceededException of ServiceQuotaExceededException.t | `ThrottlingException of ThrottlingException.t | `Unknown_operation_error of string * string option | `ValidationException of ValidationException.t ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `ConflictException of ConflictException.t | `InternalServerException of InternalServerException.t | `PreconditionFailedException of PreconditionFailedException.t | `ServiceQuotaExceededException of ServiceQuotaExceededException.t | `ThrottlingException of ThrottlingException.t | `Unknown_operation_error of string * string option | `ValidationException of ValidationException.t ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `List of [> `Structure of (string * [> `Integer of ContextTimeToLiveInSeconds.t | `String of Utterance.t ]) list ] list | `String of Id.t | `Structure of (string * [> `Boolean of Boolean.t | `String of KendraIndexArn.t | `Structure of (string * [> `Boolean of BoxedBoolean.t | `Enum of string | `Integer of FulfillmentTimeout.t | `List of [> `Structure of (string * [> `List of [> `Structure of (string * [> `Structure of (string * [> `List of [> `Structure of (string * [> `String of ButtonText.t ]) list ] list | `String of PlainTextMessageValue.t ]) list ]) list ] list | `String of Name.t | `Structure of (string * [> `Boolean of BoxedBoolean.t | `List of [> `Structure of (string * [> `List of [> `Structure of (string * [> `Structure of (string * [> `List of [> `Structure of (string * [> `String of ButtonText.t ]) list ] list | `String of PlainTextMessageValue.t ]) list ]) list ] list | `Structure of (string * [> `Structure of (string * [> `List of [> `Structure of (string * [> `String of ButtonText.t ]) list ] list | `String of PlainTextMessageValue.t ]) list ]) list ]) list ] list | `Map of ([> `String of NonEmptyString.t ] * [> `String of String_.t ]) list | `String of ConditionExpression.t | `Structure of (string * [> `Boolean of BoxedBoolean.t | `Enum of string | `List of [> `Structure of (string * [> `String of ButtonText.t ]) list ] list | `Map of ([> `String of Name.t ] * Awso.Botodata.value) list | `String of PlainTextMessageValue.t ]) list ]) list ]) list ] list | `Map of ([> `Enum of string | `String of NonEmptyString.t ] * [> `String of String_.t | `Structure of (string * [> `Boolean of BoxedBoolean.t | `Structure of (string * [> `Boolean of BoxedBoolean.t | `Integer of TimeInMilliSeconds.t | `Structure of (string * [> `Integer of TimeInMilliSeconds.t | `String of DTMFCharacter.t ]) list ]) list ]) list ]) list | `String of Name.t | `Structure of (string * [> `Boolean of BoxedBoolean.t | `Enum of string | `Integer of FulfillmentStartResponseDelay.t | `List of [> `String of IncludeField.t | `Structure of (string * [> `List of [> `Structure of (string * [> `Structure of (string * [> `List of [> `Structure of (string * [> `String of ButtonText.t ]) list ] list | `String of PlainTextMessageValue.t ]) list ]) list ] list | `String of Name.t | `Structure of (string * [> `Boolean of BoxedBoolean.t | `List of [> `Structure of (string * [> `List of [> `Structure of (string * [> `Structure of (string * [> `List of [> `Structure of (string * [> `String of ButtonText.t ]) list ] list | `String of PlainTextMessageValue.t ]) list ]) list ] list | `Structure of (string * [> `Structure of (string * [> `List of [> `Structure of (string * [> `String of ButtonText.t ]) list ] list | `String of PlainTextMessageValue.t ]) list ]) list ]) list ] list | `Map of ([> `String of NonEmptyString.t ] * [> `String of String_.t ]) list | `String of ConditionExpression.t | `Structure of (string * [> `Boolean of BoxedBoolean.t | `Enum of string | `List of [> `Structure of (string * [> `String of ButtonText.t ]) list ] list | `Map of ([> `String of Name.t ] * Awso.Botodata.value) list | `String of PlainTextMessageValue.t ]) list ]) list ]) list ] list | `Map of ([> `String of NonEmptyString.t ] * Awso.Botodata.value) list | `String of Name.t | `Structure of (string * [> `Boolean of BoxedBoolean.t | `Enum of string | `List of [> `Structure of (string * [> `List of [> `Structure of (string * [> `Structure of (string * [> `List of [> `Structure of (string * [> `String of ButtonText.t ]) list ] list | `String of PlainTextMessageValue.t ]) list ]) list ] list | `String of Name.t | `Structure of (string * [> `Boolean of BoxedBoolean.t | `List of [> `Structure of (string * [> `List of [> `Structure of (string * [> `Structure of (string * [> `List of [> `Structure of (string * [> `String of ButtonText.t ]) list ] list | `String of PlainTextMessageValue.t ]) list ]) list ] list | `Structure of (string * [> `Structure of (string * [> `List of [> `Structure of (string * [> `String of ButtonText.t ]) list ] list | `String of PlainTextMessageValue.t ]) list ]) list ]) list ] list | `Map of ([> `String of NonEmptyString.t ] * [> `String of String_.t ]) list | `String of ConditionExpression.t | `Structure of (string * [> `Boolean of BoxedBoolean.t | `Enum of string | `List of [> `Structure of (string * [> `String of ButtonText.t ]) list ] list | `Map of ([> `String of Name.t ] * Awso.Botodata.value) list | `String of PlainTextMessageValue.t ]) list ]) list ]) list ] list | `Map of ([> `String of Name.t ] * Awso.Botodata.value) list | `String of Name.t | `Structure of (string * [> `Boolean of BoxedBoolean.t | `Enum of string | `List of [> `Structure of (string * [> `List of [> `Structure of (string * [> `Structure of (string * [> `List of [> `Structure of (string * [> `String of ButtonText.t ]) list ] list | `String of PlainTextMessageValue.t ]) list ]) list ] list | `Structure of (string * [> `Structure of (string * [> `List of [> `Structure of (string * [> `String of ButtonText.t ]) list ] list | `String of PlainTextMessageValue.t ]) list ]) list ]) list ] list | `Map of ([> `String of NonEmptyString.t ] * Awso.Botodata.value) list | `String of Name.t | `Structure of (string * [> `Boolean of BoxedBoolean.t | `Enum of string | `List of [> `Structure of (string * [> `List of [> `Structure of (string * [> `Structure of (string * [> `List of [> `Structure of (string * [> `String of ButtonText.t ]) list ] list | `String of PlainTextMessageValue.t ]) list ]) list ] list | `Structure of (string * [> `Structure of (string * [> `List of [> `Structure of (string * [> `String of ButtonText.t ]) list ] list | `String of PlainTextMessageValue.t ]) list ]) list ]) list ] list | `Map of ([> `String of Name.t ] * Awso.Botodata.value) list | `String of Name.t | `Structure of (string * [> `Boolean of BoxedBoolean.t | `Enum of string | `Map of ([> `String of Name.t ] * Awso.Botodata.value) list | `String of Name.t ]) list ]) list ]) list ]) list ]) list ]) list ]) list | `Timestamp of Timestamp.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