interface SlotValueElicitationSettingProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Lex.CfnBot.SlotValueElicitationSettingProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awslex#CfnBot_SlotValueElicitationSettingProperty |
Java | software.amazon.awscdk.services.lex.CfnBot.SlotValueElicitationSettingProperty |
Python | aws_cdk.aws_lex.CfnBot.SlotValueElicitationSettingProperty |
TypeScript | aws-cdk-lib » aws_lex » CfnBot » SlotValueElicitationSettingProperty |
Specifies the elicitation setting details eliciting a slot.
Example
// The generated example for this type would exceed 500 lines,
// and has been elided for readability.
Properties
Name | Type | Description |
---|---|---|
slot | string | Specifies whether the slot is required or optional. |
default | IResolvable | Slot | A list of default values for a slot. |
prompt | IResolvable | Prompt | The prompt that Amazon Lex uses to elicit the slot value from the user. |
sample | IResolvable | IResolvable | Sample [] | If you know a specific pattern that users might respond to an Amazon Lex request for a slot value, you can provide those utterances to improve accuracy. |
slot | IResolvable | Slot | Specifies the settings that Amazon Lex uses when a slot value is successfully entered by a user. |
wait | IResolvable | Wait | Specifies the prompts that Amazon Lex uses while a bot is waiting for customer input. |
slotConstraint
Type:
string
Specifies whether the slot is required or optional.
defaultValueSpecification?
Type:
IResolvable
|
Slot
(optional)
A list of default values for a 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.
promptSpecification?
Type:
IResolvable
|
Prompt
(optional)
The prompt that Amazon Lex uses to elicit the slot value from the user.
sampleUtterances?
Type:
IResolvable
|
IResolvable
|
Sample
[]
(optional)
If you know a specific pattern that users might respond to an Amazon Lex request for a slot value, you can provide those utterances to improve accuracy.
This is optional. In most cases, Amazon Lex is capable of understanding user utterances.
slotCaptureSetting?
Type:
IResolvable
|
Slot
(optional)
Specifies the settings that Amazon Lex uses when a slot value is successfully entered by a user.
waitAndContinueSpecification?
Type:
IResolvable
|
Wait
(optional)
Specifies the prompts that Amazon Lex uses while a bot is waiting for customer input.