Interface CfnBotPropsMixin.IntentDisambiguationSettingsProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnBotPropsMixin.IntentDisambiguationSettingsProperty.Jsii$Proxy
- Enclosing class:
CfnBotPropsMixin
@Stability(Stable)
public static interface CfnBotPropsMixin.IntentDisambiguationSettingsProperty
extends software.amazon.jsii.JsiiSerializable
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 software.amazon.awscdk.cfnpropertymixins.services.lex.*;
IntentDisambiguationSettingsProperty intentDisambiguationSettingsProperty = IntentDisambiguationSettingsProperty.builder()
.customDisambiguationMessage("customDisambiguationMessage")
.enabled(false)
.maxDisambiguationIntents(123)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnBotPropsMixin.IntentDisambiguationSettingsPropertystatic final classAn implementation forCfnBotPropsMixin.IntentDisambiguationSettingsProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default StringProvides a custom message that will be displayed before presenting the disambiguation options to users.default ObjectDetermines whether the Intent Disambiguation feature is enabled.default NumberSpecifies the maximum number of intent options (2-5) to present to users when disambiguation is needed.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getCustomDisambiguationMessage
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.
- See Also:
-
getEnabled
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 beingfalse.Returns union: either
BooleanorIResolvable- See Also:
-
getMaxDisambiguationIntents
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.
- See Also:
-
builder
-