Steps
Try it on samples
Download the inbox summariser agent and run
python3 inbox_summariser.py --eml-dir sample_emails --dry-run.Connect via IMAP
Set
IMAP_HOST,IMAP_USERand an app password.HOURS=24controls the window.Decide on AI
Leave
OPENAI_API_KEYempty to keep everything on your machine, with a rule-based summary. Add a key, or a local Ollama URL, for “needs a reply” detection.Email it to yourself
Set
EMAIL_TO. It reuses your IMAP login to send.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
- Get a daily AI news digest in your inbox (build it in 5 minutes)
- Hacker News daily digest by email, filtered by your keywords (free script, tested)
- n8n Gmail Trigger not working: not firing, silent errors and fixes
- RSS to email daily digest: all your feeds in one morning email (free script, tested)
- n8n Gmail node not working: Client authentication failed, invalid_grant, OAuth2 fixes
New guides
- GitHub release notifications in Slack (any public repo, stable releases only)
- Send RSS feeds to Slack with a keyword filter (free, incoming webhook)
- Forward emails to a Slack channel (Gmail, Outlook, any IMAP), free with an incoming webhook
- n8n Google Sheets Trigger not working: not firing, activation errors and fixes