Understanding workflow triggers

Learn the basics of workflow triggers

What are triggers

Triggers define when a workflow starts.

A trigger listens for a specific event. When the trigger occurs, the workflow is automatically executed, and relevant data is passed to subsequent workflow steps.

circle-info

Every workflow can have only 1 trigger. Without a trigger, a workflow cannot run.

Types of triggers

Event
Event type
When it fires
Data available

Product restock

product.restocked

Inventory changes from 0 to > 0

Product/variant ID

Inventory level

Subscriber list

Campaign ID

Restock timestamp

Location/warehouse

Customer signed up

customer.signed_up

Customer submits "Notify Me" form

Email

Product/variant ID

Timestamp

Source

Consent

Starts when a product that was out of stock becomes available again.

circle-info

Example:

Trigger: Product restock → Action: Send back-in-stock email

Prebuilt workflow: Send a back in stock notification

circle-check

How triggers work

Triggers work automatically. Once set up, no manual action is needed for the workflow to run.

1

An event happens in the system (for example, a product comes back in stock).

2

The trigger listens for that event.

3

When the event occurs, the trigger automatically activates the workflow.

4

Event data is passed to the next steps in the workflow.

circle-info

Want a full picture? Learn more about how workflows work: How workflows work

Common workflow triggers use cases

Trigger
Common use cases

Product restock

  • Send a notification to all waitlist subscribers once the subscribed product is back in stock

  • Alert the internal team about high-demand restock

  • Create a limited-time discount for waitlist customers

  • Implement VIP early access (send to VIPs first, then general waitlist)

Customer signed up

  • Send an immediate confirmation email

  • Thank the customer for signing up

  • Set expectations about notification timing

  • Offer signup incentive (e.g., discount for waitlist)

Examples of workflow triggers

circle-info

Example 1: Product restock

Trigger: Product restock

Condition: Customer criteria: Order count. Order count > Greater than 0Action: Create discount code → Action: Send email 🔗 Learn more: Back in stock with exclusive discount for loyal customers

circle-info

Example 2: New customer sign up

Trigger: New customer signs up

Action: Send an initial welcome email to the new customer. → Action: Wait 3 days → Action: Send a follow-up brand story email. 🔗 Learn more: Welcome email series for new subscribers

Available triggers, actions, and conditionschevron-rightCreate a workflowchevron-rightAssign a workflow to your campaignchevron-right

📩 Need help?

We’re here to make your XFlow experience smooth and successful. Our support team is always ready to assist you—no matter how big or small your question is.

comment-linesChat now envelopesMessage us

Last updated