Class: Aws::LexModelBuildingService::Types::FollowUpPrompt
- Inherits:
-
Struct
- Object
- Struct
- Aws::LexModelBuildingService::Types::FollowUpPrompt
- Includes:
- Structure
- Defined in:
- 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
content: "ContentString", # required
},
],
max_attempts: 1, # required
response_card: "ResponseCard",
},
rejection_statement: { # required
messages: [ # required
{
content_type: "PlainText", # required, accepts PlainText, SSML
content: "ContentString", # required
},
],
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.
Instance Attribute Summary collapse
-
#prompt ⇒ Types::Prompt
Prompts for information from the user.
-
#rejection_statement ⇒ Types::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.
Instance Attribute Details
#prompt ⇒ Types::Prompt
Prompts for information from the user.
871 872 873 874 875 |
# File 'lib/aws-sdk-lexmodelbuildingservice/types.rb', line 871 class FollowUpPrompt < Struct.new( :prompt, :rejection_statement) include Aws::Structure end |
#rejection_statement ⇒ Types::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.
871 872 873 874 875 |
# File 'lib/aws-sdk-lexmodelbuildingservice/types.rb', line 871 class FollowUpPrompt < Struct.new( :prompt, :rejection_statement) include Aws::Structure end |