Author a rule
Beta. The request and response shapes may still change.
Author a rule: a name and a condition over the signals Prelude resolves for an evaluation. The expression is compiled before it is stored, so a rule that cannot compile is refused here rather than failing silently at evaluation time.
A rule on its own scores nothing. Add it to a recipe, with a weight, for it to take part in an evaluation.
attr. and param. namespaces. The Prelude signal vocabulary is not published yet - contact us for the names available to your rules.
A rule on its own scores nothing
Creating a rule does not put it into service. It takes part in an evaluation once a recipe associates it and gives it a weight, and that recipe is referenced by a flow.Rules bound to a recipe
An expression referencingattr.plan_tier or param.blocked_countries compiles here against those names declared as strings, which is how a recipe would declare them - string is the only type either supports. What is not checked here is whether any recipe declares them at all: that is the recipe’s check, since it is the recipe that declares them.
So a rule reading attr. or param. names is usable only by recipes declaring them. Adding it to one that doesn’t is refused at recipe save time, against that rule’s entry.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
A label for the rule. It is returned in evaluation results, so make it say what the rule looks for.
128"free_plan_signup"
The condition, written in CEL. It must evaluate to a boolean, and it is compiled before it is stored: an expression that does not compile is refused.
It may reference the signals Prelude resolves for an evaluation, a recipe's request attributes as attr.<key>, and a recipe's configured values as param.<key>. A rule that references either namespace is bound to the recipes declaring those names, and can only be used by them. See Rules, recipes and flows; the signal vocabulary is not published yet, so contact us for the names available to your rules.
"attr.plan_tier == \"free\""
Response
Created
The rule identifier. Reference it in a recipe's rules to score over it.
"rul_01jc0t6fwwfgfsq1md24mhyztj"
"free_plan_signup"
"attr.plan_tier == \"free\""
Always CUSTOM. A rule you author is your own; Prelude's are a separate, read-only listing.
CUSTOM