Skip to content

Weekly

Get weekly store numbers compared to last week

A Monday post gives revenue, orders, average order value and best sellers, each against the week before.

Runs
Weekly
Apps
WooCommerce
AI
Not needed
Access
read

Send this to your assistant

Create a ClickRuntime automation: every Monday at 8am, Slack me last week's WooCommerce revenue, order count, average order value and top 5 products, with the change from the week before.

Paste it into your assistant. It tells you what it will send or change before it runs live.

First time? Adding ClickRuntime to your assistant takes about two minutes.

Why use it

Why teams use this automation

Plenty of WooCommerce owners look at revenue when a payment lands or when the accountant asks, not on a fixed rhythm. That makes drift easy to miss. Average order value can slide a few dollars a week after a shipping-fee change, or a best seller can quietly fall out of the top five, and neither shows up in a single day's dashboard glance.

Every Monday, the previous week's sales report and top-selling products are pulled from WooCommerce. They are compared against the numbers stored from the week before, and one Slack message goes out with revenue, order count, average order value, the percentage change on each and the best sellers.

It suits small teams that want a standing Monday number to open the week with, and founders who have never had time to build a proper reporting sheet.

What you get out of it

  • Order value drift is caught

    A slow fall in average order value after a free-shipping threshold change is easy to miss day to day but obvious when this week sits next to last week in the same message.

  • Best sellers are tracked weekly

    If the product that carried the store for months drops down the ranking, you see it within seven days and can check stock, price or a competitor's offer. The comparison also shows whether a lost sale was a one-off or the start of a pattern.

  • Promotions get a fair test

    Running a discount code for one week and reading the revenue and order change on Monday gives you a straight answer on whether it earned more than it cost. Because both weeks come from the same report, the result is comparable and not skewed by definitions.

  • Everyone quotes the same figures

    Posting to a shared Slack channel means marketing, operations and the owner argue about decisions rather than about whose export of the numbers was right. That matters most for owners whose freelancers, partners and investors all ask the same questions.

  • No spreadsheet to maintain

    The week-over-week comparison comes from stored values, not a sheet someone has to paste into, so the report does not stop the first time the person who built it goes on leave.

How it works

What happens, step by step

  1. Once a week, ClickRuntime pulls the week's sales report and top sellers from your WooCommerce store.

  2. It compares revenue, orders and average order value with the numbers it saved last week.

  3. The figures are posted to your #sales Slack channel with the change against last week next to each one.

Before it runs live

  • Connect WooCommerce

What you get

RunsWeekly
Get weekly store numbers compared to last weektoday, 9:00Succeeded
Slack · #salesRevenue: $14,820.00 (+12%) · Orders: 211 (+8%) · Average order: $70.24 (+4%)

Build your own

Need it to work differently?

This template is a starting point. Copy the prompt and change it, or describe a different automation from scratch, with your own conditions, more apps or an AI step. Your assistant writes it, tests it and runs it on ClickRuntime.
  • 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

  • Run it at a different time, more or less often, or only on weekdays
  • 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

This is the Python script that runs each time the automation starts. Your AI assistant writes it for you when you send the prompt, and you allow each step in your assistant. To change how the automation works, describe the change to your assistant and it updates the script for you. For every function it can use, see the script reference.
weekly_sales_kpis.pyexample
from clickruntime import on_trigger, credentials, http, state, notify

STORE = "https://yourstore.com/wp-json/wc/v3"

def change(now, before):
    return f" ({(now - before) / before:+.0%})" if before else ""

@on_trigger
def run(event):
    auth = (credentials.secret("WC_CONSUMER_KEY"), credentials.secret("WC_CONSUMER_SECRET"))
    sales = http.get(f"{STORE}/reports/sales", auth=auth, params={"period": "last_week"}).json()[0]
    top = http.get(f"{STORE}/reports/top_sellers", auth=auth, params={"period": "last_week"}).json()[:5]
    revenue, orders = float(sales["total_sales"]), int(sales["total_orders"])
    aov = revenue / orders if orders else 0
    prev = state.get("last_week") or {}
    lines = [f"Revenue: ${revenue:,.2f}{change(revenue, prev.get('revenue'))}",
             f"Orders: {orders}{change(orders, prev.get('orders'))}",
             f"Average order: ${aov:,.2f}{change(aov, prev.get('aov'))}",
             "Top products: " + ", ".join(f"{t['name']} ({t['quantity']})" for t in top)]
    notify.slack("*Last week in the store*\n" + "\n".join(lines), channel="#sales")
    state.set("last_week", {"revenue": revenue, "orders": orders, "aov": aov})
    return {"revenue": revenue, "orders": orders}

FAQ

Common questions

What does the Slack message include?
It lists total revenue, number of orders, average order value, the change against the previous week for each of those, and your top-selling products. The first run has no earlier week to compare, so it simply stores the figures for the next report.
Which orders count toward revenue?
The figures come from WooCommerce's own sales report for the week, so they follow what that report counts, which depends on your order statuses. Refunds and cancelled orders are treated the way WooCommerce treats them in that report.
Can it post to a channel the whole company sees?
Yes. The message goes to whichever Slack channel you pick during setup, and moving it to a different channel later is a quick change to make with your AI assistant, followed by approving the edit.
What permissions does it need?
read. Nothing else in your accounts is used.
Does it need AI?
No. It runs without AI, so it doesn't use your plan's AI allowance.
How many runs does it use?
One run each time it runs (weekly). Checks that find nothing to do and stop right away aren't counted.
Can I change how it works?
Yes. Describe the change to your AI assistant, for example a different schedule, channel or filter. It updates the automation, tests it and tells you what changed.

Set up “Get weekly store numbers compared to last week” from your assistant

Copy the prompt above, or connect your assistant first. Free plan, no credit card.