Create a workflow

Learn how to create and configure a workflow to control how and when customers receive notifications. This guide walks you through setting up triggers, conditions and actions.

Create and set up a workflow

1

Create a workflow

In the XFlow dashboard, go to the Workflow section and click Create workflow to start a new workflow.

2

Define workflow name and trigger

Enter a name and select a workflow trigger (Product restock or New subscribe) to set up your new workflow.

3

Start creating a workflow

Click theicon to add a condition or action, and build your workflow according to your needs.

Hover over the block to change or delete the workflow block.

Click the block and select 'Edit description' to add a custom description for your workflow block.

For a workflow condition, you can choose either the True or False branch to continue building the next actions.

4

Set up your workflow

Select an available action or condition according to your needs to define what happens in your workflow.

5

Run your workflow

Click Save and Turn on workflow to run the workflow you just created.

6

Your workflow has been activated!

You can check again in the Workflow dashboard; the Active button is now turned green, indicating that the workflow is enabled.

Manage workflow triggers

Manage workflow conditions

  • Select variable: Choose the customer attribute you want to evaluate.

  • Operator: Pick the comparison rule (Equal to, Not equal to, Greater than, Less than, Greater than or equal to, Less than or equal to).

  • Compare value: Enter the value you want to compare against the selected variable.

  • AND / OR: Combine multiple criteria to create more advanced conditions—use AND when all conditions must be true, or OR when any single condition can trigger the branch.

  • Add criteria: Click Add criteria to include additional conditions as needed.

Manage workflow actions

  • Tags: Enter the tags you want to use to categorize the customer, separated by commas.

Workflow examples

Example 1: Simple restock notification

Trigger: Product Restocked
→ Action: Send Email (Restock notification)
→ Wait: 48 hours
→ Condition: Customer has not purchased
→ Action: Send Follow-up Email (Reminder)

Example 2: VIP early access

Trigger: Product Restocked
→ Condition: Customer Total Spent > $500
  → YES: Action: Create Discount Code (15% off)
  → YES: Action: Send Email (VIP early access)
  → YES: Wait: 2 hours
→ Condition: Customer Total Spent < $500
  → YES: Action: Send Email (Standard notification)

Example 3: Engagement-based follow-up

Trigger: Product Restocked
→ Action: Send Email (Initial notification)
→ Wait: 24 hours
→ Condition: Email Opened = False
  → YES: Action: Send Email (Re-engagement with subject line test)
→ Condition: Email Clicked = True
  → YES: Action: Create Draft Order (with discount)
  → YES: Action: Add Customer Tag ("High-Intent")
How workflows workManage workflowsCampaigns

Last updated