Skip to content

Weekdays at 09:00

Post yesterday's Shopify orders to Slack

Every weekday at 9, yesterday's order count and revenue are posted to your sales channel.

Runs
Weekdays at 09:00
Apps
Shopify, Slack
AI
Not needed
Access
Shopify orders read (Admin API token); Slack post to one channel

Send this to your assistant

Create a ClickRuntime automation: every weekday at 9, fetch yesterday's orders from our Shopify store and post the count and total revenue to #sales.

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

In most online stores, only one or two people check the Shopify admin every morning. Everyone else, from marketing to fulfilment to customer service, works without knowing whether yesterday was a good day or a slow one.

This template posts yesterday's order count and revenue to your team's Slack channel every weekday morning. Everyone starts the day with the same numbers, and nobody has to log in to find them.

What you get out of it

  • The whole team sees results

    Marketing can see whether yesterday's campaign worked, and the warehouse knows what volume to expect.

  • Spot problems early

    A sudden drop in orders can mean a broken checkout, a payment problem or an ad that stopped running. Seeing it the next morning limits the damage.

  • Fewer people need admin access

    Sharing numbers in Slack means fewer staff accounts in your store admin, which is simpler and safer.

  • A daily habit

    A short post at the same time each day builds a rhythm the team looks forward to, especially on good days.

  • Easy to extend

    Ask your assistant to add the best-selling product, average order value or a comparison with last week.

How it works

What happens, step by step

  1. At 09:00 on weekdays the script asks Shopify for yesterday's orders.

  2. It totals the count and revenue.

  3. It posts one message to #sales.

Before it runs live

  • Save a Shopify Admin API token as SHOPIFY_ADMIN_TOKEN
  • Connect Slack

What you get

RunsWeekdays at 09:00
Post yesterday's Shopify orders to Slacktoday, 9:00Succeeded
Slack · #salesYesterday: 47 orders, $6,320 revenue. Largest order #1092 ($540).

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 Google Sheets
  • Combine it with other Shopify and Slack 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.
shopify_daily_orders.pyexample
from datetime import date, timedelta
from clickruntime import on_trigger, http, notify, credentials

SHOP = "your-store.myshopify.com"

@on_trigger
def run(event):
    day = date.today() - timedelta(days=1)
    r = http.get(f"https://{SHOP}/admin/api/2024-10/orders.json",
        params={"status": "any", "created_at_min": f"{day}T00:00:00", "created_at_max": f"{day}T23:59:59"},
        headers={"X-Shopify-Access-Token": credentials.secret("SHOPIFY_ADMIN_TOKEN")})
    orders = r.json()["orders"]
    total = sum(float(o["total_price"]) for o in orders)
    notify.slack(f"Yesterday: {len(orders)} orders, ${total:,.0f} revenue.", channel="#sales")

FAQ

Common questions

Which timezone is yesterday?
Your automation's timezone. The schedule runs at 09:00 local time, including across daylight saving changes.
What about weekend orders?
Ask your assistant to include Saturday and Sunday in Monday's post, or to run every day of the week.
Is my Shopify token safe?
It's saved in your ClickRuntime dashboard, encrypted and write-only. The assistant only sees the name SHOPIFY_ADMIN_TOKEN. A token with read access to orders is enough.
Can it handle more than one store?
Yes. Save a token for each store and ask your assistant to post one combined message or one per store.
What permissions does it need?
Shopify orders read (Admin API token); Slack post to one channel. 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 (weekdays at 09:00). 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 “Post yesterday's Shopify orders to Slack” from your assistant

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