Skip to content

/AWS1/CL_LM2=>CREATESLOTTYPE()

About CreateSlotType

Creates a custom slot type

To create a custom slot type, specify a name for the slot type and a set of enumeration values, the values that a slot of this type can assume.

Method Signature

IMPORTING

Required arguments:

IV_SLOTTYPENAME TYPE /AWS1/LM2NAME /AWS1/LM2NAME

The name for the slot. A slot type name must be unique within the intent.

IV_BOTID TYPE /AWS1/LM2ID /AWS1/LM2ID

The identifier of the bot associated with this slot type.

IV_BOTVERSION TYPE /AWS1/LM2DRAFTBOTVERSION /AWS1/LM2DRAFTBOTVERSION

The identifier of the bot version associated with this slot type.

IV_LOCALEID TYPE /AWS1/LM2LOCALEID /AWS1/LM2LOCALEID

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

Optional arguments:

IV_DESCRIPTION TYPE /AWS1/LM2DESCRIPTION /AWS1/LM2DESCRIPTION

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

IT_SLOTTYPEVALUES TYPE /AWS1/CL_LM2SLOTTYPEVALUE=>TT_SLOTTYPEVALUES TT_SLOTTYPEVALUES

A list of SlotTypeValue objects that defines the values that the slot type can take. Each value can have a list of synonyms, additional values that help train the machine learning model about the values that it resolves for a slot.

IO_VALUESELECTIONSETTING TYPE REF TO /AWS1/CL_LM2SLOTVALSELIONSET00 /AWS1/CL_LM2SLOTVALSELIONSET00

Determines the strategy that Amazon Lex uses to select a value from the list of possible values. The field can be set to one of the following values:

  • ORIGINAL_VALUE - Returns the value entered by the user, if the user value is similar to the slot value.

  • TOP_RESOLUTION - If there is a resolution list for the slot, return the first value in the resolution list. If there is no resolution list, return null.

If you don't specify the valueSelectionSetting parameter, the default is ORIGINAL_VALUE.

IV_PARENTSLOTTYPESIGNATURE TYPE /AWS1/LM2SLOTTYPESIGNATURE /AWS1/LM2SLOTTYPESIGNATURE

The built-in slot type used as a parent of this slot type. When you define a parent slot type, the new slot type has the configuration of the parent slot type.

Only AMAZON.AlphaNumeric is supported.

IO_EXTERNALSOURCESETTING TYPE REF TO /AWS1/CL_LM2EXTERNALSRCSETTING /AWS1/CL_LM2EXTERNALSRCSETTING

Sets the type of external information used to create the slot type.

IO_COMPOSITESLOTTYPESETTING TYPE REF TO /AWS1/CL_LM2COMPOSITESLOTTYP00 /AWS1/CL_LM2COMPOSITESLOTTYP00

Specifications for a composite slot type.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_LM2CREATESLOTTYPERSP /AWS1/CL_LM2CREATESLOTTYPERSP