Rule Set
Rules belong to a set which has the following properties:op—andorordetermines whether all rules in set must pass or just onerules— the array of Rules and/or Rule Sets to evaluate
Rules
Each element of therules array can be a Rule or another Rule Set.
Rules have the following properties:
lhv— left hand value is a key to look up a value from the lead data contextop— operator Name of the operatorrhv— right hand value (omit for unary operators likeis blank)rule_set— optional rule set to be ANDed with the rule
Variables
When rules are processed thelhv will be resolved to a value using the data in the variables found under that key. For example, if the lhv
is “lead.first_name” and the variables are { "lead": { "first_name": "Bob" } }, then the resolved lhv will be “Bob”.
Templating
Thelhv and rhv of each rule supports templating. The variables are used to evaluate the template.