Class: Aws::LexModelsV2::Types::IntentDisambiguationSettings

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-lexmodelsv2/lib/aws-sdk-lexmodelsv2/types.rb

Overview

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.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#custom_disambiguation_messageString

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.

Returns:

  • (String)


8531
8532
8533
8534
8535
8536
8537
# File 'gems/aws-sdk-lexmodelsv2/lib/aws-sdk-lexmodelsv2/types.rb', line 8531

class IntentDisambiguationSettings < Struct.new(
  :enabled,
  :max_disambiguation_intents,
  :custom_disambiguation_message)
  SENSITIVE = []
  include Aws::Structure
end

#enabledBoolean

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.

Returns:

  • (Boolean)


8531
8532
8533
8534
8535
8536
8537
# File 'gems/aws-sdk-lexmodelsv2/lib/aws-sdk-lexmodelsv2/types.rb', line 8531

class IntentDisambiguationSettings < Struct.new(
  :enabled,
  :max_disambiguation_intents,
  :custom_disambiguation_message)
  SENSITIVE = []
  include Aws::Structure
end

#max_disambiguation_intentsInteger

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.

Returns:

  • (Integer)


8531
8532
8533
8534
8535
8536
8537
# File 'gems/aws-sdk-lexmodelsv2/lib/aws-sdk-lexmodelsv2/types.rb', line 8531

class IntentDisambiguationSettings < Struct.new(
  :enabled,
  :max_disambiguation_intents,
  :custom_disambiguation_message)
  SENSITIVE = []
  include Aws::Structure
end