---
title: "POST /bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/generate"
method: POST
path: "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/generate"
---

# POST /bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/generate

`POST /bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/generate`

Generates sample utterances for an intent.

## Path parameters

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

## Request body

- object
  - `intentId` string, required — The intent unique Id for the bot request to generate utterances.

## Response `202`

Success

- GenerateBotElementResponse
  - `botId` string — The unique bot Id for the bot which received the response.
  - `botVersion` string — The unique bot version for the bot which received the response.
  - `localeId` string — The unique locale Id for the bot which received the response.
  - `intentId` string — The unique intent Id for the bot which received the response.
  - `sampleUtterances` SampleUtterance[] — The sample utterances for the bot which received the response.
    - `utterance` string, required — The sample utterance that Amazon Lex uses to build its machine-learning model to recognize intents.

## Other responses

- `480` — ThrottlingException
- `481` — ServiceQuotaExceededException
- `482` — ValidationException
- `483` — ResourceNotFoundException
- `484` — ConflictException
- `485` — PreconditionFailedException
- `486` — ConflictException
- `487` — 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)
