---
title: "PUT /bots/{botId}/botversions/{botVersion}/botlocales/"
method: PUT
path: "/bots/{botId}/botversions/{botVersion}/botlocales/"
---

# PUT /bots/{botId}/botversions/{botVersion}/botlocales/

`PUT /bots/{botId}/botversions/{botVersion}/botlocales/`

Creates a locale in the bot. The locale contains the intents and slot types that the bot uses in conversations with users in the specified language and locale. You must add a locale to a bot before you can add intents and slot types to the bot.

## Path parameters

- `botId` string, required
- `botVersion` string, required

## Request body

- object
  - `localeId` string, required — 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 <a href="https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html">Supported languages</a>.
  - `description` string — A description of the bot locale. Use this to help identify the bot locale in lists.
  - `nluIntentConfidenceThreshold` number, double, required — <p>Determines the threshold where Amazon Lex will insert the <code>AMAZON.FallbackIntent</code>, <code>AMAZON.KendraSearchIntent</code>, or both when returning alternative intents. <code>AMAZON.FallbackIntent</code> and <code>AMAZON.KendraSearchIntent</code> are only inserted if they are configured for the bot.</p> <p>For example, suppose a bot is configured with the confidence threshold of 0.80 and the <code>AMAZON.FallbackIntent</code>. Amazon Lex returns three alternative intents with the following confidence scores: IntentA (0.70), IntentB (0.60), IntentC (0.50). The response from the <code>RecognizeText</code> operation would be:</p> <ul> <li> <p>AMAZON.FallbackIntent</p> </li> <li> <p>IntentA</p> </li> <li> <p>IntentB</p> </li> <li> <p>IntentC</p> </li> </ul>
  - `voiceSettings` object — <p>Defines settings for using an Amazon Polly voice to communicate with a user.</p> <p>Valid values include:</p> <ul> <li> <p> <code>standard</code> </p> </li> <li> <p> <code>neural</code> </p> </li> <li> <p> <code>long-form</code> </p> </li> <li> <p> <code>generative</code> </p> </li> </ul>
    - `engine` 'standard' | 'neural' | 'long-form' | 'generative' — <p>Indicates the type of Amazon Polly voice that Amazon Lex should use for voice interaction with the user. For more information, see the <a href="https://docs.aws.amazon.com/polly/latest/dg/API_SynthesizeSpeech.html#polly-SynthesizeSpeech-request-Engine"> <code>engine</code> parameter of the <code>SynthesizeSpeech</code> operation</a> in the <i>Amazon Polly developer guide</i>.</p> <p>If you do not specify a value, the default is <code>standard</code>.</p>
    - `voiceId` string — The identifier of the Amazon Polly voice to use.
  - `unifiedSpeechSettings` object — Unified configuration settings that combine speech recognition and synthesis capabilities.
    - `speechFoundationModel` object — The foundation model configuration to use for unified speech processing capabilities.
      - `modelArn` string, required — The Amazon Resource Name (ARN) of the foundation model used for speech processing.
      - `voiceId` string — The identifier of the voice to use for speech synthesis with the foundation model.
  - `audioFillerSettings` object — <p>Configuration that plays background filler audio during speech-to-speech interactions to mask processing delays and improve the perceived responsiveness of the bot.</p> <p>Audio filler requires <code>unifiedSpeechSettings</code> (speech-to-speech) to be enabled on the bot locale when <code>enabled</code> is <code>true</code>.</p>
    - `enabled` boolean — Specifies whether audio filler playback is enabled for the bot locale. Set to <code>true</code> to play filler audio while Amazon Lex processes a user utterance. Set to <code>false</code> to disable filler audio.
    - `audioType` 'MELODY_CHIPPER_CHIME' | 'MELODY_CURIOUS_CRAWL' | 'MELODY_RISING_RIPPLE' | 'MELODY_PATIENT_PING' | 'MELODY_PONDERING_PONG' | 'TYPING_KINETIC_KEYS' | 'TYPING_QUIET_QWERTY' — The identifier of the audio filler to play while Amazon Lex processes the user's input. This field is required when <code>enabled</code> is <code>true</code>.
    - `startDelayInMilliseconds` integer — The time, in milliseconds, to wait after the end of the user's utterance before starting audio filler playback. Valid range is <code>500</code> to <code>5000</code> milliseconds. If not specified, Amazon Lex uses a default of <code>2500</code> milliseconds.
    - `minimumPlayDurationInMilliseconds` integer — The minimum time, in milliseconds, that audio filler plays once it has started, even if the bot response becomes ready sooner. Valid range is <code>1000</code> to <code>5000</code> milliseconds. If not specified, Amazon Lex uses a default of <code>3000</code> milliseconds.
    - `responseDeliveryDelayInMilliseconds` integer — The silent delay, in milliseconds, inserted between the end of audio filler playback and the start of the bot's response. Valid range is <code>200</code> to <code>1000</code> milliseconds. If not specified, Amazon Lex uses a default of <code>500</code> milliseconds.
  - `speechRecognitionSettings` object — Settings that control how Amazon Lex processes and recognizes speech input from users.
    - `speechModelPreference` 'Standard' | 'Neural' | 'Deepgram' — The speech-to-text model to use.
    - `speechModelConfig` object — Configuration settings for the selected speech-to-text model.
      - `deepgramConfig` object — Configuration settings for using Deepgram as the speech-to-text provider.
        - `apiTokenSecretArn` string, required — The Amazon Resource Name (ARN) of the Secrets Manager secret that contains the Deepgram API token.
        - `modelId` string — The identifier of the Deepgram speech-to-text model to use for processing speech input.
  - `generativeAISettings` object — Contains specifications about the generative AI capabilities from Amazon Bedrock that you can turn on for your bot.
    - `runtimeSettings` RuntimeSettings — Contains specifications about the Amazon Lex runtime generative AI capabilities from Amazon Bedrock that you can turn on for your bot.
      - `slotResolutionImprovement` object — An object containing specifications for the assisted slot resolution feature.
        - `enabled` boolean, required — Specifies whether assisted slot resolution is turned on or off.
        - `bedrockModelSpecification` object — An object containing information about the Amazon Bedrock model used to assist slot resolution.
          - `modelArn` string, required — The ARN of the foundation model used in descriptive bot building.
          - `guardrail` object — The guardrail configuration in the Bedrock model specification details.
            - `identifier` string, required — The unique guardrail id for the Bedrock guardrail configuration.
            - `version` string, required — The guardrail version for the Bedrock guardrail configuration.
          - `traceStatus` 'ENABLED' | 'DISABLED' — The Bedrock trace status in the Bedrock model specification details.
          - `customPrompt` string — The custom prompt used in the Bedrock model specification details.
      - `nluImprovement` object — An object containing specifications for the Assisted NLU feature within the bot's runtime settings. These settings determine how the bot processes and interprets user utterances during conversations.
        - `enabled` boolean, required — Determines whether the Assisted NLU feature is enabled for the bot. When set to <code>true</code>, Amazon Lex uses advanced models to improve intent recognition and slot resolution, with the default being <code>false</code>.
        - `assistedNluMode` 'Primary' | 'Fallback' — Specifies the mode for Assisted NLU operation. Use <code>Primary</code> to make Assisted NLU the primary intent recognition method, or <code>Fallback</code> to use it only when standard NLU confidence is low.
        - `intentDisambiguationSettings` object — An object containing specifications for the Intent Disambiguation feature within the Assisted NLU settings. These settings determine how the bot handles ambiguous user inputs that could match multiple intents.
          - `enabled` boolean, required — Determines whether the Intent Disambiguation feature is enabled. When set to <code>true</code>, Amazon Lex will present disambiguation options to users when multiple intents could match their input, with the default being <code>false</code>.
          - `maxDisambiguationIntents` integer — 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.
          - `customDisambiguationMessage` string — 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.
    - `buildtimeSettings` BuildtimeSettings — Contains specifications about the Amazon Lex build time generative AI capabilities from Amazon Bedrock that you can turn on for your bot.
      - `descriptiveBotBuilder` object — An object containing specifications for the descriptive bot building feature.
        - `enabled` boolean, required — Specifies whether the descriptive bot building feature is activated or not.
        - `bedrockModelSpecification` object — An object containing information about the Amazon Bedrock model used to interpret the prompt used in descriptive bot building.
          - `modelArn` string, required — The ARN of the foundation model used in descriptive bot building.
          - `guardrail` object — The guardrail configuration in the Bedrock model specification details.
            - `identifier` string, required — The unique guardrail id for the Bedrock guardrail configuration.
            - `version` string, required — The guardrail version for the Bedrock guardrail configuration.
          - `traceStatus` 'ENABLED' | 'DISABLED' — The Bedrock trace status in the Bedrock model specification details.
          - `customPrompt` string — The custom prompt used in the Bedrock model specification details.
      - `sampleUtteranceGeneration` object — Contains specifications for the sample utterance generation feature.
        - `enabled` boolean, required — Specifies whether to enable sample utterance generation or not.
        - `bedrockModelSpecification` BedrockModelSpecification — Contains information about the Amazon Bedrock model used to interpret the prompt used in descriptive bot building.
          - `modelArn` string, required — The ARN of the foundation model used in descriptive bot building.
          - `guardrail` object — The guardrail configuration in the Bedrock model specification details.
            - `identifier` string, required — The unique guardrail id for the Bedrock guardrail configuration.
            - `version` string, required — The guardrail version for the Bedrock guardrail configuration.
          - `traceStatus` 'ENABLED' | 'DISABLED' — The Bedrock trace status in the Bedrock model specification details.
          - `customPrompt` string — The custom prompt used in the Bedrock model specification details.
  - `speechDetectionSensitivity` 'Default' | 'HighNoiseTolerance' | 'MaximumNoiseTolerance' — <p>Determines the sensitivity level for voice activity detection (VAD) in noisy environments. This setting helps optimize speech recognition accuracy by adjusting how the system responds to background noise.</p> <p>Valid values include:</p> <ul> <li> <p> <code>Default</code> - Standard sensitivity level suitable for most environments</p> </li> <li> <p> <code>HighNoiseTolerance</code> - Increased tolerance for moderate background noise</p> </li> <li> <p> <code>MaximumNoiseTolerance</code> - Maximum tolerance for high levels of background noise</p> </li> </ul>

