Stuck order chaser
Automation template · Orders & Customers ·View source
Every morning, finds paid orders that have not shipped in time or whose tracking stopped moving, lists them in Slack and drafts a short delay email to each customer, sent only after you approve it.
How it works
- Trigger
- Every morning
- Finds
- Paid orders not shipped after a set number of days, and shipments whose tracking has not moved
- Posts
- The stuck orders to Slack, oldest first, with what is holding each one up
- Drafts
- A short, honest delay email per customer, sent with Resend once you approve
- Remembers
- Which orders were emailed, so no customer hears about the same delay twice
What it needs
SlackPosts the list of stuck orders to your team's channel
Shopify (optional)Reads orders, fulfillments and carrier tracking events when the store runs on Shopify
Resend (optional)Sends each approved delay email to the customer
From your data. The agent finds the matching fields in your schema and confirms them with you.
- The order number the customer knows
- When the order was placed
- Whether the order is paid
- Whether the order is unshipped, partly shipped, shipped or delivered
- When the order was handed to the carrier (optional)
- The carrier's tracking link, for the email (optional)
- The customer's email address
- The customer's first name, for the greeting (optional)
You'll choose
- When to check · default 0 8 * * *Every day at 8:00 by default
- Time zone · default Europe/London
- Slack channelWhere the list of stuck orders is posted
- Not shipped after (days) · default 3A paid order with nothing shipped after this many days counts as stuck
- Tracking silent for (days) · default 4A shipment with no tracking update for this many days, and not delivered, counts as stuck
- Draft delay emails · default onDraft one email per stuck order (needs Resend); nothing is sent without approval
- Where customers replyThe support address for replies, e.g. help@northline.example; the email shows it
- Language · default English
Works best with
The agent offers to set these skills up too, or to use ones you already have.
Example output
Slack, #orders
5 orders are stuck, 2 new today Overdue: #10482, Priya — not shipped, 7 days (Linen Overshirt, Sand, L) #10511, Tom — delivery problem, 3 days: “Attempted delivery, no access to building” (Royal Mail) #10530, Ana — tracking stalled, 5 days: last event “Arrived at sorting centre, Leeds” (DPD) — new #10544, Jonas — not shipped, 3 days (Ceramic Pour-Over Set) — new #10549, Mei — not shipped, 3 days (2 of 3 items shipped; Beeswax Candle, Large still waiting)
2 delay emails are waiting for approval.
Draft email to ana@example.com, waiting for approval
Subject: An update on your order #10530
Hi Ana,
Your order left us on 19 November, but DPD has not updated its tracking since it reached their Leeds sorting centre five days ago. We have asked DPD to look into it and will follow up as soon as we hear back. You can check the latest status here: https://track.dpd.example/15501234.
Sorry for the wait.
If you have any questions, just write to help@northline.example.
Northline Goods
Show the instructions
Stuck order chaser
Find the paid orders that are late before their customers have to ask, tell the team in {{channel}}, and draft an honest delay email for each one. Report each delay once: an order already reported for the same reason is not news.
1. Find the stuck orders
Read orders placed in the last 60 days that are paid and not cancelled, refunded or delivered. Leave out test orders, orders for pickup in store, and orders marked as pre-orders or made to order (their dates are known to be later).
An order is stuck when one of these is true:
- Not shipped: nothing has shipped {{unshippedDays}} or more days after it was paid. A partly shipped order is stuck when its remaining items pass the same limit.
- Tracking stalled: it has shipped, is not delivered, and its tracking has had no new event for {{stalledDays}} or more days. Use the time of the latest carrier tracking event; when the order has no tracking events at all, use the date it shipped.
- Delivery problem: the carrier reported a failed delivery or a problem (failure, attempted delivery, returned to sender) and nothing has happened since.
For each stuck order, note why (not shipped, tracking stalled, delivery problem), how many days it has been, the items still missing, and the carrier with its latest event when there is one.
2. Remember what was reported
Use your automation memory, keyed by order id and reason. An order is newly stuck when it was not stuck for the same reason on the previous run. When an order ships, is delivered or is cancelled, forget it, so a new problem later is reported again.
If no order is newly stuck, and no order has been stuck for twice its limit (still unresolved and worth repeating once), end the run as skipped (Finish Run with status skipped) so nothing is posted.
3. Post to Slack
Stage one message for {{channel}}:
- First line: how many orders are stuck and how many are new today, e.g. “6 orders are stuck, 2 new today”.
- Then one line per order, oldest first: order number, customer first name, reason, days, and what is missing or the latest tracking event. Mark orders stuck for twice their limit as overdue.
- Keep it under 15 lines; with more, list the 15 oldest and say how many more there are.
Flag the run when any order is overdue or has a delivery problem.
4. Draft delay emails (only when drafting is on: {{draftCustomerEmails}})
Skip this step when drafting is off or Resend is not connected. Draft only for newly stuck orders, one email per order, never a second email for the same order and reason.
Write in {{language}}. When a customer communication skill is loaded, follow it.
- Subject: “An update on your order” followed by the order number.
- Body, three to five short sentences: greet the customer by first name when known; say plainly that the order is taking longer than it should and what you know (not shipped yet, or the carrier has not updated the tracking since a date); say what the store is doing about it; give the tracking link when there is one; apologise once.
- Never promise a delivery date the store does not know, never blame the customer, and never offer a refund or discount unless the team adds one.
- End with where to reply: {{replyTo}}. The email goes out from Resend, which does not receive replies, so this address must be in the email. If it is empty, flag the run and leave the emails out until the team sets one.
Propose each email for approval and never send one directly. After an email is sent, record the order id, reason and date in your memory.
5. Report
Summarise how many orders are stuck by reason, how many are new, how many emails are waiting for approval, and any order you could not check (for example a shipment without a carrier).