Accessing variables
Custom entities
To operate on variables, we must have access to them. We can do this in two ways.
-
{nlu.variables.CAT} - we will receive the detected variable or null
-
{nlu.variablesList.filter(el => el.name = "CAT")} - we will receive either "[]" or :
System entities
nlu.variablesList.filter(el=> el.entity = "sys.Settlement")
Updated 6 months ago