What the source did
- Gmail trigger checks every minute; an If node skips the firm's own sent emails so auto-replies don't loop.
- Logs every email to Google Sheets on arrival.
- One Gemini call classifies and summarizes into JSON: KANDIDAT (candidate), KLIEN (client) or SPAM.
- Candidates get an instant auto-reply. Clients get a Gemini-drafted reply saved as a Gmail draft, never auto-sent, plus a Slack alert to #sales-leads. Spam is labeled.
- Built for PrimaSolusi Consulting, an HR consultancy.
Summary written by Agent Cookbook. See the original for the full context.
Get their template
Made and published by u/malbagir2803 (r/n8n). Start here; it is their original, not ours.
Their prompt
From u/malbagir2803's workflow Their exact wording: the client-reply prompt from the workflow file. The classifier prompt in the file is in Indonesian. Source ↗
Approval rule
Set it up
- Import his workflow JSON into n8n.
- Add your Gmail, Gemini, Google Sheets and Slack credentials, and put your own address in the self-email If node.
- Rewrite the categories, auto-reply and draft instructions for your business.
- Add a catch-all branch for model output that matches no category (commenters' suggestion).
- Keep client replies as drafts.
Common failures
- Auto-replies trigger the workflow again; filter out your own address.
- Output that matches no category disappears silently; log it and alert.
Variations
- Grok Bot routine with Gmail drafts.
Get the 10 best agent setups. Free.
Plus new recipes every week. One email, no spam.
Unsubscribe anytime. Privacy