interface PromptSpecificationProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Lex.CfnBot.PromptSpecificationProperty |
![]() | software.amazon.awscdk.services.lex.CfnBot.PromptSpecificationProperty |
![]() | aws_cdk.aws_lex.CfnBot.PromptSpecificationProperty |
![]() | @aws-cdk/aws-lex » CfnBot » PromptSpecificationProperty |
Specifies a list of message groups that Amazon Lex sends to a user to elicit a response.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as lex from '@aws-cdk/aws-lex';
const promptSpecificationProperty: lex.CfnBot.PromptSpecificationProperty = {
maxRetries: 123,
messageGroupsList: [{
message: {
customPayload: {
value: 'value',
},
imageResponseCard: {
title: 'title',
// the properties below are optional
buttons: [{
text: 'text',
value: 'value',
}],
imageUrl: 'imageUrl',
subtitle: 'subtitle',
},
plainTextMessage: {
value: 'value',
},
ssmlMessage: {
value: 'value',
},
},
// the properties below are optional
variations: [{
customPayload: {
value: 'value',
},
imageResponseCard: {
title: 'title',
// the properties below are optional
buttons: [{
text: 'text',
value: 'value',
}],
imageUrl: 'imageUrl',
subtitle: 'subtitle',
},
plainTextMessage: {
value: 'value',
},
ssmlMessage: {
value: 'value',
},
}],
}],
// the properties below are optional
allowInterrupt: false,
messageSelectionStrategy: 'messageSelectionStrategy',
promptAttemptsSpecification: {
promptAttemptsSpecificationKey: {
allowedInputTypes: {
allowAudioInput: false,
allowDtmfInput: false,
},
// the properties below are optional
allowInterrupt: false,
audioAndDtmfInputSpecification: {
startTimeoutMs: 123,
// the properties below are optional
audioSpecification: {
endTimeoutMs: 123,
maxLengthMs: 123,
},
dtmfSpecification: {
deletionCharacter: 'deletionCharacter',
endCharacter: 'endCharacter',
endTimeoutMs: 123,
maxLength: 123,
},
},
textInputSpecification: {
startTimeoutMs: 123,
},
},
},
};
Properties
Name | Type | Description |
---|---|---|
max | number | The maximum number of times the bot tries to elicit a response from the user using this prompt. |
message | IResolvable | IResolvable | Message [] | A collection of messages that Amazon Lex can send to the user. |
allow | boolean | IResolvable | Indicates whether the user can interrupt a speech prompt from the bot. |
message | string | Indicates how a message is selected from a message group among retries. |
prompt | IResolvable | { [string]: IResolvable | Prompt } | Specifies the advanced settings on each attempt of the prompt. |
maxRetries
Type:
number
The maximum number of times the bot tries to elicit a response from the user using this prompt.
messageGroupsList
Type:
IResolvable
|
IResolvable
|
Message
[]
A collection of messages that Amazon Lex can send to the user.
Amazon Lex chooses the actual message to send at runtime.
allowInterrupt?
Type:
boolean |
IResolvable
(optional)
Indicates whether the user can interrupt a speech prompt from the bot.
messageSelectionStrategy?
Type:
string
(optional)
Indicates how a message is selected from a message group among retries.
promptAttemptsSpecification?
Type:
IResolvable
| { [string]:
IResolvable
|
Prompt
}
(optional)
Specifies the advanced settings on each attempt of the prompt.