IntentDisambiguationSettingsProperty Struct
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
ts
// 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
customDisambiguationMessagestringcustom_disambiguation_messagestrcustomDisambiguationMessageStringCustomDisambiguationMessagestringCustomDisambiguationMessage*string#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.
enabledboolean | IResolvableenabledtyping.Union[bool, IResolvable]enabledBooleanEnabledboolEnabledinterface{}required#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 .
maxDisambiguationIntentsnumbermax_disambiguation_intentsint | floatmaxDisambiguationIntentsNumberMaxDisambiguationIntentsdoubleMaxDisambiguationIntents*float64#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.