---
title: "Shopify Flow"
description: "Start Shopify Flow workflows from OrderRules events, such as a delivery coming up, a missing date or a full day, and let Flow close the store, move a delivery or change capacity. Premium plan."
contentType: "docs"
locale: "en"
localized: true
source: "https://orderrules.com/docs/automations/shopify-flow"
slug: "automations/shopify-flow"
---
**OrderRules Premium adds 16 triggers, 13 actions and 8 ready-made templates to Shopify Flow**, Shopify's free automation app. Start a workflow when a delivery is booked, a date is missing, capacity fills up, a cutoff is near or a limit is reached. Let Flow close your store on a date, move a delivery or change capacity.

Shopify Flow is on the **Premium** plan. OrderRules itself still sends no email or SMS to your customers: reminders go out through Flow and your own email or SMS app.

## How it works

1. Install the free **Shopify Flow** app.
2. In Flow, create a workflow, pick an **OrderRules** trigger, add conditions and actions, and turn it on.
3. In OrderRules, open **Automations** to see which triggers are **In use**, adjust their settings, and check recent events and actions.

A trigger only sends events while a turned-on workflow uses it. There's nothing to switch on in OrderRules.

![Shopify Flow editor with the OrderRules trigger Delivery coming up and the action Get delivery details](/images/docs/flow-editor-orderrules-trigger-action.png)

## Triggers

| Trigger | Fires when |
|---|---|
| Delivery scheduled | An order gets a delivery or pickup date |
| Delivery date changed | The date or slot changes (by the buyer, staff or Flow) |
| Delivery date missing | A delivery order is placed without a date |
| Delivery cancelled | The booking is released by a cancel, refund or edit |
| Delivery coming up | The date is a set number of days away (default 1) |
| Pickup missed | The pickup date passed and the order isn't fulfilled |
| Delivery capacity almost full | A date or slot reaches the almost-full percentage (default 80%) |
| Delivery capacity full | A date or slot is fully booked, or booked over capacity |
| Order cutoff coming up | A cutoff is a set number of minutes away (default 60) |
| Order cutoff passed | A cutoff just passed |
| Order limit almost reached | The store's daily, weekly or monthly limit reaches its alert threshold. Has a **Unit** field: orders or items |
| Order limit reached | The store limit is reached. Has a **Unit** field |
| Product limit reached | A product reaches its limit for the period |
| Customer limit reached | After an order, a customer is at one of their limits |
| Store closed | The store stops taking orders, with the reason |
| Store opened | The store starts taking orders again |

With [multiple opening times per day](/docs/store-hours/multiple-windows), "Store closed" and "Store opened" fire at each break too, and "Store closed" reports the next opening time.

Time-based triggers (coming up, cutoffs, pickup missed, store opened or closed by hours) are checked **every 10 minutes**, so they can run up to 10 minutes late.

![OrderRules Automations page listing the 16 Shopify Flow triggers and whether each is used](/images/docs/automations-triggers.png)

## Actions

| Action | What it does |
|---|---|
| Get delivery details | Reads an order's delivery or pickup date, slot and location for later steps |
| Close store on a date / Reopen store on a date | Closes or reopens the store for one date |
| Add closed delivery date / Remove closed delivery date | Adds or removes a delivery blackout date |
| Change delivery date | Moves an order to another date or slot |
| Set store order limit | Changes a store limit that counts orders (not one that counts items) |
| Set capacity for a date / Reset capacity for a date | Sets or clears [capacity for a specific date](/docs/delivery/capacity-for-specific-dates) |
| Pause product limit / Resume product limit | Turns a product limit off or on |
| Add customer to limit group / Remove customer from limit group | Changes a **Specific customers** [customer group](/docs/customer-rules/customer-groups) |

If an action fails, **Automations** shows the reason, for example a date in the wrong format, a slot name that doesn't exist, or a date that's full.

## Ready-made templates

Start from one of 8 OrderRules templates in Flow's template library. In Shopify Flow, click **Create workflow** → **Browse templates** and search for **OrderRules**, or use the links below. They open in your own Shopify admin.

| Template | What it does |
|---|---|
| [Tag orders when the delivery date changes](https://admin.shopify.com/apps/flow/editor/templates/01a24207-43ef-76e2-8ac2-3b2a0ec09b9d) | Adds the tag `delivery-date-changed` when the date or slot changes, by your team or the buyer |
| [Tag orders when their delivery or pickup is coming up](https://admin.shopify.com/apps/flow/editor/templates/01a24207-4e90-7183-8125-69d3a01535d5) | Adds the tag `delivery-due-soon` a set number of days before the date (default 1) |
| [Tag orders placed without a delivery date](https://admin.shopify.com/apps/flow/editor/templates/01a24214-c9a7-7f06-8c34-f76bbbbba844) | Adds the tag `delivery-date-missing`, so you can contact the buyer before fulfilling |
| [Tag pickup orders that weren't collected](https://admin.shopify.com/apps/flow/editor/templates/01a24214-d489-7e46-9231-261f9f428b0a) | Adds the tag `pickup-missed` when the pickup date passed and the order is unfulfilled |
| [Email your team when a delivery day is almost full](https://admin.shopify.com/apps/flow/editor/templates/01a24207-5998-7995-9b26-d837209f43c7) | Emails the date, slot, location and booked count at your almost-full percentage (default 80%) |
| [Email your team when a delivery day is fully booked](https://admin.shopify.com/apps/flow/editor/templates/01a2420f-9785-7183-a43e-18111431ed3f) | Emails the date, slot and booked count, and flags dates booked over capacity |
| [Email your team when the store reaches its order limit](https://admin.shopify.com/apps/flow/editor/templates/01a24207-6771-7814-9d48-ca99d727c4eb) | Emails the count, the limit and when the period started |
| [Tag customers who reach a purchase limit](https://admin.shopify.com/apps/flow/editor/templates/01a24214-dfcc-7ba5-857d-515da3c59a92) | Adds the tag `purchase-limit-reached` to the customer, for a segment or a wholesale offer |

A template is a starting point. Before you turn it on, enter your team's email address in the email step, and change the tag or add conditions if you like. Templates need OrderRules on **Premium**, like every OrderRules trigger.

## Workflow ideas

Step-by-step versions of five of these: [5 Shopify Flow workflows for delivery and pickup stores](/blog/shopify-flow-workflows-delivery-pickup).

- **Delivery reminder:** Delivery coming up → send an email or SMS from Shopify or your own app the day before.
- **Chase missing dates:** Delivery date missing → email the buyer and ask them to choose a date.
- **Kitchen alert:** Delivery capacity almost full → message the team on Slack or by email.
- **Holiday close:** a scheduled workflow → Close store on a date.
- **Missed pickups:** Pickup missed → add the order tag `pickup-missed`.
- **Menu closes tonight:** Order cutoff coming up → a reminder from your own email app.

## Limits to know

- Premium only. On a lower plan, events stop and actions fail; your workflows stay in Flow.
- Time-based triggers can be up to 10 minutes late.
- A workflow that keeps triggering itself is stopped after 120 runs in an hour.
- **Set store order limit** can't change a period that counts items.
- Flow can only change **Specific customers** groups. Tag groups follow the customer tag, and segment groups follow Shopify.
- POS, draft and admin orders still aren't blocked by limits.
