Skip to content
Back to all articles
Shopify Flow
Automation
Shopify Admin
Operations

Shopify Flow: How It Works, Plan Limits, and Where It Breaks

Shopify Flow from a developer who runs it in production: plans, triggers and actions, Run code and Admin API limits, scheduled workflows, and failure modes.

December 1, 2026 7 min readBy Matheus Abrahão

The short answer

Shopify Flow is Shopify's free automation app: a workflow starts from a trigger (an order is created, inventory changes, a schedule fires), checks conditions, and runs actions (tag, email, hold fulfillment, update a metafield, call an API). It is available on the Basic, Grow, Advanced and Plus plans.

It is the right tool for store operations that follow clear rules. It is the wrong tool for checkout logic (that is Shopify Functions), for heavy data processing, and for integrations that need state. Most stores under-use it, and the ones that use it a lot tend to have workflows nobody remembers building.

What each plan gets

From Shopify's help center:

  • Flow is available on Basic, Grow, Advanced and Plus.
  • The Send HTTP request action is available on Grow, Advanced and Plus. On Basic you cannot call an external endpoint from Flow.
  • Triggers and actions from custom apps are only available on Plus.
  • Usage limits differ by plan, following the plan's API limits.

That third point matters when someone proposes "a custom app that exposes a Flow action" for a store on Grow. It will not show up. A public app (listed or unlisted) or a Send HTTP request action to your own endpoint are the alternatives.

Anatomy of a workflow

Triggers. There are more than 80 native triggers. The ones I use most: Order created, Order paid, Order risk analyzed, Product variant inventory quantity changed, Product variant out of stock, Product variant back in stock, Customer created, Company created (B2B), Scheduled time and Workflow error occurred. Installed apps add their own.

Conditions. Checks against the trigger's data, combined with AND and OR, including checks across lists ("if any line item has SKU starting with...").

Actions. Over a hundred native ones: Add order tags, Add customer tags, Hold fulfillment order, Send internal email, Update product metafield, Update product status, Create redirect URL, Cancel order, Capture payment, plus utility actions like Wait, For each loop (iterate), Count, Sum, Log output, Run code, Send HTTP request and Send Admin API request.

Workflow text fields accept Liquid with camelCase paths from the trigger data. An internal email body like this works:

Order {{ order.name }} needs review.
Total: {{ order.totalPriceSet.shopMoney.amount }} {{ order.totalPriceSet.shopMoney.currencyCode }}
Customer: {{ order.customer.displayName }}

Scheduled workflows and Get data

Not everything is event-driven. The Scheduled time trigger runs a workflow on a schedule, with a smallest interval of 10 minutes and a longest of one year, in the store's time zone unless you set one.

Paired with a Get data action (Get product data, Get order data, Get customer data and others), it becomes a scheduled report or cleanup job. Get data actions take a query in Shopify's search syntax and return up to 100 items at a time. For example, products updated in the last day:

updated_at:<='{{ scheduledAt }}' AND updated_at:>'{{ scheduledAt | date_minus: "1 day" }}'

Two warnings from Shopify's own docs that I have seen bite in practice:

  • A malformed query can return all results instead of none. Test every Get data query in the Shopify GraphiQL app before you attach a destructive action (delete, unpublish, archive) to it.
  • 100 items per query. A "clean up all draft products" job on a store with 3,000 drafts processes 100 per run. Either schedule it to repeat or narrow the query so 100 is enough.

Wait

The Wait action delays the rest of the workflow, up to 90 days per workflow. Longer, and the workflow cannot be activated. Shopify recommends a scheduled workflow with Get data for longer delays.

Two gotchas: editing an active workflow that has runs sitting in a Wait can produce unexpected results for those runs, and deactivating or deleting the workflow cancels them. If you have a "wait 30 days then tag" workflow, changing it means accepting that some customers will not get tagged.

Run code

Run code runs JavaScript inside the workflow, for logic conditions cannot express. You define an input query (Flow environment data, not the Admin API), an output schema, and a main function:

