Skip to content

Automation

Send or generate documents automatically when an order or draft order event happens, only for the orders your conditions match, once or every time.

Medium BusinessUpdated 2026-12-01

Setting It Up

  1. Go to Settings → Automation and pick the Invoice or Estimate tab. Each document type has its own automation.
  2. Switch on Enable Invoice Automation (or Enable Estimate Automation).
  3. Choose the Trigger. Invoices: When the Order Is Created, Is Paid, Is Fulfilled or Is Edited. Estimates: When the Draft Order Is Created or Is Edited — a draft order is never paid or fulfilled.
  4. Choose the Action: Generate and Send or Generate Only, which saves the PDF without sending it. For invoices, Send By picks email, WhatsApp (Large Business and above; connect WhatsApp first, or those sends are refused) or both.
  5. Choose what happens If the Event Fires Again (not asked for invoices on When the Order Is Created, which runs once): Only the First Event (the default — one document per order) or Every Event (Re-Send Each Time), which runs again on each refund-and-recharge, each fulfilled parcel or each edit and always makes a new PDF. Estimates on the create trigger ask instead If the Draft Order Is Edited Later: Keep the Original Estimate or Send an Updated Estimate on Each Change.
  6. Optionally add conditions (below), then click Save.

Conditions

Under Run Only When These Conditions Match, conditions decide which orders the automation runs for. With none, it runs for every order the trigger fires on. Conditions live in condition groups: click + Add Condition to open the condition dialog and build a group.

The Condition Dialog

  1. The dialog opens as Add Condition Group (or Edit Condition Group when you edit one).
  2. Under Orders Must Match choose All Conditions (every rule must match — AND) or Any Condition (at least one must match — OR).
  3. Click + Add Condition for each rule. A rule is one row: the Condition (what to look at), the Condition Case (how to compare) and the value. The bin icon removes a row.
  4. Click Save. The group appears as a Condition Group card with a summary such as "Match All (AND) of 3 rules"; Edit reopens it and the bin icon removes it.
ConditionCondition CaseValue
Order TagInclude / ExcludeValues: one or more tags, comma-separated (wholesale, b2b, vip)
Customer TagInclude / ExcludeValues: the customer's tags
Order ChannelInclude / ExcludeValues: sales channels such as online_store, pos, web
Payment GatewayInclude / ExcludeValues: gateways such as shopify_payments, manual, stripe
Order AttributeEquals / Contains / Exists / MissingKey (for example source) and, for Equals and Contains, Value
Order Metafield Enterprise PlusEquals / Contains / Exists / MissingNamespace, Key and, for Equals and Contains, Value
Customer Metafield Enterprise PlusEquals / Contains / Exists / MissingNamespace, Key and, for Equals and Contains, Value
  • Include matches an order that has any of the values listed; Exclude matches an order that has none of them.
  • Equals needs the exact value, Contains a part of it, Exists just that the attribute or metafield is set, and Missing that it is not.
  • Values are case-sensitive: type each tag, channel, gateway or attribute exactly as it appears on the order. Spaces before or after a key or value are ignored.
  • Every rule needs its key and value (Exists and Missing need only the key): when you save changes to an automation that is switched on, a rule left empty is refused, since it would let the automation run for every order.
  • On a guest order, a Customer Tag rule with Include fails and with Exclude passes; a Customer Metafield rule passes only with Missing.

Several Groups

With two or more groups, Orders Must Match appears above them: All Condition Groups (every group must pass) or Any Condition Group (at least one). That gives rules like "(tag wholesale AND gateway manual) OR (customer tag vip)". An automation can hold up to 20 rules across all its groups; at 20, Add Condition is disabled until you remove one.

Rules That Are Skipped

  • Order Channel and Payment Gateway rules do not apply to estimates — a draft order has neither — and are ignored there.
  • Metafield rules are kept below Enterprise Plus but marked locked and ignored until you upgrade.
  • An empty rule saved before that check is ignored until you change that automation.
  • A group whose rules are all ignored is ignored too; with no other conditions, the automation runs.

A Rule the App Can't Use

The condition dialog only builds rules the app can check. If a stored automation holds one it cannot — a group inside a group, a rule of an unknown kind or with the wrong fields, or a value of only spaces — that automation never runs, and Settings → Automation shows a banner naming the rule. The form leaves such rules out, so saving the page removes them; an automation left with no rule it can check is switched off rather than running for every order.

Good to Know

  • Automation respects your plan's monthly document limit: at the limit the run is skipped and recorded in the order's Document History.
  • If a document cannot be prepared for a moment (a brief outage, Shopify busy), the app tries again by itself for up to 20 minutes. Only if every try fails is the run recorded in the order's history as failed, with the reason.
  • With Only the First Event, an order that already has an up-to-date saved PDF reuses it.
  • Only a run that made or sent the document counts as the first event: a run skipped by a condition or the monthly limit, or one that failed before its PDF was made, can run again on a later event of the same trigger — in practice only When the Order Is Edited, since an order is created once and Shopify reports the payment once.
  • Shopify sends a draft-order edit on every save. With Send an Updated Estimate on Each Change, an edit saved while the previous estimate is still being sent is skipped.
  • Automatic runs are marked "Auto ·" in the order's Document History.
  • Generating on order created or paid also keeps the order's metafield values from that moment; see Metafields.

Was this guide missing something? Tell us and we will fix it.

Contact Us