Creating Custom Slot Types on Amazon Lex
For each intent, you can specify parameters (or slots) that indicate the information that the intent needs to fulfill the user's request. Slots have a type. A slot type is a list of values that Amazon Lex uses to train the machine learning model to recognize values for a slot. You can also define a synonym for a slot type value.
You can configure the slot type to restrict resolution to the slot values (and synonyms). In this case, the slot values are used as an enumeration and the value entered by the user is resolved to the slot value only if it is the same as one of the slot values or a synonym.
Alternately, you can configure the slot type to expand the values. Slot values will be used as training data and the slot is resolved to the value provided by the user if it is similar to the slot values and synonyms. This is the default behavior.
To configure custom slot types on Amazon Lex:
|
1.
|
Sign in to the AWS Management Console and open the Amazon Lex console. |
|
3.
|
Click + next to Slot types. |
|
4.
|
Enter a Slot type name and Description. |
|
5.
|
Select whether to Expand values or Restrict to Slot values and Synonyms. |
|
6.
|
Enter the a slot value and synonym and then click the plus sign (+). |
|
7.
|
Repeat for each of the values. |