Alert When a Shopify Product Sells 10 Units
Shopify shows how much a product sold, but nothing tells you the moment it crosses a milestone worth acting on, like the point where it's time to ask your supplier for a bulk quote. This workflow keeps a running count of paid units for every product in a MESA data table, and the first time a product reaches 10, it posts a Slack alert with a supplier request Claude drafted for you. Each product alerts once, never twice.
How it works
8 steps to know the moment a product hits 10 units sold, with a supplier request ready to send
When a Shopify order is paid, count its units
When a Shopify order is paid, count its units
Go through each product in the order
Go through each product in the order
Look up the product's running sales total
Look up the product's running sales total
Add this order's units to the product total
Add this order's units to the product total
Continue only at 10+ units with no alert sent
Continue only at 10+ units with no alert sent
Mark the product's alert as sent
Mark the product's alert as sent
Claude drafts a request to the supplier
Claude drafts a request to the supplier
Post the milestone and draft to Slack
Post the milestone and draft to Slack
Ready to know the moment a product hits 10 units sold, with a supplier request ready to send
Get setup in 8 minutes.
FAQs
Will a product alert more than once?
No. The workflow records the alert date on the product's data record before it posts anything, and the filter skips any product that already has one, so each product alerts a single time even if an order is retried.
Do refunds and cancellations lower the count?
Not in this workflow, which counts paid units. To keep the total net of returns, add a second workflow on Shopify Refund Created or Order Canceled that subtracts the refunded quantities from the same data record.
Does it count orders from before I turned it on?
No, it counts orders paid after the workflow is enabled. To start from your history, run a one-time workflow with Shopify Get List of Orders that adds past quantities to the table and sets alert sent for products already past the threshold, so they don't all alert at once.
Can I use a different threshold?
Yes. Change 10 in the filter to any number, or add a threshold field to each product's record so different products alert at different totals.
Personalize this template
Customize this workflow even further:
You're in good company
"MESA has been a game changer for us. And, if you ever get stuck, their support team is always super helpful."
"It's like Zapier but exactly designed for Shopify. I have been able to complete all the workflows that I've needed."
"The MESA team has been amazing at helping us set up our automations. We would highly recommend this app!"
know the moment a product hits 10 units sold, with a supplier request ready to send
8 min setup • Fully supported if you need help
