Slots: Values

Easily learn how to create slot values and synonyms in NLX's Dialog Studio

What's the Values tab?

Values holds all the data and functionality for your slot’s values. Slot values are key to creating meaningful and effective conversations and therefore are highly customizable in Dialog Studio.

To reference your slot's values in an intent's flow or training phrases, be sure to attach it to the intent.


Access

To access this feature, click the Values tab of your slot:


Add values

  • Click + Add new value > enter slot value

  • Click + Add new value or use the Shift + Enter to create a new field. Repeat as needed

  • To remove a value from the list, select the remove icon

Avoid using special characters, keep values under 100 characters, and refrain from closely-named values (value 1 = Yes, value 2 = Yes, please).


Add synonyms

Synonyms allow you to add alternate terms to a value that users are likely to provide when making a choice (e.g., a user may provide Sure or OK instead of Yes). In these cases, synonyms can be added to expand the scope of responses that trigger the same value:

  • Expand a value > select +Add synonym

  • Enter a synonym for the value. Repeat to enter as many synonyms for the value as needed


System slots

For commonly used slot values or values that are large in range, Dialog Studio provides system slot types you can choose when attaching a slot to an intent:

System slot typeUse

NLX.Country

When the user input will be any country.

NLX.Date

When the user input will use words to represent a date. Converts words to standard ISO-8601 format. Recognizes words such as "now" or "today" to mean the complete date of the current day. Input such as "this week" or "next week" will map to the first day of the week. ISO-8601 format begins its week on Monday and ends on Sunday. Input such as "next month" maps to the last day of the following month.

NLX.Duration

When the user input will use words to represent duration. Converts words to standard format.

NLX.Email

When the user input will use words and characters to represent an email address. Supports additional characters such as underscores, hyphens, periods, and plus signs.

NLX.FirstName

When the user input will use a word to represent a first name.

NLX.LastName

When the user input will use a word to represent a last name.

NLX.Number

When the user input will use numeric words. Converts words to digits.

NLX.Ordinal

When the user input will use ordinal words (e.g., first or 1st) to represent ordinal position.

NLX.AlphaNumeric

When the user input will be a combination of letters and numbers.

NLX.Person

When the user input will use a word to represent a name. Works similarly to NLX.FirstName

NLX.PhoneNumber

When the user input will use numeric words to represent a phone number. Converts them to a numeric string.

NLX.Text

When the user input will consist of any words or characters.

NLX.Time

When the user input will use words to represent time. Converts them to standard time format.

NLX.Url

When the user input will use words to represent a URL. Converts them to standard URL format.

NLX.City

When the user input will be any global city.

NLX.USCity

When the user input will be a United States city.

NLX.USState

When the user input will be a United States state.


Upload/download Values

  • Upload: allows for a JSON file to be ingested with slot values

  • Download: triggers existing slot values to be downloaded to a JSON file for editing. Filename format: <SlotName>-Values.json

Last updated