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.
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
At 09:00 on weekdays the script asks Shopify for yesterday's orders.
It totals the count and revenue.
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
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
- 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
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?
What about weekend orders?
Is my Shopify token safe?
Can it handle more than one store?
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
Get low-stock warnings from Shopify in Slack
Each morning Slack lists the products that will run out within two weeks at their current sales rate.
See how it worksGet a Slack alert when orders stop or ship late
Slack tells you when no orders have come in for longer than usual, or when paid orders are waiting too long to ship.
See how it worksPost a weekly Shopify sales report in Slack
Every Monday Slack shows last week's orders, revenue and best sellers, with a short comment on what changed.
See how it worksKeep exploring
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.