Inbox Triager
Open Gmail to a sorted inbox and replies already drafted. Takes about 30 minutes to set up. It never sends an email for you.
What it does
- Clears the noise for free. Newsletters, receipts and app notifications are spotted from the email headers and archived. No AI call, so no cost.
- Sorts mail from real people. Each one gets a label:
urgent,reply,read,financeorjunk. You also get a one-line summary and a priority. - Writes the first draft. If an email needs an answer, a draft appears in the thread, written the way you write. You edit it and hit send.
- Asks you when it's unsure. If the AI can't decide, hits an error, or gets an email trying to boss it around, it flags the message for you.
What's included
| README.md | Setup guide: three ways to run it, step by step |
| prompts/system-prompt.md | The instructions the AI follows. You fill in the [brackets] |
| prompts/voice-calibration.md | 10-minute exercise so drafts sound like you |
| prompts/daily-digest-prompt.md | Optional morning summary of your inbox |
| prompts/user-message-template.md | How each email is passed to the model |
| n8n/inbox-triager.n8n.json | Import-ready n8n workflow (16 nodes) |
| python/triage.py | The same agent as one Python file |
| python/requirements.txt · .env.example | Python dependencies and settings |
| examples/sample-emails.json | 8 test emails, including a phishing attempt |
| examples/expected-output.md | What correct results look like |
| TOOLS.md | What you need and what it costs to run |
| TROUBLESHOOTING.md | 12 common problems and fixes |
| LICENSE.txt | Use for yourself and your clients |
Requirements
Setup
The full guide, with copy-paste commands, is in README.md. In short:
Download and unzip the kit
After checkout you're taken straight to the download page. Bookmark it; if you lose it, email us and we'll resend it.
Fill in the prompt
Open
prompts/system-prompt.mdand replace each[BRACKET]: one line about your work, the people who should never be marked junk, and how you write.voice-calibration.mdturns five of your sent emails into a style description.Create seven labels in Gmail
Settings → Labels → Create new label:
triage/urgent,triage/reply,triage/read,triage/finance,triage/notification,triage/newsletter,triage/junk. (The Python version creates them for you.)Import the workflow into n8n
Workflows → Import from file →
n8n/inbox-triager.n8n.json. Connect your Gmail account on the four Gmail steps and your OpenAI key on "Ask the model", then paste your prompt into its body.Test it on one email
Send yourself an email and leave it unread. Click Test workflow. Within a few seconds it should have a
triage/…label.Turn it on
Set the workflow to Active. It checks for new mail every minute. For the first week, read every draft before you send it.
Prefer Python? pip install -r requirements.txt, add your key to .env, then python triage.py --demo to try it offline on the sample emails.
Example run
The 8 sample emails included in the kit, run through the Python version during our sample-data test (the AI step was a stand-in, so your model's summaries and priorities will differ). Rows marked rules never call the AI.
$ python triage.py --demo --ai urgent 1 ai Dana Ortiz Homepage launch blocked — need the final hero co reply 3 ai Sam Lee Coffee sometime? finance 4 rules Stripe Your receipt from Figma #2231-0042 newsletter 4 rules Lenny's Newsletter How the best PMs run planning notification 4 rules GitHub [acme/web] PR #412: Fix nav overflow (merged) junk 3 ai Growth Partner Quick question {{first_name}} read 3 ai Priya Shah Shared: Q2 roadmap draft junk 3 ai Unknown Action required: account suspended ⚑ needs human
Alternatives
Don't want to pay? These free setups do something similar. They take more fiddling.
Questions
Do I need to know how to code?
No. The n8n option is import, connect and switch on. The Python option is for people who prefer a script; every command is in the guide.
Will it send emails for me?
No. There is no code in the kit that sends, forwards or deletes email. It adds labels, archives low-value mail (you can find it under All Mail) and saves drafts for you to review.
What does it cost to run?
The kit is $19 once. You pay your AI provider for usage: with gpt-4o-mini, a typical inbox costs well under $1 a month, because newsletters, receipts and notifications are filed by free rules without calling the AI. n8n is free to self-host; n8n Cloud is a paid plan.
Does it work with Outlook?
Not in v1. It is built for Gmail and Google Workspace. The prompt works anywhere, so adapting it to n8n's Outlook nodes is possible but not covered by the guide.
Which AI models work?
Any OpenAI-compatible API with JSON output: OpenAI, OpenRouter, Groq, or a local model through Ollama. You change one line.
What has been tested?
On Nov 25, 2026 we imported the workflow into n8n 2.49.6 and ran it end-to-end on the 8 sample emails, with Gmail and the AI model replaced by stand-ins. All 8 were routed correctly. The Python version was run the same way. A live test on a real Gmail inbox is next; the badge will change when it's done.
Refunds?
If you can't get it working, email us within 14 days and we'll help or refund you in full. See the refund policy.