Skip to content

Weekly

Get a weekly report from your Notion data

Each Monday a report page with last week's numbers is added to Notion, and you get a short commentary by email.

Runs
Weekly
Apps
Notion
AI
Yes, uses the built-in AI allowance
Access
read+write

Send this to your assistant

Create a ClickRuntime automation: every Monday at 8am, work out the on-time and in-full rates from last week's rows in my Notion Orders database, add a report page with the numbers, and email me a short commentary on what changed.

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

An operations lead logs support tickets, deliveries or production incidents in a Notion database all week: a Type, a Severity, a Resolved date, a Time to fix. Nobody has time to read through two hundred rows on Friday, so management only hears about the most recent fire. Patterns, like one recurring cause or a slow category, stay buried in the table.

Once a week, last week's rows are queried, simple metrics are computed (counts by type, average time to resolve, open versus closed) and ClickRuntime's built-in AI writes commentary that points out what stood out. The result is saved as a new report page in Notion and emailed to you.

Good for support leads, project managers and founders who want a Friday readout without building a dashboard. It also suits teams that report to clients and need a consistent weekly format.

What you get out of it

  • Recurring problems get noticed

    When the same cause appears in a third of this week's tickets, the commentary names it. A fix is prioritized sooner than if rows were scanned by eye. Issues cost less when caught early.

  • Leadership gets a readout without a meeting

    A page and an email give executives the week's story in two minutes, so weekly review meetings can focus on decisions instead of reading numbers aloud. Short readouts also reach people who would never open the database.

  • Numbers are computed, not guessed

    Counts and averages come from the rows themselves before the AI writes anything, so the commentary rests on figures you can trace back to the database. That keeps the report trustworthy when someone asks where a number came from.

  • A growing library of reports

    Each week's report is its own Notion page. After a quarter, you can compare them and show whether resolution times are improving. They also make good attachments for monthly reviews.

  • Hours saved on manual reporting

    Pulling a filtered view, copying figures into a doc and writing a summary usually takes an afternoon. Having the draft appear on its own gives that time back. The report arrives on time every week, even in holiday periods.

How it works

What happens, step by step

  1. Once a week ClickRuntime reads last week's orders from your Notion database.

  2. It works out the numbers that matter, such as how many orders arrived on time and in full.

  3. AI adds a short comment on what stood out.

  4. The report is saved as a new page in Notion and emailed to you.

Before it runs live

  • Connect Notion and share the database you want it to use

What you get

RunsWeekly
Get a weekly report from your Notion datatoday, 9:00Succeeded
Email · OTIF last week: 91%Orders: 142 On time: 94% In full: 96% OTIF: 91% Late deliveries were concentrated in the Northwind region on Wednesday.

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 Slack
  • Combine it with other Notion 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.
weekly_ai_report_from_a_notion_database.pyexample
from datetime import date, timedelta
from clickruntime import on_trigger, credentials, http, ai, notify

NOTION = "https://api.notion.com/v1"

def headers():
    return {"Authorization": f"Bearer {credentials.secret('NOTION_TOKEN')}", "Notion-Version": "2022-06-28"}

def query(db, body=None):
    resp = http.post(f"{NOTION}/databases/{db}/query", headers=headers(), json=body or {})
    resp.raise_for_status()
    return resp.json()["results"]

def title(page, prop="Name"):
    return "".join(t["plain_text"] for t in page["properties"][prop]["title"])

ORDERS, REPORTS = "orders-database-id", "reports-database-id"

@on_trigger
def run(event):
    start = (date.today() - timedelta(days=7)).isoformat()
    rows = query(ORDERS, {"filter": {"property": "Delivered", "date": {"on_or_after": start}}})
    on_time = sum(r["properties"]["On time"]["checkbox"] for r in rows)
    in_full = sum(r["properties"]["In full"]["checkbox"] for r in rows)
    both = sum(r["properties"]["On time"]["checkbox"] and r["properties"]["In full"]["checkbox"] for r in rows)
    n = len(rows) or 1
    stats = f"Orders: {len(rows)}\nOn time: {on_time / n:.0%}\nIn full: {in_full / n:.0%}\nOTIF: {both / n:.0%}"
    http.post(f"{NOTION}/pages", headers=headers(), json={
        "parent": {"database_id": REPORTS},
        "properties": {"Name": {"title": [{"text": {"content": f"OTIF week of {start}"}}]}},
        "children": [{"paragraph": {"rich_text": [{"text": {"content": stats}}]}}]}).raise_for_status()
    comment = ai.generate("Write three sentences of commentary on these weekly delivery numbers:\n" + stats,
                          max_output_tokens=200).text
    notify.email_me(f"OTIF last week: {both / n:.0%}", f"{stats}\n\n{comment}")
    return {"orders": len(rows)}

FAQ

Common questions

How does it decide what to highlight?
The metrics are computed first, then the AI is asked to point out the biggest shifts, outliers and repeated causes from those numbers and rows. You can tell it what matters, such as SLA breaches or refund volume.
Which data does the AI see?
It sees the rows and computed metrics from last week's query, which may include whatever properties you select. If a database holds sensitive fields, you can limit the query to the properties the report needs.
Does it work with a database that has no date property?
The query needs some way to find last week's rows. Notion's built-in Created time property works for that, so databases without a custom date column can still be reported on. Some teams also create the property just for reporting.
What permissions does it need?
read+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 (weekly). 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 “Get a weekly report from your Notion data” from your assistant

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