interface SubSlotValueElicitationSettingProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.Lex.Mixins.CfnBotPropsMixin.SubSlotValueElicitationSettingProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awslex/mixins#CfnBotPropsMixin_SubSlotValueElicitationSettingProperty |
Java | software.amazon.awscdk.mixins.preview.services.lex.mixins.CfnBotPropsMixin.SubSlotValueElicitationSettingProperty |
Python | aws_cdk.mixins_preview.aws_lex.mixins.CfnBotPropsMixin.SubSlotValueElicitationSettingProperty |
TypeScript | @aws-cdk/mixins-preview » aws_lex » mixins » CfnBotPropsMixin » SubSlotValueElicitationSettingProperty |
Subslot elicitation settings.
DefaultValueSpecification is a list of default values for a constituent sub slot in a composite slot. Default values are used when Amazon Lex hasn't determined a value for a slot. You can specify default values from context variables, session attributes, and defined values. This is similar to DefaultValueSpecification for slots.
PromptSpecification is the prompt that Amazon Lex uses to elicit the sub slot value from the user. This is similar to PromptSpecification for slots.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as lex_mixins } from '@aws-cdk/mixins-preview/aws-lex';
const subSlotValueElicitationSettingProperty: lex_mixins.CfnBotPropsMixin.SubSlotValueElicitationSettingProperty = {
defaultValueSpecification: {
defaultValueList: [{
defaultValue: 'defaultValue',
}],
},
promptSpecification: {
allowInterrupt: false,
maxRetries: 123,
messageGroupsList: [{
message: {
customPayload: {
value: 'value',
},
imageResponseCard: {
buttons: [{
text: 'text',
value: 'value',
}],
imageUrl: 'imageUrl',
subtitle: 'subtitle',
title: 'title',
},
plainTextMessage: {
value: 'value',
},
ssmlMessage: {
value: 'value',
},
},
variations: [{
customPayload: {
value: 'value',
},
imageResponseCard: {
buttons: [{
text: 'text',
value: 'value',
}],
imageUrl: 'imageUrl',
subtitle: 'subtitle',
title: 'title',
},
plainTextMessage: {
value: 'value',
},
ssmlMessage: {
value: 'value',
},
}],
}],
messageSelectionStrategy: 'messageSelectionStrategy',
promptAttemptsSpecification: {
promptAttemptsSpecificationKey: {
allowedInputTypes: {
allowAudioInput: false,
allowDtmfInput: false,
},
allowInterrupt: false,
audioAndDtmfInputSpecification: {
audioSpecification: {
endTimeoutMs: 123,
maxLengthMs: 123,
},
dtmfSpecification: {
deletionCharacter: 'deletionCharacter',
endCharacter: 'endCharacter',
endTimeoutMs: 123,
maxLength: 123,
},
startTimeoutMs: 123,
},
textInputSpecification: {
startTimeoutMs: 123,
},
},
},
},
sampleUtterances: [{
utterance: 'utterance',
}],
waitAndContinueSpecification: {
continueResponse: {
allowInterrupt: false,
messageGroupsList: [{
message: {
customPayload: {
value: 'value',
},
imageResponseCard: {
buttons: [{
text: 'text',
value: 'value',
}],
imageUrl: 'imageUrl',
subtitle: 'subtitle',
title: 'title',
},
plainTextMessage: {
value: 'value',
},
ssmlMessage: {
value: 'value',
},
},
variations: [{
customPayload: {
value: 'value',
},
imageResponseCard: {
buttons: [{
text: 'text',
value: 'value',
}],
imageUrl: 'imageUrl',
subtitle: 'subtitle',
title: 'title',
},
plainTextMessage: {
value: 'value',
},
ssmlMessage: {
value: 'value',
},
}],
}],
},
isActive: false,
stillWaitingResponse: {
allowInterrupt: false,
frequencyInSeconds: 123,
messageGroupsList: [{
message: {
customPayload: {
value: 'value',
},
imageResponseCard: {
buttons: [{
text: 'text',
value: 'value',
}],
imageUrl: 'imageUrl',
subtitle: 'subtitle',
title: 'title',
},
plainTextMessage: {
value: 'value',
},
ssmlMessage: {
value: 'value',
},
},
variations: [{
customPayload: {
value: 'value',
},
imageResponseCard: {
buttons: [{
text: 'text',
value: 'value',
}],
imageUrl: 'imageUrl',
subtitle: 'subtitle',
title: 'title',
},
plainTextMessage: {
value: 'value',
},
ssmlMessage: {
value: 'value',
},
}],
}],
timeoutInSeconds: 123,
},
waitingResponse: {
allowInterrupt: false,
messageGroupsList: [{
message: {
customPayload: {
value: 'value',
},
imageResponseCard: {
buttons: [{
text: 'text',
value: 'value',
}],
imageUrl: 'imageUrl',
subtitle: 'subtitle',
title: 'title',
},
plainTextMessage: {
value: 'value',
},
ssmlMessage: {
value: 'value',
},
},
variations: [{
customPayload: {
value: 'value',
},
imageResponseCard: {
buttons: [{
text: 'text',
value: 'value',
}],
imageUrl: 'imageUrl',
subtitle: 'subtitle',
title: 'title',
},
plainTextMessage: {
value: 'value',
},
ssmlMessage: {
value: 'value',
},
}],
}],
},
},
};
Properties
| Name | Type | Description |
|---|---|---|
| default | IResolvable | Slot | |
| prompt | IResolvable | Prompt | |
| sample | IResolvable | (IResolvable | Sample)[] | If you know a specific pattern that users might respond to an Amazon Lex request for a sub slot value, you can provide those utterances to improve accuracy. |
| wait | IResolvable | Wait |
defaultValueSpecification?
Type:
IResolvable | Slot
(optional)
promptSpecification?
Type:
IResolvable | Prompt
(optional)
sampleUtterances?
Type:
IResolvable | (IResolvable | Sample)[]
(optional)
If you know a specific pattern that users might respond to an Amazon Lex request for a sub slot value, you can provide those utterances to improve accuracy.
This is optional. In most cases Amazon Lex is capable of understanding user utterances. This is similar to SampleUtterances for slots.
waitAndContinueSpecification?
Type:
IResolvable | Wait
(optional)

.NET
Go
Java
Python
TypeScript