Levels of conditions
You can apply conditions at three levels:-
Step-Level Conditions
Define whether an individual step within a workflow should execute during a workflow run.
Example: Send an email only if the preceding in-app notification hasn’t been seen or read.
-
Channel-level conditions
Control execution of steps using a specific channel across all workflow runs.
Example: Trigger SendGrid email channel steps only in the production environment.
-
Preference-level conditions
Manage notification preferences available during a workflow run.
Example: Allow recipients to mute notifications for specific product resources.
Condition types
Novu’s shared conditions model supports the following types:- Data — Evaluates workflow trigger data payload properties.
- Subscriber — Evaluates properties of the workflow subscriber.
- Actor — Evaluates properties of the workflow Actor.
- Environment Variable — Evaluates custom environment variables.
- Workflow — Evaluates properties of the current workflow.
- Workflow run state — Evaluates runtime properties of the workflow.
- Tenant — Evaluates properties of the associated tenant.