Classify emailed attachments as invoices, quotes, POs and more
A multi-agent n8n setup pulls attachments from a busy email account and uses Gemini to label each as invoice, quote, statement, PO or other. ·
- What they did
- In a roughly 50-node n8n workflow, the builder pulls attachments from a high-traffic email account and sends them to Gemini to classify as invoice, quote, statement, PO, or other. Most files are routed into matching Google Drive folders; for POs, the flow calls QuickBooks Online, finds the matching estimate, adds the PO number, uploads the document, and creates the corresponding invoice. They also added retry handling, an error folder, and spreadsheet checkpoints to trace each document.
- How it went
- The post gives no production results yet; the workflow was still new and the builder said they were nervous about moving it into the live environment. Its main stated safeguard is logging each document’s path or failure point.
- Worth knowing
- Expect extra work on failure handling: they added checkpoints throughout plus an error Google Drive folder and spreadsheet log for timed-out API steps.
Try it yourself with n8n
Build a workflow that watches [email account or label], downloads each new attachment, and uses Gemini to classify it as invoice, quote, statement, purchase order, or other. Add the label and sender to a row in [Google Sheet or folder] along with the attachment name. Test it on [number] sample emails and show me the results before you turn it on, and do not forward or delete any emails.
Want help getting this working? Join the Vibe Coding Academy ↗ Run by Alex Finn, who also runs this site.
Source: Reddit · Apr 6, 2026
Related use cases
Orchestrate a multi-phase RAG migration
A walkthrough of using Gemini CLI to coordinate a complex, multi-phase cloud migration project.
Find local business leads and send personalized cold emails
An n8n agent scrapes Google Maps for businesses, enriches leads with Owler and Apollo, writes personalized cold emails and logs leads in Google Sheets.
Write and send AI newsletters automatically
An n8n agent finds a trending AI topic, writes a newsletter with Gemini, formats it and emails it to subscribers without manual work.
Run a solo company with eight agent departments
A founder set up CEO, CFO, COO, lawyer, accountant, marketing, CTO, and improver agents that share memory and consult each other.
Triage email by voice while walking
Allie Miller used ChatGPT voice mode with Codex to triage important emails, draft replies, archive or delete items and log action items.
Rename and sort 100+ images into folders
The poster gave ChatGPT Agent a zip of over 100 images to rename by content and sort into subfolders, and said it did a pretty solid job.
Get 5 like this every morning
The best things people got an AI agent to do, each with the prompt to try it.