Hi everyone,
I built a small workflow for a recurring pain in small businesses: one Gmail inbox mixing client requests, prospects, supplier invoices and newsletters.
What it does
- Triggers on new unread emails
- Classifies each email with Claude into 6 categories (client, prospect, supplier invoice, newsletter, ignore, other)
- Applies the matching Gmail label and logs the email in Google Sheets
- For clients and prospects, writes a reply as a Gmail draft, never sent automatically
Design choices
- Simple setup: the signature lives in one “Configuration” node, and the reply rules in the “Write reply draft” node
- Drafts instead of auto-send: the human stays in the loop, which also keeps things simpler on the GDPR side
- Everything is logged, so you can check the classifier’s decisions and refine the category descriptions
The workflow JSON is included at the bottom of this post (no credentials included). Replies are drafted in the language of the incoming email.
I’d love feedback on:
- how you handle misclassified emails (re-labelling flow?)
- whether you’d add a confidence threshold before drafting a reply
A setup guide (PDF, in French) is here if useful: Workflow n8n gratuit : trier ses e-mails avec l'IA
Workflow JSON (copy it and paste it into an n8n canvas with Ctrl+V)