Skip to content

Every 5 minutes

Post new Squarespace orders to Slack

Within about five minutes of checkout, each order appears in Slack, never twice.

Runs
Every 5 minutes
Apps
Squarespace
AI
Not needed
Access
Orders read

Send this to your assistant

Create a ClickRuntime automation: every 5 minutes, look for new Squarespace orders and post the order number, customer, items and total to #shop-orders in Slack.

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

A new order is the happiest message a Squarespace store can receive, and many owners rely on email notifications to find out about it. Those emails join the rest of the inbox, and for a team, only the person whose address receives them sees them. Packing, customer service and the owner each find out at different times. Orders are noticed late, and the energy of a good sales day is lost on people who might otherwise celebrate it or prepare for it.

Every five minutes, ClickRuntime lists orders modified since its last check through the Squarespace API, skips any order IDs it has seen before, and posts each new one to your Slack channel with order number, items and total. A shared channel replaces a private inbox.

Small teams with a packer, a customer-service person and an owner use it most, as do shops that run sales promotions.

What you get out of it

  • The whole team sees orders at once

    Packing, support and the owner all notice a new order in the same place within minutes, so no one has to forward emails or ask whether anything has come in.

  • Packing starts sooner

    A visible list of orders in the channel lets the person who ships begin right away. Faster packing means faster delivery, and customers who receive things early leave better reviews.

  • Sales days feel shared

    During a launch or a promotion, a stream of orders in a channel is motivating. Teams react, spot problems such as a broken discount code, and stay engaged with the result.

  • Duplicates never appear

    Order IDs already posted are skipped, so edits or later updates to an order do not produce a second message. The channel remains a clean list of distinct new orders. A tidy channel stays readable, and people keep it open.

  • Email notifications can be reduced

    When orders appear in Slack, owners can switch off the stream of individual order emails, which clears the inbox and leaves email for messages that need a reply. Fewer individual emails also mean fewer notifications competing for your attention.

How it works

What happens, step by step

  1. Every 5 minutes, ClickRuntime checks your Squarespace store for new or updated orders.

  2. It skips any order it has already posted.

  3. Each new order goes to your #shop-orders Slack channel with the order number, customer, items and total.

Before it runs live

  • Connect Squarespace

What you get

RunsEvery 5 minutes
Post new Squarespace orders to Slacktoday, 9:00Succeeded
Slack · #shop-ordersOrder #1187: Dana Fox 2× Hand-thrown bowl, 1× Linen napkin set Total: USD 96.00

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

  • 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 Squarespace 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.
new_order_to_slack.pyexample
from datetime import datetime, timezone
from clickruntime import on_trigger, credentials, http, state, notify, report_fetched

@on_trigger
def run(event):
    now = datetime.now(timezone.utc).strftime("%Y-%m-%dT%H:%M:%SZ")
    since = state.get("checked_at") or now
    resp = http.get("https://api.squarespace.com/1.0/commerce/orders",
                    params={"modifiedAfter": since, "modifiedBefore": now},
                    headers={"Authorization": f"Bearer {credentials.secret('SQUARESPACE_API_KEY')}",
                             "User-Agent": "ClickRuntime"})
    resp.raise_for_status()
    seen = set(state.get("seen") or [])
    orders = [o for o in resp.json()["result"] if o["id"] not in seen]
    report_fetched(len(orders))
    if not orders:
        return {"new": 0}
    for o in orders:
        items = ", ".join(f"{i['quantity']}× {i['productName']}" for i in o["lineItems"])
        b = o["billingAddress"]
        notify.slack(f"Order #{o['orderNumber']}: {b['firstName']} {b['lastName']}\n{items}\n"
                     f"Total: {o['grandTotal']['currency']} {o['grandTotal']['value']}", channel="#shop-orders")
    state.set("seen", (list(seen) + [o["id"] for o in orders])[-500:])
    state.set("checked_at", now)
    return {"new": len(orders)}

FAQ

Common questions

Why check every five minutes and not instantly?
Squarespace does not push order events for all stores, so the run checks for new orders on a schedule. Five minutes gives a quick enough picture and stays well within API limits. A small delay is acceptable here.
What does the Slack post contain?
It lists the order number, items ordered with quantities, order total and customer name. A link to the order in Squarespace can be added, so the packer can open the full details with one click.
Will edits to an order cause another post?
The run asks for orders modified since the last check, but each order ID is remembered. An order that was already posted is skipped even if it changes later, so people see it only once.
What permissions does it need?
Orders 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 checks. Checks that find nothing new 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 new Squarespace orders to Slack” from your assistant

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