Alert When a Shopify Product Sells 10 Units

8 min setup
No coding required
Runs automatically

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.

Shopify logo icon
When a Shopify order is paid, count its units
Mark the product's alert as sent
Claude drafts a request to the supplier
slack logo icon
Post the milestone and draft to Slack

How it works

8 steps to know the moment a product hits 10 units sold, with a supplier request ready to send

Shopify logo icon

When a Shopify order is paid, count its units

App connector: Shopify • Time to complete: 1 minute

Run once for every order that is marked as paid.

Go through each product in the order

App connector: Loop • Time to complete: 1 minute

Loop over the order's line items so every product in it is counted on its own.

Look up the product's running sales total

App connector: Data • Time to complete: 1 minute

Read the product's record from a MESA data table keyed by product ID, holding the units sold so far and whether its alert has gone out.

Add this order's units to the product total

App connector: Data • Time to complete: 1 minute

Add the line item's quantity to the product's units sold, creating the record with that quantity if it is the product's first sale.

Continue only at 10+ units with no alert sent

App connector: Filter • Time to complete: 1 minute

Continue only if the product's units sold is now 10 or more and its alert-sent field is still empty, so a product never alerts twice.

Mark the product's alert as sent

App connector: Data • Time to complete: 1 minute

Set the product's alert-sent field to today's date before anything is posted, so a retried order can't send a second alert.

Claude drafts a request to the supplier

App connector: Claude • Time to complete: 1 minute

Give Claude the product title, SKU, vendor and units sold, and ask for a short, friendly supplier message asking for a bulk quote, a sample of an improved version, or both.

slack logo icon

Post the milestone and draft to Slack

App connector: Slack • Time to complete: 1 minute

Post the product name, units sold, a link to the product in Shopify admin and Claude's supplier draft to your sourcing or ops channel.

Trusted by 1,000+ merchants
Logo: Rothy's Logo: Adidas Logo: Allure Logo: GQ Logo: DraftKings Logo: Chubbies Logo: Made In Cookware Logo: MUD/WTR

Ready to know the moment a product hits 10 units sold, with a supplier request ready to send

Get setup in 8 minutes.

Use this template →

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:

Subtract refunds and cancellations
Add a second workflow on Refund Created or Order Canceled that subtracts the affected line item quantities from each product's record.
Email the supplier draft instead
Swap the Slack step for MESA's Send Email to send the alert and Claude's draft to your purchasing inbox.
Tag milestone products
Add Shopify Product Add Tag after the filter to tag the product, for example 10-SOLD, so you can build a collection or report from them.

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."

  • Ico star
  • Ico star
  • Ico star
  • Ico star
  • Ico star
PetFriendly

"It's like Zapier but exactly designed for Shopify. I have been able to complete all the workflows that I've needed."

  • Ico star
  • Ico star
  • Ico star
  • Ico star
  • Ico star
Zailys

"The MESA team has been amazing at helping us set up our automations. We would highly recommend this app!"

  • Ico star
  • Ico star
  • Ico star
  • Ico star
  • Ico star
Rothy's

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