Step conditions let you control whether a workflow step runs or is skipped. They allow you to build adaptive notification flows that respond to subscriber attributes, payload schema data, and outcomes from previous steps.
Conditions are configured per step and apply to both channel steps and action steps.
Add step conditions#
You configure step conditions from the Workflow Editor.
- Select a step in the Workflow Editor.
- In the Configure step panel, click Step Conditions.

- Proceed to add your step conditions.
If the condition evaluates to true, the step runs. If it evaluates to false, the step is skipped and the workflow continues.
Integration conditions are a separate control. They choose which provider integration sends the message after the step runs. See Integration conditions.
How the condition builder works#
The step condition builder is rule-based and composed of three core elements:
- Logical operators: Choose AND or OR to define how conditions are evaluated.
- Conditions: Individual rules that compare a field, an operator, and a value.
- Condition groups: Nested groups that allow more complex logic.
In the UI, you’ll see:
- AND / OR selector buttons
- + Add condition to add a rule
- Add group to create nested condition groups
This structure allows you to model both simple checks and complex branching logic.
Supported operators#
The condition builder supports a wide range of comparison operators:
| Operator | Description | Example |
|---|---|---|
= | Equal to | subscriber.locale = "en-US" |
!= | Not equal to | subscriber.isOnline != true |
is empty | Is an empty string | payload.marketingName is empty |
is not empty | Is a non-empty string | payload.marketingName is not empty |
< | Less than | payload.totalAmount < 100 |
> | Greater than | payload.totalAmount > 100 |
<= | Less than or equal to | payload.totalAmount <= 200 |
>= | Greater than or equal to | payload.totalAmount >= 200 |
contains | Contains a substring | payload.orderId contains "123" |
begins with | Starts with | subscriber.firstName begins with "J" |
ends with | Ends with | subscriber.email ends with "@xyz.com" |
does not contain | Does not contain a substring | payload.orderId does not contain "456" |
does not begin with | Does not start with | subscriber.firstName does not begin with "M" |
does not end with | Does not end with | subscriber.lastName does not end with "Smith" |
is null | Is null | subscriber.phone is null |
is not null | Is not null | subscriber.email is not null |
in | Matches one of several values | subscriber.locale in ["en-US", "es-ES"] |
not in | Does not match any of the listed values | subscriber.locale not in ["fr-FR", "de-DE"] |
between | Within a range | payload.totalAmount between [50, 200] |
not between | Outside of a range | payload.totalAmount not between [0, 50] |
is empty and is not empty are available only for string fields. They check the exact string value, so
whitespace-only strings are considered non-empty. Missing fields, null, arrays, objects, numbers, and booleans do
not match either operator.
Existing step conditions are unchanged. Saved equals, is null, and other operators keep the same result until
you add an is empty or is not empty rule.
Array and collection conditions#
When a field is an array of objects — for example, the events collected by a Digest step — you can evaluate a rule against the items inside that array instead of comparing the field as a whole.
First, choose how many items must match:
| Operator | Matches when |
|---|---|
any item | At least one item in the array matches the rule |
every item | Every item in the array matches the rule, and the array contains at least one item |
no item | No item in the array matches the rule |
Then define the rule that each item is tested against:
- Item property: the path to a property on each array item. It is resolved relative to the item, not the root data (for example,
payload.status). - Comparison:
has value,equals,does not equal,less than,less than or equal to,greater than, orgreater than or equal to.has valueneeds no comparison value. A property set tofalse,0, or""does not match, even when that property is present. - Value: the value to compare the item property against. Not required for
has value.
For example, to run a step only when at least one digested event was already read, add a condition on steps.<digest-step-id>.events with the any item operator, where the item property payload.status equals read.
Data used for step conditions#
Step conditions can evaluate data from several sources. Choose the source that best represents the decision you’re trying to make.
Subscriber data#
You can apply conditions on subscriber attributes so notifications only go to the right people. For example, send an SMS only when subscriber.isOnline is false (isOnline is a subscriber attribute that comes from whether the subscriber has an active Inbox session).
For custom fields you store on the subscriber (e.g. plan, preferences), use the full path to the property. For example, use subscriber.data.subscription_plan equals premium to run a step only for subscribers on the premium plan.
Custom properties under subscriber.data.* do not have a declared schema. The condition builder therefore treats
them as strings, even when a subscriber profile currently stores a number or boolean. Numeric operators such as
<, >, between, and not between are not available for these properties.
When you need typed comparisons, include the value in the workflow payload, declare its number or boolean type in
the payload schema, and create the condition against that
payload.* field.
To learn more about Subscribers model, refer to the Subscribers documentation
Payload data#
You can use data from the payload schema or custom payload data passed during the workflow trigger call to the Novu API to configure step conditions. This allows you to define dynamic rules based on the data unique to each workflow execution.
Example payload data:
You can configure conditions such as:
payload.orderStatus = "completed"payload.totalAmount > 100
Workflow variables#
You can base conditions on workflow variables. These variables provide metadata about the workflow being executed and allow you to add conditional logic.

The following workflow variables are available:
{{workflow.name}}: The name of the workflow.{{workflow.description}}: The description of the workflow.{{workflow.tags}}: An array of tags associated with the workflow.{{workflow.severity}}: The severity level (high, medium, low, none) of the workflow.{{workflow.workflowId}}: The unique identifier of the workflow.
Previous step result#
For workflows involving sequential steps, conditions can also depend on the outcome of a previous step. If the prior step was an in-app notification, the condition can check:
steps.<in-app-step-id>.seensteps.<in-app-step-id>.readsteps.<in-app-step-id>.lastSeenDatesteps.<in-app-step-id>.lastReadDate
The step id is the identifier of that in-app step.
Skip the email when the in-app notification was read#
You can skip the email if the in-app notification was read:
- Add an In-App step, then a Delay, then an Email step.
- On the Email step, open Step conditions.
- Require
steps.<in-app-step-id>.readto be false.
A common follow-up waits 24 hours on the Delay step, then sends the email only when the in-app message is still unread. If the condition does not match, the Activity Feed marks the email step Skipped and records that it was skipped by conditions. Novu continues with any step after that email step.
Context#
You can use context variables in the Step conditions tab of a workflow step to add conditional logic to your notifications.
To learn more about context, refer to the Context documentation.
Dynamic data fields#
The value field in a condition can also be a dynamic data field. This allows you to compare two data points dynamically rather than using static values.
For example:
In this case, the step will execute only if payload.foo is equal to payload.bar at runtime. This enables flexible condition logic based on real-time data comparisons.
Advanced application state calculations
For more complex scenarios where you need to perform advanced calculations based on your application state, you can use the Novu Framework.