libZSservicesZSamazonka-lex-modelsZSamazonka-lex-models
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.LexModels.Types.Prompt

Description

 
Synopsis

Documentation

data Prompt Source #

Obtains information from the user. To define a prompt, provide one or more messages and specify the number of attempts to get information from the user. If you provide more than one message, Amazon Lex chooses one of the messages to use to prompt the user. For more information, see how-it-works.

See: newPrompt smart constructor.

Constructors

Prompt' 

Fields

  • responseCard :: Maybe Text

    A response card. Amazon Lex uses this prompt at runtime, in the PostText API response. It substitutes session attributes and slot values for placeholders in the response card. For more information, see ex-resp-card.

  • messages :: NonEmpty Message

    An array of objects, each of which provides a message string and its type. You can specify the message string in plain text or in Speech Synthesis Markup Language (SSML).

  • maxAttempts :: Natural

    The number of times to prompt the user for information.

Instances

Instances details
Eq Prompt Source # 
Instance details

Defined in Amazonka.LexModels.Types.Prompt

Methods

(==) :: Prompt -> Prompt -> Bool #

(/=) :: Prompt -> Prompt -> Bool #

Read Prompt Source # 
Instance details

Defined in Amazonka.LexModels.Types.Prompt

Show Prompt Source # 
Instance details

Defined in Amazonka.LexModels.Types.Prompt

Generic Prompt Source # 
Instance details

Defined in Amazonka.LexModels.Types.Prompt

Associated Types

type Rep Prompt :: Type -> Type #

Methods

from :: Prompt -> Rep Prompt x #

to :: Rep Prompt x -> Prompt #

NFData Prompt Source # 
Instance details

Defined in Amazonka.LexModels.Types.Prompt

Methods

rnf :: Prompt -> () #

Hashable Prompt Source # 
Instance details

Defined in Amazonka.LexModels.Types.Prompt

Methods

hashWithSalt :: Int -> Prompt -> Int #

hash :: Prompt -> Int #

ToJSON Prompt Source # 
Instance details

Defined in Amazonka.LexModels.Types.Prompt

FromJSON Prompt Source # 
Instance details

Defined in Amazonka.LexModels.Types.Prompt

type Rep Prompt Source # 
Instance details

Defined in Amazonka.LexModels.Types.Prompt

type Rep Prompt = D1 ('MetaData "Prompt" "Amazonka.LexModels.Types.Prompt" "libZSservicesZSamazonka-lex-modelsZSamazonka-lex-models" 'False) (C1 ('MetaCons "Prompt'" 'PrefixI 'True) (S1 ('MetaSel ('Just "responseCard") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "messages") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (NonEmpty Message)) :*: S1 ('MetaSel ('Just "maxAttempts") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Natural))))

newPrompt Source #

Create a value of Prompt with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:responseCard:Prompt', prompt_responseCard - A response card. Amazon Lex uses this prompt at runtime, in the PostText API response. It substitutes session attributes and slot values for placeholders in the response card. For more information, see ex-resp-card.

$sel:messages:Prompt', prompt_messages - An array of objects, each of which provides a message string and its type. You can specify the message string in plain text or in Speech Synthesis Markup Language (SSML).

$sel:maxAttempts:Prompt', prompt_maxAttempts - The number of times to prompt the user for information.

prompt_responseCard :: Lens' Prompt (Maybe Text) Source #

A response card. Amazon Lex uses this prompt at runtime, in the PostText API response. It substitutes session attributes and slot values for placeholders in the response card. For more information, see ex-resp-card.

prompt_messages :: Lens' Prompt (NonEmpty Message) Source #

An array of objects, each of which provides a message string and its type. You can specify the message string in plain text or in Speech Synthesis Markup Language (SSML).

prompt_maxAttempts :: Lens' Prompt Natural Source #

The number of times to prompt the user for information.