Shopify Flow Examples: 18 Recipes for Real Store Operations
Eighteen Shopify Flow recipes you can build today, each with the exact trigger, conditions and actions from the current Flow docs. Plus the plan rules, how to test a workflow and the ways workflows break.
The best Shopify Flow examples are small rules that run on every order: tag high-risk orders, hold suspect addresses, alert on low stock, tag VIP and repeat buyers, push paid orders to your CRM, post big orders to Slack and clean up stale tags on a schedule. Each needs one trigger, one or two conditions and one to three actions.
Flow is Shopify's built-in workflow automation tool. You pick a trigger (an event, like an order being paid), add conditions (checks on that event's data) and choose actions (what Flow does when the checks pass). It is free, it runs inside Shopify, and most stores use a fraction of it.
This playbook gives you 18 recipes with the exact names from the current Flow docs, the plan rules, a CRM payload you can paste, how to test a workflow and the ways workflows break.
Key takeaways
- Flow is on Basic and up. The help center lists it on Basic, Grow, Advanced and Plus, but Send HTTP request needs Grow or higher.
- Use the right trigger. Risk rules belong on Order risk analyzed, not Order created, because fraud analysis takes time to finish.
- Alert on the crossing. Low-stock rules should compare the new quantity with inventoryQuantityPrior, or you get an alert on every sale.
- Test before you turn on. A workflow test stops before any change, and test runs stay out of Recent runs.
- Watch your errors. Runs are kept for 14 days, so add a Workflow error occurred alert on day one.
What can Shopify Flow do?
Flow does three things. It listens for an event, checks the data and then acts. The Flow trigger list has 84 triggers as of November 2026. They cover orders, customers, inventory, fulfillment, returns, B2B companies, subscriptions and a Scheduled time trigger.
The actions list is longer. It covers tags, holds, emails, metafields, product status, B2B payment terms and more. A few actions matter more than the rest:
- Get data actions such as Get order data and Get customer data pull in records that the trigger did not include. They return up to 100 items at a time.
- For each loop (iterate) runs the next steps once per item in a list.
- Run code runs a small JavaScript step to reshape data.
- Send HTTP request calls any outside URL, such as your CRM.
- Send Slack message posts to a channel through a connector.
Flow variables use camelCase, so a product's created date is {{ product.createdAt }}, per the Flow Liquid docs. That matters when you copy field names from theme code, which uses snake_case.
Which Shopify plans include Flow?
Flow is a free app on the Basic, Grow, Advanced and Plus plans, according to the Shopify Flow help page. Two features are gated by plan. Usage limits also follow your plan's API limits.
| Feature | Basic | Grow | Advanced | Plus |
|---|---|---|---|---|
| Flow app, triggers, conditions, most actions | Yes | Yes | Yes | Yes |
| Send HTTP request action | No | Yes | Yes | Yes |
| Tasks created by custom partner apps | No | No | No | Yes |
| Usage limits | Set by your plan's API limits | Same | Same | Same |
So the answer to "which actions need Plus" is short. Only tasks from custom partner apps do. The Send HTTP request page confirms that action needs Grow, Advanced or Plus. If you sit on Basic and need to reach a CRM, use a native app or Shopify webhooks instead.
How to read these recipes
Each recipe uses the same layout. The trigger and action names match the Flow docs. Conditions use Flow's variable paths, so you can find them in the condition picker. Tags are my suggested names. Pick your own, but keep them lowercase and consistent.
Trigger: the event that starts the workflow
Conditions: the checks, joined with AND or OR
Actions: what Flow does when the checks pass
One rule on conditions saves a lot of pain. The conditions docs warn that if no data exists in a condition set to AND, the condition is treated as true. A missing field can make a rule fire on every order. Add an "is not empty" check on any field that can be blank.
Risk and fraud recipes
Recipe 1: tag and hold high-risk orders
The Order risk analyzed trigger fires when Shopify's fraud analysis is done. It does not run right after the order is placed, which is the point. Order created fires before the risk result exists.
Trigger: Order risk analyzed
Conditions: order.risk.recommendation is equal to CANCEL
OR at least one of order.risk.assessments has riskLevel equal to HIGH
Actions: Add order tags: risk-high
Hold fulfillment order: reason HIGH_RISK_OF_FRAUD, notes "Review before ship"
Send internal email: ops inbox, subject "High-risk order {{ order.name }}"
The risk values come from the Admin API. The recommendation enum is ACCEPT, CANCEL, INVESTIGATE or NONE. The assessment levels are HIGH, MEDIUM, LOW, NONE or PENDING. The hold reasons come from the FulfillmentHoldReason enum.
I'd hold, not cancel. A hold stops the ship while a person looks. A cancel refunds a real buyer you can't get back.
Recipe 2: route "investigate" orders to a person
Medium risk needs a human call, not a hold on every order. Send it to Slack where the team will see it.
Trigger: Order risk analyzed
Conditions: order.risk.recommendation is equal to INVESTIGATE
Actions: Add order tags: risk-review
Send Slack message: #ops-risk, "Check {{ order.name }}, {{ order.currentTotalPriceSet.shopMoney.amount }}"
Recipe 3: capture payment only on clean orders
Shopify ships a template for this. It needs your store set to manual payment capture, as the risk trigger page notes.
Trigger: Order risk analyzed
Conditions: order.risk.recommendation is equal to ACCEPT
Actions: Capture payment
Inventory recipes
Recipe 4: low-stock alert on the crossing
The Product variant inventory quantity changed trigger fires on any change: an order, a manual edit or an app. It gives you inventoryQuantityPrior, the quantity before the change. Use it so you alert once, when stock crosses the line, not on every sale below it.