## Response `202`

Success

- CreateBotLocaleResponse
  - `botId` string — The specified bot identifier.
  - `botVersion` string — The specified bot version.
  - `localeName` string — The specified locale name.
  - `localeId` string — The specified locale identifier.
  - `description` string — The specified description of the bot locale.
  - `nluIntentConfidenceThreshold` number, double — The specified confidence threshold for inserting the <code>AMAZON.FallbackIntent</code> and <code>AMAZON.KendraSearchIntent</code> intents.
  - `voiceSettings` object — The Amazon Polly voice ID that Amazon Lex uses for voice interaction with the user.
    - `engine` 'standard' | 'neural' | 'long-form' | 'generative' — <p>Indicates the type of Amazon Polly voice that Amazon Lex should use for voice interaction with the user. For more information, see the <a href="https://docs.aws.amazon.com/polly/latest/dg/API_SynthesizeSpeech.html#polly-SynthesizeSpeech-request-Engine"> <code>engine</code> parameter of the <code>SynthesizeSpeech</code> operation</a> in the <i>Amazon Polly developer guide</i>.</p> <p>If you do not specify a value, the default is <code>standard</code>.</p>
    - `voiceId` string, required — The identifier of the Amazon Polly voice to use.
  - `unifiedSpeechSettings` object — The unified speech settings configured for the created bot locale.
    - `speechFoundationModel` object, required — The foundation model configuration to use for unified speech processing capabilities.
      - `modelArn` string, required — The Amazon Resource Name (ARN) of the foundation model used for speech processing.
      - `voiceId` string — The identifier of the voice to use for speech synthesis with the foundation model.
  - `audioFillerSettings` object — The audio filler settings configured for the created bot locale.
    - `enabled` boolean — Specifies whether audio filler playback is enabled for the bot locale. Set to <code>true</code> to play filler audio while Amazon Lex processes a user utterance. Set to <code>false</code> to disable filler audio.
    - `audioType` 'MELODY_CHIPPER_CHIME' | 'MELODY_CURIOUS_CRAWL' | 'MELODY_RISING_RIPPLE' | 'MELODY_PATIENT_PING' | 'MELODY_PONDERING_PONG' | 'TYPING_KINETIC_KEYS' | 'TYPING_QUIET_QWERTY' — The identifier of the audio filler to play while Amazon Lex processes the user's input. This field is required when <code>enabled</code> is <code>true</code>.
    - `startDelayInMilliseconds` integer — The time, in milliseconds, to wait after the end of the user's utterance before starting audio filler playback. Valid range is <code>500</code> to <code>5000</code> milliseconds. If not specified, Amazon Lex uses a default of <code>2500</code> milliseconds.
    - `minimumPlayDurationInMilliseconds` integer — The minimum time, in milliseconds, that audio filler plays once it has started, even if the bot response becomes ready sooner. Valid range is <code>1000</code> to <code>5000</code> milliseconds. If not specified, Amazon Lex uses a default of <code>3000</code> milliseconds.
    - `responseDeliveryDelayInMilliseconds` integer — The silent delay, in milliseconds, inserted between the end of audio filler playback and the start of the bot's response. Valid range is <code>200</code> to <code>1000</code> milliseconds. If not specified, Amazon Lex uses a default of <code>500</code> milliseconds.
  - `speechRecognitionSettings` object — The speech-to-text settings configured for the created bot locale.
    - `speechModelPreference` 'Standard' | 'Neural' | 'Deepgram' — The speech-to-text model to use.
    - `speechModelConfig` object — Configuration settings for the selected speech-to-text model.
      - `deepgramConfig` object — Configuration settings for using Deepgram as the speech-to-text provider.
        - `apiTokenSecretArn` string, required — The Amazon Resource Name (ARN) of the Secrets Manager secret that contains the Deepgram API token.
        - `modelId` string — The identifier of the Deepgram speech-to-text model to use for processing speech input.
  - `botLocaleStatus` 'Creating' | 'Building' | 'Built' | 'ReadyExpressTesting' | 'Failed' | 'Deleting' | 'NotBuilt' | 'Importing' | 'Processing' — <p>The status of the bot.</p> <p>When the status is <code>Creating</code> the bot locale is being configured. When the status is <code>Building</code> Amazon Lex is building the bot for testing and use.</p> <p>If the status of the bot is <code>ReadyExpressTesting</code>, you can test the bot using the exact utterances specified in the bots' intents. When the bot is ready for full testing or to run, the status is <code>Built</code>.</p> <p>If there was a problem with building the bot, the status is <code>Failed</code>. If the bot was saved but not built, the status is <code>NotBuilt</code>.</p>
  - `creationDateTime` string, date-time — A timestamp specifying the date and time that the bot locale was created.
  - `generativeAISettings` GenerativeAISettings — Contains specifications about the generative AI capabilities from Amazon Bedrock that you can turn on for your bot.
    - `runtimeSettings` RuntimeSettings — Contains specifications about the Amazon Lex runtime generative AI capabilities from Amazon Bedrock that you can turn on for your bot.
      - `slotResolutionImprovement` object — An object containing specifications for the assisted slot resolution feature.
        - `enabled` boolean, required — Specifies whether assisted slot resolution is turned on or off.
        - `bedrockModelSpecification` object — An object containing information about the Amazon Bedrock model used to assist slot resolution.
          - `modelArn` string, required — The ARN of the foundation model used in descriptive bot building.
          - `guardrail` object — The guardrail configuration in the Bedrock model specification details.
            - `identifier` string, required — The unique guardrail id for the Bedrock guardrail configuration.
            - `version` string, required — The guardrail version for the Bedrock guardrail configuration.
          - `traceStatus` 'ENABLED' | 'DISABLED' — The Bedrock trace status in the Bedrock model specification details.
          - `customPrompt` string — The custom prompt used in the Bedrock model specification details.
      - `nluImprovement` object — An object containing specifications for the Assisted NLU feature within the bot's runtime settings. These settings determine how the bot processes and interprets user utterances during conversations.
        - `enabled` boolean, required — Determines whether the Assisted NLU feature is enabled for the bot. When set to <code>true</code>, Amazon Lex uses advanced models to improve intent recognition and slot resolution, with the default being <code>false</code>.
        - `assistedNluMode` 'Primary' | 'Fallback' — Specifies the mode for Assisted NLU operation. Use <code>Primary</code> to make Assisted NLU the primary intent recognition method, or <code>Fallback</code> to use it only when standard NLU confidence is low.
        - `intentDisambiguationSettings` object — An object containing specifications for the Intent Disambiguation feature within the Assisted NLU settings. These settings determine how the bot handles ambiguous user inputs that could match multiple intents.
          - `enabled` boolean, required — Determines whether the Intent Disambiguation feature is enabled. When set to <code>true</code>, Amazon Lex will present disambiguation options to users when multiple intents could match their input, with the default being <code>false</code>.
          - `maxDisambiguationIntents` integer — 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.
          - `customDisambiguationMessage` string — 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.
    - `buildtimeSettings` BuildtimeSettings — Contains specifications about the Amazon Lex build time generative AI capabilities from Amazon Bedrock that you can turn on for your bot.
      - `descriptiveBotBuilder` object — An object containing specifications for the descriptive bot building feature.
        - `enabled` boolean, required — Specifies whether the descriptive bot building feature is activated or not.
        - `bedrockModelSpecification` object — An object containing information about the Amazon Bedrock model used to interpret the prompt used in descriptive bot building.
          - `modelArn` string, required — The ARN of the foundation model used in descriptive bot building.
          - `guardrail` object — The guardrail configuration in the Bedrock model specification details.
            - `identifier` string, required — The unique guardrail id for the Bedrock guardrail configuration.
            - `version` string, required — The guardrail version for the Bedrock guardrail configuration.
          - `traceStatus` 'ENABLED' | 'DISABLED' — The Bedrock trace status in the Bedrock model specification details.
          - `customPrompt` string — The custom prompt used in the Bedrock model specification details.
      - `sampleUtteranceGeneration` object — Contains specifications for the sample utterance generation feature.
        - `enabled` boolean, required — Specifies whether to enable sample utterance generation or not.
        - `bedrockModelSpecification` BedrockModelSpecification — Contains information about the Amazon Bedrock model used to interpret the prompt used in descriptive bot building.
          - `modelArn` string, required — The ARN of the foundation model used in descriptive bot building.
          - `guardrail` object — The guardrail configuration in the Bedrock model specification details.
            - `identifier` string, required — The unique guardrail id for the Bedrock guardrail configuration.
            - `version` string, required — The guardrail version for the Bedrock guardrail configuration.
          - `traceStatus` 'ENABLED' | 'DISABLED' — The Bedrock trace status in the Bedrock model specification details.
          - `customPrompt` string — The custom prompt used in the Bedrock model specification details.
  - `speechDetectionSensitivity` 'Default' | 'HighNoiseTolerance' | 'MaximumNoiseTolerance' — The sensitivity level for voice activity detection (VAD) that was specified for the bot locale.

## Other responses

- `480` — ThrottlingException
- `481` — ServiceQuotaExceededException
- `482` — ValidationException
- `483` — PreconditionFailedException
- `484` — ConflictException
- `485` — InternalServerException

---

[API](https://skmtc.net/aws/apis/lexv2-models.md) · [All operations](https://skmtc.net/aws/apis/lexv2-models/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/lexv2-models/versions/6997ba482d72/schema)
