Accessing variables

Custom entities

To operate on variables, we must have access to them. We can do this in two ways.

  1. {nlu.variables.CAT} - we will receive the detected variable or null

  2. {nlu.variablesList.filter(el => el.name = "CAT")} - we will receive either "[]" or :

System entities

nlu.variablesList.filter(el=> el.entity = "sys.Settlement")