Adding values

Easily learn how to create custom slot values and synonyms in your NLX workspace

What's the Values tab?

Values holds all the data and functionality for your custom slot’s values.

To reference your custom slot's values in a flow or in training data, be sure to attach it within the flow's Settings.


Add custom slot values

After creating a new custom slot:

  • Click + Add new value > Enter custom slot value

  • Click + Add new value or use SHIFT + ENTER to create a new field. Repeat as needed

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

Optional (expand a value to view):

  • Skip translation: Enable to prevent the value from being automatically translated when a language is assigned to the slot

  • Value ID: A unique and non-editable ID that is auto-generated when the slot is saved

  • Choice payload: Allows you to display a custom payload when the value is presented as a selection to users. You may also apply Context variables that have been previously set in the flow by invoking the placeholder menu with an open curly brace { while in the Choice payload field. They can also be useful to sort values within your application. For example, you could add isLastValue to the choice payload field of the custom slot value:

Choice payload field of a custom slot value

Add custom slot synonyms

Synonyms allow you to add alternate terms to a custom slot value that users are likely to provide when making a choice (e.g., a user may respond with Sure or OK instead of Yes). In these cases, synonyms can be added to expand the scope of responses that capture 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


Upload/download slot values

  • Upload: Allows for a JSON, CSV, or TXT file to be ingested with slot values

  • Download: Prompts existing training phrase data to be downloaded to a CSV or JSON file for editing. Click the CSV/JSON button beside the Download link to swap formats

Last updated