v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1471501483.8 KB

Creates a slot in an intent. A slot is a variable needed to fulfill an intent. For example, an <code>OrderPizza</code> intent might need slots for size, crust, and number of pizzas. For each slot, you define one or more utterances that Amazon Lex uses to elicit a response from the user.

put/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/intents/{intentId}/slots/

Path parameters

botIdstring required

The identifier of the bot associated with the slot.

botVersionstring required

The version of the bot associated with the slot.

localeIdstring required

The identifier of the language and locale that the slot will be used in. The string must match one of the supported locales. All of the bots, intents, slot types used by the slot 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>.

intentIdstring required

The identifier of the intent that contains the slot.

Request body

slotNamestring required

The name of the slot. Slot names must be unique within the bot that contains the slot.

descriptionstring

A description of the slot. Use this to help identify the slot in lists.

slotTypeIdstring

The unique identifier for the slot type associated with this slot. The slot type determines the values that can be entered into the slot.

Response

Success

slotIdstring

The unique identifier associated with the slot. Use this to identify the slot when you update or delete it.

slotNamestring

The name specified for the slot.

descriptionstring

The description associated with the slot.

slotTypeIdstring

The unique identifier of the slot type associated with this slot.

botIdstring

The unique identifier of the bot associated with the slot.

botVersionstring

The version of the bot associated with the slot.

localeIdstring

The language and local specified for the slot.

intentIdstring

The unique identifier of the intent associated with the slot.

creationDateTimestring date-time

The timestamp of the date and time that the slot was created.