Trigger: Product variant inventory quantity changed
Conditions: productVariant.inventoryQuantity is less than or equal to 20
AND inventoryQuantityPrior is greater than 20
Actions: Send internal email: buyer@example.com,
"{{ product.title }} / {{ productVariant.sku }} is at {{ productVariant.inventoryQuantity }}"
Add product tags: low-stock
The number 20 is a placeholder. The right number is your reorder point: average daily demand times lead time, plus safety stock. Work it out per SKU and location with the reorder point calculator. It takes daily demand, demand swings, lead time and service level, and gives safety stock, the reorder point and days of cover. The method is in the guide to reorder points and safety stock.
Two caveats from the docs. The trigger is per variant, not per location. To check one warehouse, read productVariant.inventoryItem.inventoryLevels and filter on the location name. And it fires even when inventory tracking is off, so add "inventory tracked is true" if you sell some untracked items.
Recipe 5: daily out-of-stock digest
Per-sale alerts get noisy across 500 SKUs. A daily digest is calmer. The Scheduled time trigger carries no data, so you fetch it with a Get data action.
Trigger: Scheduled time: every 1 day at 07:00, store time zone
Actions: Get product variant data: query inventory_quantity:<=0, limit 100
Send internal email: "Out of stock today" with a Liquid loop
{% for v in getProductVariantData %}{{ v.sku }} {{ v.product.title }}{% endfor %}
Check the loop variable name in the editor. Flow names Get data outputs itself, and a second copy gets a number added. The name can't be changed.
Recipe 6: hide sold-out products and bring them back
Shopify has a template for this pattern. Two workflows keep it clean.
Workflow A
Trigger: Product variant out of stock
Conditions: all of product.variants have inventoryQuantity less than or equal to 0
Actions: Unpublish product (from the Online Store)
Workflow B
Trigger: Product variant back in stock
Actions: Publish product
Skip this for products that rank well in search. A hidden page drops out of the index. For those, keep the page live with a back-in-stock form instead.
Customer tagging recipes
Tags are how Flow feeds customer segmentation, email lists and discounts. Two fields from the Customer object do most of the work: numberOfOrders (lifetime orders) and amountSpent (lifetime spend).
Recipe 7: tag VIP customers
Trigger: Order paid
Conditions: order.customer.amountSpent.amount is greater than or equal to 1000
AND none of order.customer.tags is equal to vip
Actions: Add customer tags: vip
Send Slack message: #cx, "New VIP: {{ order.customer.displayName }}"
The "none of" check stops a re-tag on every order. Remember that an empty list makes "none of" return true, which is what you want here.
Recipe 8: lifetime spend tiers
Shopify's template library includes a spend-tier workflow. I'd run three tiers off one trigger with ordered conditions. Flow checks conditions in order and stops at the first match, so put the highest tier first.
Trigger: Order paid
Condition 1: order.customer.amountSpent.amount >= 2500 -> Add customer tags: tier-gold
Remove customer tags: tier-silver, tier-bronze
Condition 2: order.customer.amountSpent.amount >= 1000 -> Add customer tags: tier-silver
Remove customer tags: tier-bronze
Condition 3: order.customer.amountSpent.amount >= 300 -> Add customer tags: tier-bronze
Recipe 9: tag the first order
Trigger: Order created
Conditions: order.customer is not empty
AND order.customer.numberOfOrders is equal to 1
Actions: Add customer tags: first-order
Add order tags: first-order
On Order created, the count should include the order that just came in. Confirm that with a test order on your store before you rely on it. Guest checkouts can arrive with no customer, so the "is not empty" check matters.
Recipe 10: tag repeat buyers
Trigger: Order created
Conditions: order.customer.numberOfOrders is greater than or equal to 2
Actions: Add customer tags: repeat-buyer
Remove customer tags: first-order
Add order tags: repeat-order
These two tags power the second-purchase flow, which is often the biggest lever in a repeat purchase rate plan. Hand them to your email tool to trigger the right sequence, as shown in the email and SMS flows guide.
Fulfillment hold recipes
The Hold fulfillment order action takes a reason, notes and a "Notify merchant" box. Orders on hold aren't fulfilled until the hold is removed. Use an order trigger to hold the whole order.
Recipe 11: hold orders by address
The fields come from the MailingAddress object: address1, address2, city, zip, provinceCode and countryCodeV2.
Trigger: Order created
Conditions: order.shippingAddress.address1 includes "PO Box"
OR order.shippingAddress.zip is equal to 19720 (a known reshipper ZIP you keep)
OR order.shippingAddress.countryCodeV2 is not equal to order.billingAddress.countryCodeV2
Actions: Hold fulfillment order: reason INCORRECT_ADDRESS, notes "Address check"
Add order tags: address-check
Send internal email: ops inbox
The ZIP above is a fake example. Build your own list from past chargebacks and failed deliveries. Keep it short, or the hold queue fills with good orders.
Recipe 12: hold big orders for a look
Trigger: Order created
Conditions: order.currentTotalPriceSet.shopMoney.amount is greater than 1000
Actions: Hold fulfillment order: reason OTHER, notes "Value check"
Send Slack message: #ops, "{{ order.name }} held for review"
Recipe 13: hold and merge same-day orders
Shopify's templates include a hold when a customer places more than one order in 24 hours. That saves a second shipping label.
Trigger: Order created
Actions: Get order data: query customer_id:{{ order.customer.legacyResourceId }}
AND created_at:>'{{ order.createdAt | date_minus: "1 day" }}'
Count: items in getOrderData
Conditions: count is greater than 1
Actions: Hold fulfillment order: reason OTHER, notes "Merge shipment"
Check the query in the editor's preview before you go live. The Get customer data docs warn that a broken query often returns all results instead of none.
Alerts and integration recipes
Recipe 14: post big orders to Slack
The Send Slack message connector needs two setup steps. Connect Flow to your Slack workspace, then add FlowBot to each channel under Integrations, Add an app.
Trigger: Order paid
Conditions: order.currentTotalPriceSet.shopMoney.amount is greater than or equal to 500
Actions: Send Slack message
Channel or member id: #wins
Message: *{{ order.name }}* {{ order.currentTotalPriceSet.shopMoney.amount }}
{{ order.currentTotalPriceSet.shopMoney.currencyCode }}
from {{ order.shippingAddress.city }}
Messages use Slack's mrkdwn, so *bold* works. Keep the channel for wins and fires. A channel that posts every order gets muted within a week.
Recipe 15: send paid orders to your CRM
This is the recipe that needs Grow or higher. The Send HTTP request action has four fields: Method, URL, Headers and Body. Store your API token as a Flow secret under Flow, Settings, and reference it as {{secrets.handle}}. Secrets are hidden in the editor and redacted from run logs.
Trigger: Order paid
Conditions: order.customer is not empty
Actions: Send HTTP request
Method: POST
URL: https://hooks.example.com/shopify/order-paid
Headers: Content-Type: application/json
Authorization: Bearer {{secrets.crm_token}}
On 4XX: Fail On 5XX or 429: Retry
The body is Liquid that renders JSON. Run each value through the json filter so quotes and line breaks are escaped. Lists can't be printed directly, so loop over line items and pick fields. Here is the body template, trimmed:
{
"event": "order_paid",
"event_id": "{{ order.id }}",
"order_name": {{ order.name | json }},
"paid_total": {{ order.currentTotalPriceSet.shopMoney.amount | json }},
"currency": {{ order.currentTotalPriceSet.shopMoney.currencyCode | json }},
"customer": {
"email": {{ order.customer.defaultEmailAddress.emailAddress | json }},
"first_name": {{ order.customer.firstName | json }},
"orders_count": {{ order.customer.numberOfOrders | json }},
"lifetime_spend": {{ order.customer.amountSpent.amount | json }},
"tags": {{ order.customer.tags | join: "," | json }}
},
"line_items": [
{% for li in order.lineItems %}
{ "sku": {{ li.sku | json }}, "qty": {{ li.quantity }} }{% unless forloop.last %},{% endunless %}
{% endfor %}
]
}
Rendered, Jane Doe's order looks like this:
{
"event": "order_paid",
"event_id": "gid://shopify/Order/1234567890",
"order_name": "#1042",
"paid_total": "184.00",
"currency": "USD",
"customer": { "email": "jane@example.com", "first_name": "Jane", "orders_count": 3, "lifetime_spend": "512.40", "tags": "repeat-buyer,tier-bronze" },
"line_items": [{ "sku": "TEE-BLK-M", "qty": 2 }]
}
Point the URL at a small endpoint you own, not straight at the CRM's API. That endpoint can map fields, upsert the contact by email and write the deal. Flow can't do multi-call logic well, and a CRM's API often wants two or three calls per order. The Shopify to HubSpot integration guide covers the field map.
The event_id is for idempotency, which means handling the same event twice without creating two records. Flow retries for up to 24 hours on errors you mark Retry, and a manual retry replays the same trigger data. Your endpoint will see repeats. Store the order ID and skip any you've already processed.
Recipe 16: tag B2B orders
If you sell wholesale on the same store, tag B2B orders so reports and emails can split them out. The Order object has purchasingEntity, the business that placed the order.
Trigger: Order created
Conditions: order.purchasingEntity is not empty
Actions: Add order tags: b2b
Send internal email: wholesale inbox
The full wholesale setup is in the guide to Shopify B2B and wholesale.
Scheduled cleanup recipes
Tags pile up. A tag that meant "sent the winback email" six months ago now blocks the next winback. Scheduled workflows fix that. The Scheduled time trigger can run at most once every 10 minutes, and the longest gap between runs is one year.
Recipe 17: clear stale campaign tags weekly
Trigger: Scheduled time: every 1 week, Monday 06:00
Actions: Get customer data: limit 100, query
tag:'winback-sent' AND updated_at:<'{{ scheduledAt | date_minus: "90 days" }}'
For each loop (iterate) over getCustomerData:
Remove customer tags: winback-sent
Get data returns up to 100 records a run. If you have more, schedule it daily until the backlog clears. The date_minus filter is one of Flow's own Liquid filters, along with date_plus.
Error monitoring recipe
Recipe 18: alert on any workflow error
Build this first. Runs are stored for 14 days, per the monitoring docs, so a silent failure you find on day 20 is gone.
Trigger: Workflow error occurred
Actions: Send Slack message: #ops-alerts, "Flow error in a workflow, check Recent runs"
Send Shopify alert for errors
How do you test a Shopify Flow workflow?
Flow has a built-in test with three ways to feed it an event, per the testing docs. You can record live events as they happen. You can create a simulated event from store data. Or you can have Sidekick generate test events.
A test does not change anything. It won't tag orders, send emails or update products. It stops at the first action that would make a change. Steps that call outside services show a preview with a "Can't simulate this action" note. All steps must be valid, and test runs don't show in Recent runs.
My test routine for each new workflow:
- Run the built-in test with a simulated event that should pass the conditions.
- Run it again with one that should fail them. Most bugs live here.
- For Send HTTP request, point the URL at a request bin first and read the body.
- Turn the workflow on and place one real order, or use "Run Flow automation" on an existing order from the admin.
- Open Apps, Flow, Recent runs and read the steps for that run.
- Check the result in the other system: the tag, the Slack post, the CRM record.
For risk workflows, the risk trigger page says to create a test order that triggers Shopify's fraud analysis.
How do Shopify Flow workflows break?
Most Flow failures are quiet. The workflow runs, passes or fails a check, and nobody looks. These are the patterns to watch.
| Failure | What you see | Fix |
|---|---|---|
| Empty field under AND | Rule fires on every order | Add "is not empty" checks |
| Risk rule on Order created | Rule never fires, risk is still pending | Use Order risk analyzed |
| Alert on every sale | Inbox floods once stock is low | Compare with inventoryQuantityPrior |
| Broken Get data query | Returns all records, not none | Preview the query, cap the limit |
| HTTP call mid-workflow | Later steps skipped when the CRM is slow | Move Send HTTP request to the end |
| Retries create duplicates | Two deals for one order | Dedupe on order ID at the endpoint |
| Edited while runs wait | Waiting runs use the new version | Don't change a workflow with active Wait steps |
| Silent failures | Runs gone after 14 days | Workflow error occurred alert |
Two more notes. The Wait action can delay up to 90 days, and a deactivated workflow stops its waiting runs. And a manual retry reuses the original trigger data but fetches fresh data from Get data steps. Fix the cause before you retry, or you'll just fail again.
Flow or webhooks: where should each recipe live?
Flow is the right home for logic that acts on Shopify itself. That covers tags, holds, publish and unpublish, metafields and internal alerts. It is free and needs no server.
Push work out when it spans several systems. A webhook gives you raw events, your own retry logic and full control of the payload. The Shopify webhooks playbook covers that path. My default is a hybrid. Flow tags and holds inside Shopify. Then one Send HTTP request, or one webhook, hands a clean event to the code or tool that does the cross-app work. The same split shows up on the CRM side in the HubSpot workflow recipes.
| Job | Best home |
|---|---|
| Tag, hold, publish, metafields | Flow |
| Internal email or Slack alert | Flow |
| One outbound call per event | Flow with Send HTTP request (Grow and up) |
| Multi-step sync with lookups and upserts | Webhook to your own endpoint |
| Bulk backfill of history | Admin API script |
Which recipes should your store build first?
The right set depends on your plan, your order volume and where the pain is. Here are three worked examples. The stores are made up, but the logic carries over.
A new D2C brand on Basic. Say it ships 15 orders a day from one warehouse, with no CRM yet. Fraud and stockouts hurt most, and nobody has time to watch the admin. Build the error alert, the high-risk hold, the low-stock alert and the first-order and repeat tags. Skip the CRM push, since Basic can't use Send HTTP request. Let the email tool read the tags instead.
A growing store on Grow with a CRM. Say it ships 150 orders a day and has a small CX team. Now the cost of a missed VIP or a wrong address goes up. Add the VIP tag, the spend tiers, the address hold and the Slack post for big orders. Then add the paid-order push to the CRM, so sales and CX see order history next to each contact.
A Plus brand with wholesale and two warehouses. Say it ships 900 orders a day, plus 40 wholesale orders a week. Per-sale stock alerts would bury the buyer. Move to the daily digest with per-location checks. Tag B2B orders so reports split cleanly. Add the same-day merge hold, since two labels a day per repeat buyer adds up fast at that volume.
| Store | Plan | First recipes | Skip for now |
|---|---|---|---|
| New D2C brand | Basic | 18, 1, 4, 9, 10 | 15 (needs Grow) |
| Growing store with CRM | Grow | Add 7, 8, 11, 14, 15 | 13 until volume grows |
| Plus brand with wholesale | Plus | Add 5, 13, 16, per-location stock | Per-sale stock alerts |
A good test for any new recipe: who acts on it, and how fast? If no person or system acts within a day, the workflow is noise. Turn it off.
Step by step: your first five workflows
Start with the five that pay back fastest. Each takes under an hour.
- Install Flow from the Shopify App Store and set staff permissions.
- Build Recipe 18, the error alert, so you hear about every failure.
- Build Recipe 1 for high-risk holds. Test it, then turn it on.
- Build Recipe 4 for low stock. Set each threshold from your reorder point, not a guess.
- Build Recipes 9 and 10 for first and repeat tags. Connect the tags to your email flows.
- Build Recipe 14 for big-order Slack posts with a threshold that fires a few times a week.
- Name every workflow with a prefix, like "ops:" or "cx:", so search finds them.
- Review Recent runs filtered by errors every Monday for the first month.
What to do this week
Open Flow and list what is already turned on. Most stores have a template or two running that nobody remembers.
Then build the error alert, the high-risk hold and one low-stock alert on your best-selling SKU. Use the reorder point calculator to set that threshold. If you're on Grow or higher, add the paid-order push to your CRM next.
If you want the whole set built, tested and wired into your CRM and email tools, that is the work we do in GTM engineering.
FAQ
Is Shopify Flow free?
Yes. Shopify's help center calls Flow a free app on the Basic, Grow, Advanced and Plus plans. You install it from the Shopify App Store. What changes by plan is a few actions and your usage limits. Send HTTP request needs Grow or higher, and tasks from custom partner apps need Plus. Usage limits follow your plan's API limits.
Do I need Shopify Plus to use Shopify Flow?
No. The current help center lists Flow on Basic, Grow, Advanced and Plus. On Basic you can tag, hold, email, post to Slack and run scheduled jobs. You can't use Send HTTP request on Basic, so a direct CRM push needs Grow or higher, or a webhook build instead.
How do I test a Shopify Flow workflow without changing live data?
Use the workflow test. You can record live events, create a simulated event from store data, or have Sidekick generate test events. A test stops before it changes anything, so it won't tag orders or send messages. Steps that call outside services show a preview instead. Test runs don't appear in the Recent runs list.
How long does Shopify Flow keep run history?
Workflow runs are stored for 14 days after a run completes, then removed. You find them under Apps, Flow, Recent runs, and you can filter by errors, trigger type, workflow and more. If you need a longer audit trail, log key events to a sheet or your CRM with a separate step.
What happens when a Send HTTP request call fails?
Flow waits up to 30 seconds for a response. For 4XX and for 5XX or 429 responses, you choose Retry, Fail or Ignore. Retry keeps trying for up to 24 hours. A 2XX or 3XX counts as success. Any failure that isn't ignored fails the run and skips the steps after it, so put the HTTP call last when you can.
Can Shopify Flow replace Zapier for a store?
For work inside Shopify, often yes. Tagging, holds, alerts, inventory rules and scheduled cleanups all run natively at no extra cost. Flow is weaker at multi-step logic across many outside apps, at data mapping and at custom retries. I keep store logic in Flow and send one clean event out to whatever runs the cross-app work.
More like this
E-commerceAI and automation