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.
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
Once a week ClickRuntime reads last week's orders from your Notion database.
It works out the numbers that matter, such as how many orders arrived on time and in full.
AI adds a short comment on what stood out.
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
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
- 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
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?
Which data does the AI see?
Does it work with a database that has no date property?
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
Save a daily research digest to Notion
Each morning new articles from the feeds you follow are summarised, tagged and filed as pages in Notion.
See how it worksTurn one idea into a week of posts in Notion
Each week your next ready idea becomes seven dated post drafts in your Notion content calendar.
See how it worksSummarise long comment threads in Notion
Each evening long discussions on your project pages get a summary comment, and you get the highlights by email.
See how it worksKeep exploring
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.