// guides

Get a daily AI summary of your unread email

Summarise yesterday's unread email into one short message: who needs a reply, what's a newsletter, what can wait. Free, private-by-default script for Gmail and Outlook.

Updated 2026-10-16 · about 10 minutes

Rather not set it up yourself? Describe your task in one sentence and we'll build and test it for you, free →

Steps

  1. Try it on samples

    Download the inbox summariser agent and run python3 inbox_summariser.py --eml-dir sample_emails --dry-run.

  2. Connect via IMAP

    Set IMAP_HOST, IMAP_USER and an app password. HOURS=24 controls the window.

  3. Decide on AI

    Leave OPENAI_API_KEY empty to keep everything on your machine, with a rule-based summary. Add a key, or a local Ollama URL, for “needs a reply” detection.

  4. Email it to yourself

    Set EMAIL_TO. It reuses your IMAP login to send.

  5. Schedule for 08:00

    0 8 * * *.

Privacy note

With an API key set, email text is sent to the AI provider you choose. Use a local model through Ollama if that matters to you.

Skip the setup: free download

The Inbox summariser agent does all of this. It's tested, MIT-licensed, and comes as an n8n workflow plus a Python script.

Get the free Inbox summariser agent → Or have us build yours →

FAQ

Does it mark emails as read?

No. It opens messages read-only.

Does it work with Gmail?

Yes, through IMAP and an app password. There's also an n8n version that uses n8n's Gmail credential.

Related guides

New 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.