Class: Aws::LexModelsV2::Types::WaitAndContinueSpecification
- Inherits:
-
Struct
- Object
- Struct
- Aws::LexModelsV2::Types::WaitAndContinueSpecification
- Defined in:
- gems/aws-sdk-lexmodelsv2/lib/aws-sdk-lexmodelsv2/types.rb
Overview
When making an API call, you may pass WaitAndContinueSpecification data as a hash:
{
waiting_response: { # required
message_groups: [ # required
{
message: { # required
plain_text_message: {
value: "PlainTextMessageValue", # required
},
custom_payload: {
value: "CustomPayloadValue", # required
},
ssml_message: {
value: "SSMLMessageValue", # required
},
image_response_card: {
title: "AttachmentTitle", # required
subtitle: "AttachmentTitle",
image_url: "AttachmentUrl",
buttons: [
{
text: "ButtonText", # required
value: "ButtonValue", # required
},
],
},
},
variations: [
{
plain_text_message: {
value: "PlainTextMessageValue", # required
},
custom_payload: {
value: "CustomPayloadValue", # required
},
ssml_message: {
value: "SSMLMessageValue", # required
},
image_response_card: {
title: "AttachmentTitle", # required
subtitle: "AttachmentTitle",
image_url: "AttachmentUrl",
buttons: [
{
text: "ButtonText", # required
value: "ButtonValue", # required
},
],
},
},
],
},
],
allow_interrupt: false,
},
continue_response: { # required
message_groups: [ # required
{
message: { # required
plain_text_message: {
value: "PlainTextMessageValue", # required
},
custom_payload: {
value: "CustomPayloadValue", # required
},
ssml_message: {
value: "SSMLMessageValue", # required
},
image_response_card: {
title: "AttachmentTitle", # required
subtitle: "AttachmentTitle",
image_url: "AttachmentUrl",
buttons: [
{
text: "ButtonText", # required
value: "ButtonValue", # required
},
],
},
},
variations: [
{
plain_text_message: {
value: "PlainTextMessageValue", # required
},
custom_payload: {
value: "CustomPayloadValue", # required
},
ssml_message: {
value: "SSMLMessageValue", # required
},
image_response_card: {
title: "AttachmentTitle", # required
subtitle: "AttachmentTitle",
image_url: "AttachmentUrl",
buttons: [
{
text: "ButtonText", # required
value: "ButtonValue", # required
},
],
},
},
],
},
],
allow_interrupt: false,
},
still_waiting_response: {
message_groups: [ # required
{
message: { # required
plain_text_message: {
value: "PlainTextMessageValue", # required
},
custom_payload: {
value: "CustomPayloadValue", # required
},
ssml_message: {
value: "SSMLMessageValue", # required
},
image_response_card: {
title: "AttachmentTitle", # required
subtitle: "AttachmentTitle",
image_url: "AttachmentUrl",
buttons: [
{
text: "ButtonText", # required
value: "ButtonValue", # required
},
],
},
},
variations: [
{
plain_text_message: {
value: "PlainTextMessageValue", # required
},
custom_payload: {
value: "CustomPayloadValue", # required
},
ssml_message: {
value: "SSMLMessageValue", # required
},
image_response_card: {
title: "AttachmentTitle", # required
subtitle: "AttachmentTitle",
image_url: "AttachmentUrl",
buttons: [
{
text: "ButtonText", # required
value: "ButtonValue", # required
},
],
},
},
],
},
],
frequency_in_seconds: 1, # required
timeout_in_seconds: 1, # required
allow_interrupt: false,
},
active: false,
}
Specifies the prompts that Amazon Lex uses while a bot is waiting for customer input.
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#active ⇒ Boolean
Specifies whether the bot will wait for a user to respond.
-
#continue_response ⇒ Types::ResponseSpecification
The response that Amazon Lex sends to indicate that the bot is ready to continue the conversation.
-
#still_waiting_response ⇒ Types::StillWaitingResponseSpecification
A response that Amazon Lex sends periodically to the user to indicate that the bot is still waiting for input from the user.
-
#waiting_response ⇒ Types::ResponseSpecification
The response that Amazon Lex sends to indicate that the bot is waiting for the conversation to continue.
Instance Attribute Details
#active ⇒ Boolean
Specifies whether the bot will wait for a user to respond. When this
field is false, wait and continue responses for a slot aren't used.
If the active
field isn't specified, the default is true.
13296 13297 13298 13299 13300 13301 13302 13303 |
# File 'gems/aws-sdk-lexmodelsv2/lib/aws-sdk-lexmodelsv2/types.rb', line 13296 class WaitAndContinueSpecification < Struct.new( :waiting_response, :continue_response, :still_waiting_response, :active) SENSITIVE = [] include Aws::Structure end |
#continue_response ⇒ Types::ResponseSpecification
The response that Amazon Lex sends to indicate that the bot is ready to continue the conversation.
13296 13297 13298 13299 13300 13301 13302 13303 |
# File 'gems/aws-sdk-lexmodelsv2/lib/aws-sdk-lexmodelsv2/types.rb', line 13296 class WaitAndContinueSpecification < Struct.new( :waiting_response, :continue_response, :still_waiting_response, :active) SENSITIVE = [] include Aws::Structure end |
#still_waiting_response ⇒ Types::StillWaitingResponseSpecification
A response that Amazon Lex sends periodically to the user to indicate that the bot is still waiting for input from the user.
13296 13297 13298 13299 13300 13301 13302 13303 |
# File 'gems/aws-sdk-lexmodelsv2/lib/aws-sdk-lexmodelsv2/types.rb', line 13296 class WaitAndContinueSpecification < Struct.new( :waiting_response, :continue_response, :still_waiting_response, :active) SENSITIVE = [] include Aws::Structure end |
#waiting_response ⇒ Types::ResponseSpecification
The response that Amazon Lex sends to indicate that the bot is waiting for the conversation to continue.
13296 13297 13298 13299 13300 13301 13302 13303 |
# File 'gems/aws-sdk-lexmodelsv2/lib/aws-sdk-lexmodelsv2/types.rb', line 13296 class WaitAndContinueSpecification < Struct.new( :waiting_response, :continue_response, :still_waiting_response, :active) SENSITIVE = [] include Aws::Structure end |