WorkflowsUnderstanding workflow conditions
Workflow condition: Customer criteria
12 min read

Before you begin
- New to workflows? Take a quick look atHow workflows work andUnderstanding workflow conditions to get up to speed.
- You can also check out the Workflow condition: An event occurred to unlock more flexible workflow paths.
Description
- Add criteria and choose AND / OR logic.
- Select a variable that matches your needs (you can edit or remove it anytime).
- Set the operator and value to define the condition.
- Add more criteria if you need multiple conditions.
Available customer data fields
_gR3HxIpu.jpg)
| Field | Data Type | Description |
|---|---|---|
Order countcustomer.numberOfOrders | Number | Total number of orders placed |
Total spentcustomer.amountSpent.amount | Number | The total amount a customer has spent on orders in their lifetime. |
Signed up datecustomer.signUpDate | Date | When customer signed up for notification |
Last order datecustomer.lastOrder.createdAt | Date | Date of most recent order |
Customer tagscustomer.tags | Text/Array | Tags assigned to customer |
Accepts marketingcustomer.acceptsMarketing | Boolean (True/False) | Email marketing opt-in status |
You can combine these fields with operators and AND/OR logic to:
- Segment customers
- Personalize workflow paths
- Send different messages based on customer behavior or profile data
- Order count: Target customers who have placed at least 3 orders.
- Total spent: Target customers who have spent more than $500 in total.
- Signed up date: Target customers who signed up before Jan 1, 2024
- Last order date: Target customers whose most recent order was more than 90 days ago.
- Customer tags: Target customers who are tagged as VIP.
- Accepts marketing: Target customers who have opted in to email marketing.
Available operators
Combining multiple criteria with AND/OR logic in a condition
AND - If all criteria are met
Example:
_939oP6yK.jpg)
OR - If any criteria are met
Example:
_WSqZJcrF.jpg)
Example of workflow condition: Customer criteria
Example 1: Customer criteria - Order count
→ Action: Send email (sends a loyalty program welcome email to the customer)
🔗 Learn more: Loyalty program enrollment
🔗 Learn more: Loyalty program enrollment

Example 2: Customer criteria - Total spent
If False
→ Action: Send email (Send standard back-in-stock notification)
🔗 Learn more: Back in stock with tiered response
→ Action: Send email (Send standard back-in-stock notification)
🔗 Learn more: Back in stock with tiered response

Example 3: Customer criteria - Signed up date
_s6DzYFSj.jpg)
Example 4: Customer criteria - Last order date
_OCD2x24s.jpg)
Example 5: Customer criteria - Customer tags
_Vw6sPepF.jpg)
Example 6: Customer criteria - Accepts marketing
_j44m4Sld.jpg)
Best practices
- Start with the most important condition first: Place high-impact or broad conditions at the top to reduce unnecessary checks later in the workflow.
- Choose AND vs OR carefully:
- Use AND for precise targeting when all conditions must be met.
- Use OR for broader targeting when any condition can qualify.
- Keep conditions simple and readable: Avoid adding too many criteria in a single condition. If logic becomes complex, consider splitting it into multiple conditions.
- Use clear, meaningful values: Choose thresholds that make sense (for example: order count ≥ 1).
- Plan for the False branch: Decide what should happen when conditions are not met.
- Avoid overlapping criteria: Ensure conditions do not unintentionally target the same customers across branches.
- Test with real scenarios: Validate your conditions using example customers to ensure the logic behaves as expected.
Related articles
Available triggers, actions, and conditions
Get started with workflow templates library
Create a workflow
Last updated