Skip to content

The moment it happens

Post every Lemon Squeezy order to Slack

Each sale lands in your channel with the product, buyer and total as soon as it's paid.

Runs
The moment it happens
Apps
Lemon Squeezy
AI
Not needed
Access
API key

Send this to your assistant

Create a ClickRuntime automation: when a new Lemon Squeezy order comes in, post the product name, customer email and order total to #sales 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

When a sale comes in through Lemon Squeezy, the team usually wants to know. A makers' collective wants to celebrate the first sale of a new product, a support person wants to be ready for questions from a new buyer, and a founder wants confirmation that the checkout link in last night's email actually works. Without a live signal, people keep refreshing the dashboard or learn about sales from a payout summary.

For each order, Lemon Squeezy posts a webhook to ClickRuntime. The automation first verifies the X-Signature header, so that only genuine Lemon Squeezy requests are accepted, then posts the order into your Slack channel with the product, amount and customer. It runs as soon as the order is created.

It suits small teams who like a live sales feed during launches.

What you get out of it

  • Launch moments are shared live

    A feed of sales during a product launch makes the day feel real for everyone involved, and gives you instant proof that the new checkout works as intended. Everyone involved feels the result straight away.

  • Only real orders are accepted

    Checking the signature on each request means a fake call to the webhook URL cannot put a false order into your channel. People can trust what they read there. That keeps the feed clean and the numbers believable.

  • Support knows who just bought

    When a customer writes in about their download two minutes after buying, the support person has already seen the order in Slack and can answer with confidence. A calm, informed answer reflects well on the business.

  • Pricing experiments show results fast

    If you test a discount or a new price, the order feed tells you within hours whether people are buying. You do not have to wait for a daily summary to judge the change.

  • A searchable trail of purchases

    Slack search finds a customer's order by name or product in seconds. That is quicker than navigating the Lemon Squeezy dashboard when someone asks about a purchase. That is handy when a refund or tax question comes up.

How it works

What happens, step by step

  1. When someone buys from your Lemon Squeezy store, Lemon Squeezy tells ClickRuntime straight away.

  2. ClickRuntime checks the message really came from Lemon Squeezy.

  3. A message goes to your #sales Slack channel with the product, the buyer's email and the amount.

Before it runs live

  • Connect Lemon Squeezy
  • Paste your automation's link into the other app's webhook settings

What you get

RunsThe moment it happens
Post every Lemon Squeezy order to Slackjust nowSucceeded
Slack Β· #salesπŸ›’ Icon Pack Pro bought by dana@acme.example: $39.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 Lemon Squeezy 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_lemon_squeezy.pyexample
from clickruntime import on_event, credentials, notify

import hashlib, hmac

def signed(event):
    digest = hmac.new(credentials.secret("LEMONSQUEEZY_SIGNING_SECRET").encode(), event.body.encode(),
                      hashlib.sha256).hexdigest()
    return hmac.compare_digest(digest, event.header("X-Signature") or "")

@on_event
def handle(event):
    if not signed(event):
        return {"posted": False, "reason": "bad signature"}
    body = event.json
    if body["meta"]["event_name"] != "order_created":
        return {"posted": False}
    order = body["data"]["attributes"]
    notify.slack(f"πŸ›’ {order['first_order_item']['product_name']} bought by {order['user_email']}: "
                 f"{order['total_formatted']}", channel="#sales")
    return {"order": body["data"]["id"]}

FAQ

Common questions

What is the X-Signature check and why does it matter?
Lemon Squeezy signs each webhook with a secret and puts the result in the X-Signature header. The automation recomputes it and rejects requests that do not match. That prevents anyone who finds your webhook URL from posting made-up orders into Slack.
Does it post test mode orders as well?
Lemon Squeezy has a test mode with its own orders and webhooks. If your webhook is registered for test mode, test orders are posted, which is handy for checking the setup. The message can mark them as test orders, so nobody mistakes them for sales.
Will large volumes of orders flood Slack?
For most small businesses a post per order is fine. If sales become frequent, such as dozens per hour, you can ask for a daily or hourly summary instead, or for individual posts only when an order is above a chosen amount.
What permissions does it need?
API key. 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 for each event the app sends.
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 every Lemon Squeezy order to Slack” from your assistant

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