// free agents / inbox-summariser

📬 Inbox summariser

“Every morning, summarise my unread emails and tell me which ones need a reply.”

Free, no sign-up. MIT licence. Python standard library only, so there's nothing to pip install.

What it does

Reads your unread emails from the last 24 hours over IMAP (Gmail, Outlook, Fastmail, iCloud...) without marking them as read, splits people from newsletters, groups replies into conversations, puts the emails that look like they need a reply first, optionally asks an AI for a short summary, and emails or prints it.

What you need

5-minute setup

Python

  1. Install Python 3.9+ and unzip the download.
  2. Try it with no accounts: python3 inbox_summariser.py --eml-dir sample_emails --dry-run
  3. Copy .env.example to .env and fill it in.
  4. Run: set -a; . ./.env; set +a; python3 inbox_summariser.py (Windows steps in the README).

n8n (no code)

  1. Workflows, then Import from file, then inbox-summariser.n8n.json.
  2. Follow the yellow “Read me” note (credentials or webhook).
  3. Test workflow, then switch it to Active.

Run it on a schedule

Every day at 08:00 with cron:

0 8 * * * cd /path/to/inbox-summariser && set -a && . ./.env && set +a && python3 inbox_summariser.py >> run.log 2>&1

On Windows use Task Scheduler. With n8n, the Schedule node does it for you.

Settings

VariableWhat it does
IMAP_HOST / IMAP_USER / IMAP_PASSWORDe.g. imap.gmail.com / you@gmail.com / your app password
IMAP_FOLDERDefault INBOX
HOURSDefault 24
PEOPLEOptional: comma-separated addresses or @domains always treated as people, e.g. @myclient.com
BULKOptional: addresses or @domains always treated as newsletters
SMTP_HOST, EMAIL_TOOptional: email the summary (reuses your IMAP login by default)
OPENAI_API_KEY / OPENAI_BASE_URL / OPENAI_MODELOptional AI summary (only emails from people are sent, newsletters are just counted)

What we tested

Honest limits

Related guides

Want one built for your task?

Describe it in one sentence. We build it, test it and email it to you, usually within 24h. Free while we're in beta.

We'll only email you about your agent and TaskToAgent.