Interface CfnBot.IntentDisambiguationSettingsProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnBot.IntentDisambiguationSettingsProperty.Jsii$Proxy
- Enclosing class:
CfnBot
@Stability(Stable)
public static interface CfnBot.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.services.lex.*;
IntentDisambiguationSettingsProperty intentDisambiguationSettingsProperty = IntentDisambiguationSettingsProperty.builder()
.enabled(false)
// the properties below are optional
.customDisambiguationMessage("customDisambiguationMessage")
.maxDisambiguationIntents(123)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnBot.IntentDisambiguationSettingsPropertystatic final classAn implementation forCfnBot.IntentDisambiguationSettingsProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default StringProvides a custom message that will be displayed before presenting the disambiguation options to users.Determines 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
-
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:
-
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:
-
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
-