# Available triggers, actions, and conditions
* New to workflows? Take a quick look at how to build your first one: [Create a workflow](https://docs.foxecom.com/xflow-app/workflows/create-a-workflow)
* Need inspiration? Browse our workflow template library and get started in minutes: [Get started with workflow templates library](https://docs.foxecom.com/xflow-app/workflows/get-started-with-workflow-templates-library)
## Triggers
Triggers define **when a workflow starts**. Every workflow must have exactly one trigger to begin running.
Starts the workflow when a product is back in stock.
You can use this trigger to:
* Notify customers when an item is back in stock
* Send follow-up reminders or offers after restock
*Example:* Product restock β Send email β Wait 24 hours β Send reminder email
Starts the workflow when a new customer signs up [Notify me button](https://docs.foxecom.com/xflow-app/notify-me-widget/customize-notify-me-form-and-messages).
You can use this trigger to:
* Send welcome or confirmation emails
* Deliver signup incentives or discount codes
* Start onboarding or nurture workflows
*Example:* New customer sign up β Create discount code β Send welcome email
Learn more:
Understanding workflow triggers
## Conditions
Conditions control **how a workflow flows** after it starts. They evaluate customer data or events and determine which workflow path to take, enabling you to build logic such as branching, filtering, and targeted messaging.
Checks whether the customer has opened a specific email.
You can use this condition to:
* Measure email engagement
* Trigger follow-up actions based on opens
* Segment engaged vs. unengaged customers
*Example:* [Win-back campaign for inactive subscribers](https://docs.foxecom.com/xflow-app/workflows/get-started-with-workflow-templates-library/win-back-campaign-for-inactive-subscribers)
Checks whether the customer has clicked a link in a specific email.
You can use this condition to:
* Identify highly engaged customers
* Trigger follow-up actions after link clicks
* Segment customers based on interaction
*Example:* [Tag engaged customers after email click](https://docs.foxecom.com/xflow-app/workflows/get-started-with-workflow-templates-library/tag-engaged-customers-after-email-click)
Checks whether the customer has unsubscribed from marketing communications.
You can use this condition to:
* Stop promotional workflows
* Trigger internal alerts or cleanup actions
* Update customer engagement or consent status
*Example:* New customer sign up β Send marketing email β If customer unsubscribed β Update subscription status
Checks whether the customer has completed a purchase.
You can use this condition to:
* Trigger post-purchase workflows
* Stop or adjust promotional flows after conversion
* Segment customers based on purchase activity
*Example:* [Urgency back in stock notification](https://docs.foxecom.com/xflow-app/workflows/get-started-with-workflow-templates-library/urgency-back-in-stock-notification)
Evaluates the customer based on the number of orders they have placed.
You can use this condition to:
* Identify new vs. returning customers
* Target loyal or frequent buyers
* Customize workflows based on purchase history
*Example:* [Loyalty program enrollment](https://docs.foxecom.com/xflow-app/workflows/get-started-with-workflow-templates-library/loyalty-program-enrollment)
Evaluates the customer based on the total amount they have spent.
You can use this condition to:
* Identify high-value customers
* Create VIP or loyalty segments
* Trigger rewards or exclusive offers
*Example:* [Back in stock with tiered response](https://docs.foxecom.com/xflow-app/workflows/get-started-with-workflow-templates-library/back-in-stock-with-tiered-response)
Filters customers based on the date they signed up.
You can use this condition to:
* Target new customers who signed up recently
* Exclude older customers from specific workflows
* Send onboarding, welcome, or re-engagement messages based on signup timing
*Example:* Product restock β Check customer signed up date (within last 30 days) β Add customer tag (New signup) β Send email
Filters customers based on the date of their most recent order.
You can use this condition to:
* Target active customers who ordered recently
* Re-engage customers who havenβt ordered in a while
* Exclude recent buyers from promotions or reminders
*Example:* Product restock β Check last order date (more than 60 days ago) β Send email β Wait 24 hours β Send reminder email
Filters customers based on the tags assigned to their profile.
You can use this condition to:
* Target specific customer segments (e.g. VIP, Wholesale, Loyalty)
* Include or exclude customers from workflows based on behavior or status
* Personalize messages and offers using tag-based segmentation
*Example:* Product restock β Check customer tags (includes βVIPβ) β Create discount code β Send email with special offer
Filters customers based on whether they have agreed to receive marketing communications.
You can use this condition to:
* Send campaigns only to customers who opted in
* Ensure compliance with email and SMS marketing regulations
* Exclude customers who have not accepted marketing from promotional workflows
*Example:* Product restock β Send welcome email β Check accepts marketing (is true) β Send promotional email
Learn more:
Understanding workflow conditions
## Actions
Actions define **what the workflow does**. A workflow can run one or multiple actions in sequence.
Sends an email to the customer when this action is reached in the workflow.
You can use this action to:
* Send welcome or onboarding emails
* Notify customers about product restock or promotions
* Send follow-up or reminder emails based on customer behavior
*Example:* Product restock β Send email β Wait 24 hours β Send follow-up email
Sends a push notification to the customer to notify the customer in real time.
You can use this action to:
* Notify customers about product restocks or order updates
* Send time-sensitive alerts or promotions
* Re-engage customers with reminders or announcements
*Example:* Product restock β Send push notification β Wait 1 hour β Send follow-up notification.
Sending desktop push notifications requires that the browser permission settings are configured to **allow notifications** from a specific website.
**How to allow notifications in browser settings (User action)**
* π Google Chrome: [https://support.google.com/chrome/answer/3220216](https://support.google.com/chrome/answer/3220216)
* π¦ Mozilla Firefox: [https://support.mozilla.org/en-US/kb/push-notifications-firefox](https://support.mozilla.org/en-US/kb/push-notifications-firefox)
* π΅ Microsoft Edge: [https://support.microsoft.com/en-us/microsoft-edge/manage-website-notifications-in-microsoft-edge-0c555609-5bf2-479d-a59d-fb30a0b80b2b](https://support.microsoft.com/en-us/microsoft-edge/manage-website-notifications-in-microsoft-edge-0c555609-5bf2-479d-a59d-fb30a0b80b2b)
* π Safari (Mac): [https://support.apple.com/en-vn/guide/safari/sfri40734/mac](https://support.apple.com/en-vn/guide/safari/sfri40734/mac)
* π± Safari (iPhone/iPad β iOS 16.4+): Settings > Notifications > Safari and enable Allow Notifications.
Sends an internal email notification to your team.
You can use this action to:
* Notify internal teams about important customer events
* Alert staff when a workflow condition is met
* Trigger internal follow-ups or manual actions
*Example:* [Internal notification for high-value new subscribers](https://docs.foxecom.com/xflow-app/workflows/get-started-with-workflow-templates-library/internal-notification-for-high-value-new-subscribers)
Pauses the workflow for a specified amount of time before continuing to the next step.
You can use this action to:
* Delay follow-up messages
* Space out notifications or emails
* Wait for customer actions before proceeding
*Example:*
* [Welcome email series for new subscribers](https://docs.foxecom.com/xflow-app/workflows/get-started-with-workflow-templates-library/welcome-email-series-for-new-subscribers)
* [Win-back campaign for inactive subscribers](https://docs.foxecom.com/xflow-app/workflows/get-started-with-workflow-templates-library/win-back-campaign-for-inactive-subscribers)
* [Tag engaged customers after email click](https://docs.foxecom.com/xflow-app/workflows/get-started-with-workflow-templates-library/tag-engaged-customers-after-email-click)
* [Urgency back in stock notification](https://docs.foxecom.com/xflow-app/workflows/get-started-with-workflow-templates-library/urgency-back-in-stock-notification)
Creates a unique discount code for the customer.
You can use this action to:
* Reward loyal or high-value customers
* Incentivize purchases with personalized discounts
* Support promotions and win-back campaigns
*Example:*
* [Back in stock with exclusive discount for loyal customers](https://docs.foxecom.com/xflow-app/workflows/get-started-with-workflow-templates-library/back-in-stock-with-exclusive-discount-for-loyal-customers)
* [VIP welcome with exclusive discount code](https://docs.foxecom.com/xflow-app/workflows/get-started-with-workflow-templates-library/vip-welcome-with-exclusive-discount-code)
* [Back in stock with tiered response](https://docs.foxecom.com/xflow-app/workflows/get-started-with-workflow-templates-library/back-in-stock-with-tiered-response)
* [Flash sale notification for back in stock](https://docs.foxecom.com/xflow-app/workflows/get-started-with-workflow-templates-library/flash-sale-notification-for-back-in-stock)
* [First-time buyer special discount](https://docs.foxecom.com/xflow-app/workflows/get-started-with-workflow-templates-library/first-time-buyer-special-discount)
Updates the customerβs subscription status.
You can use this action to:
* Mark a customer as subscribed or unsubscribed
* Reflect consent changes from customer actions
* Keep subscription status up to date across workflows
*Example:* [Double opt-in confirmation workflow](https://docs.foxecom.com/xflow-app/workflows/get-started-with-workflow-templates-library/double-opt-in-confirmation-workflow)
Adds one or more tags to the customer.
You can use this action to:
* Label customers based on behavior or attributes
* Segment customers for future workflows
* Track engagement or campaign participation
*Example:*
* [Tag VIP customers based on purchase history](https://docs.foxecom.com/xflow-app/workflows/get-started-with-workflow-templates-library/tag-vip-customers-based-on-purchase-history)
* [Tag engaged customers after email click](https://docs.foxecom.com/xflow-app/workflows/get-started-with-workflow-templates-library/tag-engaged-customers-after-email-click)
* [New subscriber tagging and welcome](https://docs.foxecom.com/xflow-app/workflows/get-started-with-workflow-templates-library/new-subscriber-tagging-and-welcome)
* [Loyalty program enrollment](https://docs.foxecom.com/xflow-app/workflows/get-started-with-workflow-templates-library/loyalty-program-enrollment)
Learn more:
Understanding workflow actions
## Related articles
Create a workflow
Get started with workflow templates library
Assign a workflow to your campaign