Weekly
Get a weekly spending summary from Airtable
Each Monday you get last week's totals by category, with a note on anything unusual.
- Runs
- Weekly
- Apps
- Airtable
- AI
- Yes, uses the built-in AI allowance
- Access
- data.records:read
Send this to your assistant
Create a ClickRuntime automation: every Monday at 8am, email me last week's spending from my Airtable Invoices table, totalled by category, with a short comment on anything unusual.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
A manager, a founder or a project lead who keeps work in Airtable, such as orders, support requests, hours, leads or expenses, still has to answer the weekly question: how did the week go? That means opening the base, filtering to the past seven days, counting by category, adding up amounts and noticing what stands out. It takes half an hour of fiddling, and the answer lives in someone's head or a screenshot rather than in a place the rest of the team can read.
Each week, the automation lists the records for the past week, groups them by the category you choose and calculates the totals. You can add a short written commentary produced by ClickRuntime's built-in AI, which points out the biggest change and anything unusual. The result arrives in your inbox.
It works for team leads, small business owners and anyone who reports numbers on a weekly rhythm.
What you get out of it
The weekly report writes itself
Totals and highlights are ready when you start the week, so the half hour that went into assembling them can be spent on deciding what to do about them. A tedious chore becomes a message you simply read.
The same format every week
Reports built the same way each time are easy to compare. You can see at a glance whether this week was better than last without working out what changed in the layout.
Commentary highlights what matters
The AI reads the numbers and points out what moved the most, so a busy reader sees the main point first instead of searching the table. The reader gets the point in seconds, and the table below it supports the claim.
Others can read it without Airtable
Sending the summary by email means colleagues, clients and investors can follow progress without a login or training, and the record sits in their inbox. That also spares you from sharing the base itself, which may contain details others should not see.
A history builds up automatically
A folder of weekly emails becomes an archive of how the business or project developed, handy for quarterly reviews and for explaining a change in direction. It is a record that costs nothing to keep.
How it works
What happens, step by step
Every Monday, ClickRuntime collects last week's records from your Airtable spending table.
It adds up the totals for each category and the overall total.
AI looks over the numbers and adds a short note on anything unusual.
The summary is emailed to you, for example "Travel is about double a normal week, mostly one booking".
Before it runs live
- Connect Airtable
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 Airtable steps into one automation
Under the hood
The code that runs this automation
from collections import defaultdict
from clickruntime import on_trigger, credentials, http, ai, notify
BASE_ID = "appXXXXXXXXXXXXXX"
@on_trigger
def run(event):
records = http.get(f"https://api.airtable.com/v0/{BASE_ID}/Invoices",
headers={"Authorization": f"Bearer {credentials.connection('airtable', 'work')}"},
params={"filterByFormula": "IS_AFTER({Date}, DATEADD(TODAY(), -7, 'days'))"}).json()["records"]
totals = defaultdict(float)
for r in records:
totals[r["fields"].get("Category", "Uncategorised")] += float(r["fields"].get("Amount") or 0)
lines = [f"{cat}: ${amt:,.2f}" for cat, amt in sorted(totals.items(), key=lambda x: -x[1])]
report = "\n".join(lines) + f"\n\nTotal: ${sum(totals.values()):,.2f}"
try:
comment = ai.generate(report, system="In 2 sentences, point out anything unusual in this weekly spend.",
max_output_tokens=120).text
except (ai.AINotIncluded, ai.AILimitReached):
comment = ""
notify.email_me("Last week's spending", f"{report}\n\n{comment}".strip())
return {"categories": len(totals)}FAQ
Common questions
Does the AI make up numbers?
Can I group by more than one field?
What if a week has no records?
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
Get daily post drafts in Airtable to review
Each morning fresh drafts on your topics are waiting in Airtable, marked for your review.
See how it worksCollect Hacker News job posts in Airtable
Each 'Who is hiring' post is turned into a searchable record with company, role, location, remote and salary.
See how it worksKeep Airtable prices up to date
The prices and values in your table update on their own every hour.
See how it worksKeep exploring
Set up “Get a weekly spending summary from Airtable” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.