Skip to content

/AWS1/CL_LM2BOTLOCALEIMPSPEC

Provides the bot locale parameters required for importing a bot locale.

CONSTRUCTOR

IMPORTING

Required arguments:

iv_botid TYPE /AWS1/LM2ID /AWS1/LM2ID

The identifier of the bot to import the locale to.

iv_botversion TYPE /AWS1/LM2DRAFTBOTVERSION /AWS1/LM2DRAFTBOTVERSION

The version of the bot to import the locale to. This can only be the DRAFT version of the bot.

iv_localeid TYPE /AWS1/LM2LOCALEID /AWS1/LM2LOCALEID

The identifier of the language and locale that the bot will be used in. The string must match one of the supported locales. All of the intents, slot types, and slots used in the bot must have the same locale. For more information, see Supported languages.

Optional arguments:

iv_nluintentconfidencethresh TYPE /AWS1/RT_DOUBLE_AS_STRING /AWS1/RT_DOUBLE_AS_STRING

Determines the threshold where Amazon Lex will insert the AMAZON.FallbackIntent, AMAZON.KendraSearchIntent, or both when returning alternative intents. AMAZON.FallbackIntent and AMAZON.KendraSearchIntent are only inserted if they are configured for the bot.

For example, suppose a bot is configured with the confidence threshold of 0.80 and the AMAZON.FallbackIntent. Amazon Lex returns three alternative intents with the following confidence scores: IntentA (0.70), IntentB (0.60), IntentC (0.50). The response from the PostText operation would be:

  • AMAZON.FallbackIntent

  • IntentA

  • IntentB

  • IntentC

io_voicesettings TYPE REF TO /AWS1/CL_LM2VOICESETTINGS /AWS1/CL_LM2VOICESETTINGS

voiceSettings

io_speechrecognitionsettings TYPE REF TO /AWS1/CL_LM2SPEECHRECOGSTGS /AWS1/CL_LM2SPEECHRECOGSTGS

Speech-to-text settings to apply when importing the bot locale configuration.

iv_speechdetectsensitivity TYPE /AWS1/LM2SPEECHDETSENSITIVITY /AWS1/LM2SPEECHDETSENSITIVITY

The sensitivity level for voice activity detection (VAD) in the bot locale. This setting helps optimize speech recognition accuracy by adjusting how the system responds to background noise during voice interactions.

io_unifiedspeechsettings TYPE REF TO /AWS1/CL_LM2UNIFIEDSPEECHSTGS /AWS1/CL_LM2UNIFIEDSPEECHSTGS

Unified speech settings to apply when importing the bot locale configuration.


Queryable Attributes

botId

The identifier of the bot to import the locale to.

Accessible with the following methods

Method Description
GET_BOTID() Getter for BOTID, with configurable default
ASK_BOTID() Getter for BOTID w/ exceptions if field has no value
HAS_BOTID() Determine if BOTID has a value

botVersion

The version of the bot to import the locale to. This can only be the DRAFT version of the bot.

Accessible with the following methods

Method Description
GET_BOTVERSION() Getter for BOTVERSION, with configurable default
ASK_BOTVERSION() Getter for BOTVERSION w/ exceptions if field has no value
HAS_BOTVERSION() Determine if BOTVERSION has a value

localeId

The identifier of the language and locale that the bot will be used in. The string must match one of the supported locales. All of the intents, slot types, and slots used in the bot must have the same locale. For more information, see Supported languages.

Accessible with the following methods

Method Description
GET_LOCALEID() Getter for LOCALEID, with configurable default
ASK_LOCALEID() Getter for LOCALEID w/ exceptions if field has no value
HAS_LOCALEID() Determine if LOCALEID has a value

nluIntentConfidenceThreshold

Determines the threshold where Amazon Lex will insert the AMAZON.FallbackIntent, AMAZON.KendraSearchIntent, or both when returning alternative intents. AMAZON.FallbackIntent and AMAZON.KendraSearchIntent are only inserted if they are configured for the bot.

For example, suppose a bot is configured with the confidence threshold of 0.80 and the AMAZON.FallbackIntent. Amazon Lex returns three alternative intents with the following confidence scores: IntentA (0.70), IntentB (0.60), IntentC (0.50). The response from the PostText operation would be:

  • AMAZON.FallbackIntent

  • IntentA

  • IntentB

  • IntentC

Accessible with the following methods

Method Description
GET_NLUINTENTCONFIDENCETHRSH() Getter for NLUINTENTCONFIDENCETHRESHOLD, with configurable d
ASK_NLUINTENTCONFIDENCETHRSH() Getter for NLUINTENTCONFIDENCETHRESHOLD w/ exceptions if fie
STR_NLUINTENTCONFIDENCETHRSH() String format for NLUINTENTCONFIDENCETHRESHOLD, with configu
HAS_NLUINTENTCONFIDENCETHRSH() Determine if NLUINTENTCONFIDENCETHRESHOLD has a value

voiceSettings

voiceSettings

Accessible with the following methods

Method Description
GET_VOICESETTINGS() Getter for VOICESETTINGS

speechRecognitionSettings

Speech-to-text settings to apply when importing the bot locale configuration.

Accessible with the following methods

Method Description
GET_SPEECHRECOGSETTINGS() Getter for SPEECHRECOGNITIONSETTINGS

speechDetectionSensitivity

The sensitivity level for voice activity detection (VAD) in the bot locale. This setting helps optimize speech recognition accuracy by adjusting how the system responds to background noise during voice interactions.

Accessible with the following methods

Method Description
GET_SPEECHDETECTSENSITIVITY() Getter for SPEECHDETECTIONSENSITIVITY, with configurable def
ASK_SPEECHDETECTSENSITIVITY() Getter for SPEECHDETECTIONSENSITIVITY w/ exceptions if field
HAS_SPEECHDETECTSENSITIVITY() Determine if SPEECHDETECTIONSENSITIVITY has a value

unifiedSpeechSettings

Unified speech settings to apply when importing the bot locale configuration.

Accessible with the following methods

Method Description
GET_UNIFIEDSPEECHSETTINGS() Getter for UNIFIEDSPEECHSETTINGS