AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Class: Aws::LexModelBuildingService::Types::FollowUpPrompt

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-lexmodelbuildingservice/lib/aws-sdk-lexmodelbuildingservice/types.rb

Overview

Note:

When making an API call, you may pass FollowUpPrompt data as a hash:

{
  prompt: { # required
    messages: [ # required
      {
        content_type: "PlainText", # required, accepts PlainText, SSML, CustomPayload
        content: "ContentString", # required
        group_number: 1,
      },
    ],
    max_attempts: 1, # required
    response_card: "ResponseCard",
  },
  rejection_statement: { # required
    messages: [ # required
      {
        content_type: "PlainText", # required, accepts PlainText, SSML, CustomPayload
        content: "ContentString", # required
        group_number: 1,
      },
    ],
    response_card: "ResponseCard",
  },
}

A prompt for additional activity after an intent is fulfilled. For example, after the OrderPizza intent is fulfilled, you might prompt the user to find out whether the user wants to order drinks.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#promptTypes::Prompt

Prompts for information from the user.

Returns:



1084
1085
1086
1087
1088
1089
# File 'gems/aws-sdk-lexmodelbuildingservice/lib/aws-sdk-lexmodelbuildingservice/types.rb', line 1084

class FollowUpPrompt < Struct.new(
  :prompt,
  :rejection_statement)
  SENSITIVE = []
  include Aws::Structure
end

#rejection_statementTypes::Statement

If the user answers "no" to the question defined in the prompt field, Amazon Lex responds with this statement to acknowledge that the intent was canceled.

Returns:



1084
1085
1086
1087
1088
1089
# File 'gems/aws-sdk-lexmodelbuildingservice/lib/aws-sdk-lexmodelbuildingservice/types.rb', line 1084

class FollowUpPrompt < Struct.new(
  :prompt,
  :rejection_statement)
  SENSITIVE = []
  include Aws::Structure
end