Skip to content

On a schedule

Post a monthly summary of your Supabase figures to Slack

On the 1st of each month, Slack gets a short written summary of last month's figures from your Supabase table, with the changes from the month before.

Runs
On a schedule
Apps
Slack, Supabase
AI
Yes, uses the built-in AI allowance
Access
Supabase read; Slack chat:write

Send this to your assistant

Create a ClickRuntime automation: on the 1st of each month, summarise last month's numbers in my Supabase market_data table against the previous month and post it to #updates.

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 property team collects rents, prices and listings into a Supabase table all month. The numbers are there, but turning them into 'what happened this month' is an analyst's afternoon, and the update often slips.

Calculating month-on-month changes and having AI write a short summary gives the whole team the monthly picture on day one, without anyone writing it.

What you get out of it

  • A monthly update that always happens

    The summary arrives on the 1st every month, no matter who's on holiday.

  • Figures and words together

    The exact changes are listed, followed by a plain-English read.

  • Calculated, not guessed

    Averages and changes are computed from your data before AI writes anything.

  • Shared in one place

    Everyone in #updates sees the same summary.

How it works

What happens, step by step

  1. On the 1st of each month, ClickRuntime reads last month's and the previous month's rows from your Supabase table.

  2. It calculates the average and change for each area.

  3. AI writes a short summary of the biggest moves.

  4. It posts the figures and summary to #updates in Slack.

Before it runs live

  • Connect Slack, then invite the app to the channel (type /invite @ClickRuntime there)
  • Connect Supabase

What you get

RunsOn a schedule
Post a monthly summary of your Supabase figures to Slacktoday, 9:00Succeeded
Slack · #updatesSeptember 2026 market summary · Riverside: 1,420 (+2.1%) · Old Town: 1,180 (-0.8%)

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
  • Change what the AI looks for, or how it writes the result
  • Add another app, for example also send it to Google Sheets
  • Combine it with other Slack and Supabase 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.
monthly_market_summary_from_supabase_to_slack.pyexample
from datetime import date, timedelta
from statistics import mean
from clickruntime import on_trigger, credentials, http, notify, ai
SUPABASE = "https://your-project.supabase.co/rest/v1"

def sb(method, path, **kw):
    key = credentials.secret("SUPABASE_KEY")
    r = http.request(method, f"{SUPABASE}/{path}", **kw, headers={"apikey": key, "Authorization": f"Bearer {key}", "Prefer": "return=representation,resolution=merge-duplicates"})
    return r.raise_for_status() or (r.json() if r.content else None)

@on_trigger
def run(event):
    end = date.today().replace(day=1)
    start = (end - timedelta(days=1)).replace(day=1)
    prev = (start - timedelta(days=1)).replace(day=1)
    rows = sb("GET", f"market_data?date=gte.{prev}&date=lt.{end}&select=area,date,avg_rent")
    def avg(area, a, b):
        vals = [r["avg_rent"] for r in rows if r["area"] == area and str(a) <= r["date"] < str(b)]
        return mean(vals) if vals else None
    lines = []
    for area in sorted({r["area"] for r in rows}):
        now, before = avg(area, start, end), avg(area, prev, start)
        if now and before:
            lines.append(f"{area}: {now:,.0f} ({(now / before - 1):+.1%})")
    figures = "\n".join(lines)
    summary = ai.generate(f"Write a 3-sentence plain summary of these monthly average rent changes by area:\n{figures}", max_output_tokens=150).text
    notify.slack(f"*{start:%B %Y} market summary*\n{figures}\n\n{summary}", channel="#updates")
    return {"areas": len(lines)}

FAQ

Common questions

Which figures are included?
The columns you name, such as average rent and listing count, grouped by area or category.
Does AI do the maths?
No. All figures are calculated by the script; AI only writes the summary sentences.
Can it compare with the same month last year?
Yes, if your table goes back that far. Ask for a year-on-year column.
What permissions does it need?
Supabase read; Slack chat:write. Nothing else in your accounts is used.
Does it need AI?
Yes. It uses ClickRuntime's built-in AI, so you don't need an OpenAI or Anthropic key. Every plan includes a monthly AI allowance.
How many runs does it use?
One run each time it runs (on a schedule). 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 a monthly summary of your Supabase figures to Slack” from your assistant

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