Every 10 minutes
Sort your Outlook inbox and get urgent emails on Telegram
New emails are labelled by topic, and the urgent ones reach your phone on Telegram with a one-line summary.
- Runs
- Every 10 minutes
- Apps
- Outlook, Telegram
- AI
- Yes, uses the built-in AI allowance
- Access
- Mail.ReadWrite; bot token
Send this to your assistant
Create a ClickRuntime automation: every 10 minutes, sort my new Outlook emails into categories and send me the urgent ones on Telegram with a short summary.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
A business owner who is out on site most of the day can't keep Outlook open, but some emails really can't wait until evening: a client with a problem, a supplier changing a delivery, a bank query.
Sorting every new email and sending only the urgent ones to Telegram means those few messages reach the phone straight away, while the rest are labelled and waiting for when there's time to sit down.
What you get out of it
Only what matters reaches your phone
Newsletters and routine mail stay in Outlook. Your phone buzzes for the handful of emails that need you today.
A summary you can read in seconds
Each alert says who wrote and what they want in one line. You can decide whether to deal with it now without opening the email.
An inbox that's already sorted
Every email gets a category in Outlook. When you sit down, you can work through one topic at a time.
Fits how you work away from a desk
Telegram is fast and quiet on a phone. It works on a patchy connection where a full mail app struggles.
How it works
What happens, step by step
Every 10 minutes it looks for emails that arrived since the last check.
AI reads each one and picks a category and whether it is urgent, with a one-line summary.
The category is added to the email in Outlook.
Urgent emails are sent to you on Telegram with the sender and the summary.
It remembers the newest email it has seen, so nothing is handled twice.
Before it runs live
- Connect Outlook
- Connect Telegram
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
- 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 Outlook and Telegram steps into one automation
Under the hood
The code that runs this automation
GRAPH = "https://graph.microsoft.com/v1.0"
TG = "https://api.telegram.org"
from clickruntime import on_trigger, credentials, http, state, ai, report_fetched
MY_CHAT_ID = 123456789
SCHEMA = {"type": "object", "properties": {"category": {"type": "string"}, "urgent": {"type": "boolean"},
"summary": {"type": "string"}}, "required": ["category", "urgent", "summary"]}
@on_trigger
def run(event):
h = {"Authorization": f"Bearer {credentials.connection('microsoft', 'work')}"}
since = state.get("since") or "2026-01-01T00:00:00Z"
msgs = http.get(f"{GRAPH}/me/mailFolders/inbox/messages", headers=h, params={"$filter": f"receivedDateTime gt {since}",
"$orderby": "receivedDateTime", "$select": "id,subject,from,bodyPreview,receivedDateTime"}).json()["value"]
report_fetched(len(msgs))
if not msgs:
return {"summary": "Nothing new"}
bot = f"{TG}/bot{credentials.secret('TELEGRAM_BOT_TOKEN')}"
for m in msgs:
r = ai.generate(f"From: {m['from']['emailAddress']['address']}\n{m['subject']}\n{m['bodyPreview'][:1500]}",
system="Categorise as Clients, Suppliers, Finance, Newsletters or Other. Urgent = needs action today. Summary: one line.",
json_schema=SCHEMA, max_output_tokens=80).json
http.patch(f"{GRAPH}/me/messages/{m['id']}", headers=h, json={"categories": [r["category"]]})
if r["urgent"]:
http.post(f"{bot}/sendMessage", json={"chat_id": MY_CHAT_ID, "text": f"❗ {m['from']['emailAddress']['address']}: {r['summary']}"})
state.set("since", msgs[-1]["receivedDateTime"])
return {"sorted": len(msgs)}FAQ
Common questions
How does it decide what's urgent?
Can it summarise PDF attachments?
Does it move emails out of my inbox?
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
Send e-books to your Kindle from Telegram
Forward an e-book to your Telegram bot and it arrives on your Kindle a few minutes later.
See how it worksGet a Telegram ping for each sale and thank the buyer by email
Every sale pings your phone on Telegram and the customer gets a thank-you email from your Outlook address.
See how it worksSend this week's Outlook events to a Telegram group
Each morning your Telegram group gets today's, tomorrow's and the rest of the week's events from Outlook.
See how it worksKeep exploring
Set up “Sort your Outlook inbox and get urgent emails on Telegram” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.