interface IntentDisambiguationSettingsProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Lex.CfnBot.IntentDisambiguationSettingsProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awslex#CfnBot_IntentDisambiguationSettingsProperty |
Java | software.amazon.awscdk.services.lex.CfnBot.IntentDisambiguationSettingsProperty |
Python | aws_cdk.aws_lex.CfnBot.IntentDisambiguationSettingsProperty |
TypeScript | aws-cdk-lib » aws_lex » CfnBot » IntentDisambiguationSettingsProperty |
Configures the Intent Disambiguation feature that helps resolve ambiguous user inputs when multiple intents could match.
When enabled, the system presents clarifying questions to users, helping them specify their exact intent for improved conversation accuracy.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_lex as lex } from 'aws-cdk-lib';
const intentDisambiguationSettingsProperty: lex.CfnBot.IntentDisambiguationSettingsProperty = {
enabled: false,
// the properties below are optional
customDisambiguationMessage: 'customDisambiguationMessage',
maxDisambiguationIntents: 123,
};
Properties
| Name | Type | Description |
|---|---|---|
| enabled | boolean | IResolvable | Determines whether the Intent Disambiguation feature is enabled. |
| custom | string | Provides a custom message that will be displayed before presenting the disambiguation options to users. |
| max | number | Specifies the maximum number of intent options (2-5) to present to users when disambiguation is needed. |
enabled
Type:
boolean | IResolvable
Determines whether the Intent Disambiguation feature is enabled.
When set to true , Amazon Lex will present disambiguation options to users when multiple intents could match their input, with the default being false .
customDisambiguationMessage?
Type:
string
(optional)
Provides a custom message that will be displayed before presenting the disambiguation options to users.
This message helps set the context for users and can be customized to match your bot's tone and brand. If not specified, a default message will be used.
maxDisambiguationIntents?
Type:
number
(optional)
Specifies the maximum number of intent options (2-5) to present to users when disambiguation is needed.
This setting determines how many intent options will be shown to users when the system detects ambiguous input. The default value is 3.

.NET
Go
Java
Python
TypeScript