{
  order {
    lineItems {
      quantity
      sku
    }
  }
}
type Output {
  totalUnits: Int!
  hasBulkySku: Boolean!
}
export default function main(input) {
  let totalUnits = 0;
  let hasBulkySku = false;
  for (const line of input.order.lineItems) {
    totalUnits += line.quantity;
    if (line.sku && line.sku.startsWith("BULK-")) hasBulkySku = true;
  }
  return { totalUnits, hasBulkySku };
}

Later steps can branch on totalUnits and hasBulkySku. The limits are tight, and they are the point:

  • ECMA2020 JavaScript only. No Node or CommonJS APIs, no imports.
  • 5 seconds of execution, 10 MB of memory.
  • 50 KB combined for output and console.log.
  • Input query and output schema up to 5,000 characters each; code up to 50,000.
  • No `fetch`. Run code cannot make HTTP calls. Output types are String, Int, Float, Boolean and ID.

Send Admin API request

This action calls most Admin GraphQL mutations, including ones Flow has no dedicated action for. You pick the mutation and write its variables as JSON, with Liquid. Setting a product's template suffix:

{
  "product": {
    "id": "{{ product.id }}",
    "templateSuffix": "preorder"
  }
}

The limits: mutations only (no queries), no deprecated mutations, no asynchronous mutations or ones that return a Job, no mutations that do not implement the Node interface, and some app-specific mutations (certain subscription, marketing activity and discount mutations) are excluded. Flow uses a specific Admin API version, so a future version that changes a mutation can break the workflow. Check these workflows when you see API changelog entries for the mutations they use.

Running Flow in production

The workflows are easy to build. Keeping thirty of them healthy is the actual job.

Name workflows like code. [Ops] Hold high-risk orders, [Merch] Tag back-in-stock. When there are thirty, the prefix is how anyone finds them.

Watch for loops. A workflow on Product updated that updates the product triggers itself. Always add a condition that is false after your own action runs (for example, "template suffix is not preorder" before setting it).

Monitor failures. Build one workflow on Workflow error occurred that sends an internal email to whoever owns operations. Without it, failed runs sit in the run history and nobody looks.

Test on a copy. Duplicate the workflow, point it at a test tag or a test product, and run it before activating the real one.

Permissions are real. Staff need Flow permissions to turn workflows on, and Send Admin API request needs permission for the data the mutation changes.

When Flow is the wrong tool

  • Checkout and pricing logic. Flow runs after events, not inside checkout. Discounts, hiding payment methods, validation: Shopify Functions.
  • Large data jobs. Repricing 20,000 variants is a Matrixify job or a GraphQL bulk operation, not a For each loop.
  • Integrations with state. If you need to remember what you sent yesterday, retry with backoff, or reconcile two systems, that is a custom app.
  • Marketing email. Flow's internal email is for staff. Customer messaging belongs in your email platform; the flows worth building there are in Klaviyo flows for Shopify.

On the stores I work on, I keep that split strict: Flow handles the operational rules (tagging, holds, alerts, metafield housekeeping), lifecycle messaging lives in Klaviyo, and everything else goes to the tool built for it. When a rule is in two places, nobody knows which one fired. Ten concrete workflows, with their pitfalls, are in Shopify Flow examples.

If your Flow setup has grown past what anyone can explain, an audit and cleanup is a quick, well-scoped piece of work; see hire a Shopify developer.


I design and maintain Shopify Flow automations alongside the custom code they sometimes replace; see [Shopify expert development](/shopify-expert) or [hire a Shopify developer](/hire-shopify-developer). Related: [Shopify Flow examples](/blog/shopify-flow-examples), [Shopify custom app vs public app](/blog/shopify-custom-app-vs-public-app).

Direct: [WhatsApp +55 11 98851-2788](https://wa.me/5511988512788) · [contact@matheusabrahao.com](mailto:contact@matheusabrahao.com)

Need a senior engineer who thinks like an operator?

I take on a small number of Shopify operations and senior engineering engagements each quarter. If your store needs catalog hygiene, technical SEO, performance or marketing automation done right, let’s talk.

Continue reading

Let's talk