Gmail Document Classifier (Auto-label Invoices, Contracts, Receipts)

Scans Gmail hourly for emails with attachments and auto-applies labels by document type (Invoice, Contract, Receipt, Statement, Report) using editable keyword rules. Core nodes only (Gmail, Code, Schedule, Aggregate) - works on n8n Cloud and self-hosted.

Template + install guide: Claude Artifact

Happy to answer questions about the setup.

Nice use case! One edge case worth testing is how the workflow handles emails with multiple attachments, ambiguous filenames, and messages that get picked up again on the next hourly run. Adding duplicate-processing protection and a clear error/retry path could make it more reliable for day-to-day business use.

I work with n8n, Python, APIs, and PostgreSQL, focusing on reliable automation and error handling. If you need help testing edge cases or extending the workflow, I’d be interested in discussing a small paid task. Could you share the workflow JSON or setup guide?