Conditions define tests that will either be true or false. You will find conditions in different parts of your skill:
There are two types of conditions group:
You can see in this example two groups:
data conditions are blocks that are evaluated and can be either true or false.
You can create
data conditions with:
In this example, we test:
sentimentanalyzed in the sentence is negativ
conversation memory, the value saved for
Inside your data conditions, you will find a list of operands.
@will get the associated intent (for example
#will get the associated entity (for example
#location), and will test the
_will get the associated field in the text analyze JSON or in the conversation state.
Note: You are able to write the entire
path if you need, like:
#location.lat(if you need the latitude) is the same as
Inside your data conditions, several operators are available:
Note: the regex syntax follows the Ruby regex syntax.