Flatpack Agents
Directory / Premium kits / Inbox Triager
Premium · Kit 01Tested on sample data · Nov 25, 2026

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.

n8nPythonGmailOpenAI-compatibleGmail / Google Workspace
Cost$19 once · model use under $1/mo
Runs onn8n or your computer (Python)
Setup30 min
Versionv1.0 · Nov 25, 2026

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, finance or junk. 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.
New emailGmail Free rulesheaders AI modelpeople's mail Filed directlyno AI cost Label +draft reply newsletter · receipt · notificationurgent · reply · read · junk
What happens to each new email.

What's included

README.mdSetup guide: three ways to run it, step by step
prompts/system-prompt.mdThe instructions the AI follows. You fill in the [brackets]
prompts/voice-calibration.md10-minute exercise so drafts sound like you
prompts/daily-digest-prompt.mdOptional morning summary of your inbox
prompts/user-message-template.mdHow each email is passed to the model
n8n/inbox-triager.n8n.jsonImport-ready n8n workflow (16 nodes)
python/triage.pyThe same agent as one Python file
python/requirements.txt · .env.examplePython dependencies and settings
examples/sample-emails.json8 test emails, including a phishing attempt
examples/expected-output.mdWhat correct results look like
TOOLS.mdWhat you need and what it costs to run
TROUBLESHOOTING.md12 common problems and fixes
LICENSE.txtUse for yourself and your clients

Requirements

A Gmail or Google Workspace accountThe agent needs permission to read, label and create drafts.
An AI API keyOpenAI, or any OpenAI-compatible provider. Usage is billed by them.
n8n or Python 3.10+n8n Cloud or self-hosted n8n for the automatic version; Python if you'd rather run a script.
About 30 minutesMost of that is connecting Gmail and writing two lines about yourself.

Setup

The full guide, with copy-paste commands, is in README.md. In short:

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

  2. Fill in the prompt

    Open prompts/system-prompt.md and replace each [BRACKET]: one line about your work, the people who should never be marked junk, and how you write. voice-calibration.md turns five of your sent emails into a style description.

  3. 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.)

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

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

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