Every 5 minutes
Get alerts when a Notion value goes out of range
When a reading or metric in your database passes your limit, you hear about it once, not on every check.
- Runs
- Every 5 minutes
- Apps
- Notion
- AI
- Not needed
- Access
- read
Send this to your assistant
Create a ClickRuntime automation: every 5 minutes, check my Notion Machines database and post to #maintenance in Slack any row where Temperature is above 80 and Acknowledged isn't ticked. Only alert once per row.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
People use Notion to keep readings and counts that matter: stock levels in a small shop, temperature logs for a food business, student attendance, server costs entered weekly, a budget remaining per project. The numbers sit in a table and nothing reacts when one goes wrong. A fridge reading of 9 degrees is logged at noon and nobody looks until the next morning, by which time the stock has been in the danger zone for hours.
Every five minutes ClickRuntime queries your Notion database with a number filter, such as Temperature greater than 8, and skips records whose IDs it has already alerted on. For each new match it posts an alert with the record's details and remembers the ID, so the same reading does not trigger repeated messages.
Small businesses, labs and schools that keep operational logs in Notion use it as a simple safety net.
What you get out of it
Out-of-range values are acted on promptly
A bad reading triggers a message within minutes of being logged. Moving stock to another fridge that afternoon is far cheaper than discarding it the next day. Moving stock to another fridge that afternoon costs far less than discarding it the next morning.
Thresholds are written once and enforced always
The limit lives in the query, so everyone applies the same rule. Nobody has to remember that 8 is the cutoff when they enter the number. Nobody has to remember the cutoff when they type the number into the table.
Each reading alerts only once
Remembered IDs mean a single bad record does not produce an alert every five minutes. The channel stays readable, and a new alert signals a genuinely new problem. The channel stays readable, and a new alert signals a genuinely new problem.
A record shows what was done
The alert and the original row stay as evidence. In a food safety inspection, you can show when a reading was out of range and when someone responded. That helps in food safety inspections, insurance questions and incident reviews alike.
Works for any numeric property
Stock below reorder level, budget remaining under 10 percent, scores under a pass mark: all follow the same pattern. One approach covers many kinds of monitoring in a workspace. One approach covers many kinds of monitoring across the same workspace.
How it works
What happens, step by step
Every 5 minutes ClickRuntime checks your Notion database for values over your limit, such as a machine temperature above 80°C.
It skips anything it has already alerted on.
Each new alert is posted to your Slack channel with the item, the value and a link to its Notion page.
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
- 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 Notion steps into one automation
Under the hood
The code that runs this automation
from clickruntime import on_trigger, report_fetched, credentials, http, state, 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"])
MACHINES = "machines-database-id"
@on_trigger
def run(event):
rows = query(MACHINES, {"filter": {"and": [
{"property": "Temperature", "number": {"greater_than": 80}},
{"property": "Acknowledged", "checkbox": {"equals": False}}]}})
alerted = set(state.get("alerted") or [])
new = [r for r in rows if r["id"] not in alerted]
report_fetched(len(new))
if not new:
return {"summary": "Nothing new"}
for r in new:
temp = r["properties"]["Temperature"]["number"]
notify.slack(f":thermometer: {title(r)} is at {temp}°C\n{r['url']}", channel="#maintenance")
state.set("alerted", sorted(alerted | {r["id"] for r in new}))
return {"alerted": len(new)}FAQ
Common questions
Where are the alerts posted?
Can the threshold depend on the record?
What if a value is corrected later?
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
Export finished Notion pages to Markdown
When a page is marked ready, you get it as Markdown by email and the page is marked as exported.
See how it worksPost Notion database changes to Slack
Your team hears when a project is added or its status changes, without checking Notion.
See how it worksSummarise and tag new feedback in Notion
Each new feedback row gets a summary, a sentiment and tags, so you can sort and filter it without reading every entry.
See how it worksKeep exploring
Set up “Get alerts when a Notion value goes out of range” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.