The moment it happens
Spot customers who cross a spend milestone
You're told the moment a customer's lifetime spend passes your threshold, so you can thank them.
- Runs
- The moment it happens
- Apps
- WooCommerce
- AI
- Not needed
- Access
- read
Send this to your assistant
Create a ClickRuntime automation: when a WooCommerce order is completed, check that customer's total spend and Slack me in #vip if it has just gone past $1,000.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
Every shop has customers whose lifetime spend quietly passes the point where they deserve special treatment, such as a thank-you, early access or a direct line to the owner. WooCommerce stores each customer's total_spent, but it does not tell you when someone crosses a figure. The customer who reached 1,000 last month keeps getting the same anonymous service as a first-time buyer, and may drift away without ever feeling noticed.
When a customer is created or updated, for example after an order completes, the automation reads their total_spent value and compares it with the value it remembered. If they have crossed your threshold, it posts a message in Slack with the customer and their new total, exactly once.
It fits shops that want to treat their best buyers differently without watching a report.
What you get out of it
Thank people at the right moment
A personal note right after someone passes a milestone shows the shop noticed, which builds loyalty in a way a generic newsletter cannot. The cost is a few minutes of effort for a customer worth far more than that.
Keep top spenders from drifting
A customer who spent a lot is worth keeping. Knowing when they arrive lets you add them to a VIP list while the relationship is strong. Treating them as a group makes it easier to plan perks that feel genuine rather than random.
Reward without a loyalty platform
A Slack message and a manual perk such as free shipping costs far less than a points system, and suits shops with a modest number of top customers. Shops with a small number of excellent customers rarely need a full points scheme.
Each customer is flagged once
Because the remembered value is compared, a customer is announced only on crossing the line, not after every later order. That keeps the channel meaningful, since each message marks a real change and not noise.
Learn what top customers buy
Looking at what VIPs ordered shows which products attract your best buyers, which is useful for planning stock and promotions. Insights like that guide what to stock and which products to feature in emails.
How it works
What happens, step by step
When a WooCommerce order is completed, ClickRuntime checks how much that customer has spent in total.
It compares this with the total it saw last time, to tell when the customer has just crossed your milestone, such as $1,000.
When they do, a message goes to your #vip Slack channel with their name, email, total spend and number of orders.
Before it runs live
- Connect WooCommerce
- Paste your automation's link into the other app's webhook settings
What you get
Build your own
Need it to work differently?
Your own rules
Conditions, thresholds, filters and exceptions, written the way you'd explain them to a colleague.
Any number of apps
One automation can read from one app and update several others. Over 248 apps are ready, and anything with an API works too.
AI where it helps
Summaries, classification, extraction and drafts use ClickRuntime's built-in AI, with no extra key.
On a schedule or on each event
Runs as often as every 5 minutes, or the moment an app sends an event, and keeps track of what it already handled.
Changes you can ask for
- Act only on the items that match your own rules, and skip the rest
- Add an AI step, for example to summarize, sort or draft a reply
- Add another app, for example also send it to Slack
- Combine it with other WooCommerce steps into one automation
Under the hood
The code that runs this automation
from clickruntime import on_event, credentials, http, state, notify
STORE = "https://yourstore.com/wp-json/wc/v3"
VIP_LINE = 1000
@on_event
def handle(event):
order = event.json
if order.get("status") != "completed" or not order.get("customer_id"):
return {"checked": False}
auth = (credentials.secret("WC_CONSUMER_KEY"), credentials.secret("WC_CONSUMER_SECRET"))
cid = order["customer_id"]
orders = http.get(f"{STORE}/orders", auth=auth,
params={"customer": cid, "status": "completed", "per_page": 100}).json()
spent = sum(float(o["total"]) for o in orders)
before = state.get(f"spent:{cid}") or 0
state.set(f"spent:{cid}", spent)
if before < VIP_LINE <= spent:
customer = http.get(f"{STORE}/customers/{cid}", auth=auth).json()
notify.slack(f"🌟 {customer['first_name']} {customer['last_name']} ({customer['email']}) "
f"just passed ${VIP_LINE:,}: ${spent:,.2f} across {len(orders)} orders", channel="#vip")
return {"customer": cid, "spent": spent}FAQ
Common questions
What threshold should I use?
Does it count refunded orders?
Can I have more than one level, such as silver and gold?
What permissions does it need?
Does it need AI?
How many runs does it use?
Can I change how it works?
Related
You might also like
Keep WooCommerce products in sync with a supplier feed
Products sent to your link are created when the SKU is new, otherwise their price and stock are updated.
See how it worksPost big WooCommerce orders to Slack
Orders above your threshold show up in Slack with the number, total and a link as they come in.
See how it worksGet refund details in Slack
Every refund, partial ones included, is posted with the order number, amount and reason.
See how it worksKeep exploring
Set up “Spot customers who cross a spend milestone” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.