Interface IntentDisambiguationSettings.Builder

  • Method Details

    • enabled

      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.

      Parameters:
      enabled - 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:
      Returns a reference to this object so that method calls can be chained together.
    • maxDisambiguationIntents

      IntentDisambiguationSettings.Builder maxDisambiguationIntents(Integer maxDisambiguationIntents)

      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.

      Parameters:
      maxDisambiguationIntents - 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:
      Returns a reference to this object so that method calls can be chained together.
    • customDisambiguationMessage

      IntentDisambiguationSettings.Builder customDisambiguationMessage(String customDisambiguationMessage)

      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.

      Parameters:
      customDisambiguationMessage - 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:
      Returns a reference to this object so that method calls can be chained together.