AI Cold Email Automation (n8n)
Two human-in-the-loop n8n workflows that research company websites with Groq, draft quality-checked cold emails, and dispatch approved sends.

Two n8n workflows that draft and send personalised cold emails with a human in the loop. The drafting workflow reads leads from Google Sheets, skips invalid and duplicate leads, researches each company's website with an AI model (Groq), writes a short email, and runs a rule-based quality check. Drafts are saved for manual review. The sending workflow sends only approved drafts, after checking an unsubscribe list, a pause switch and a daily limit, then logs every send.
Operational Challenge
Automated outbound tools often send generic or hallucinated AI emails without human oversight, fail on broken prospect URLs, or risk spamming unsubscribed contacts.
Intended Audience & Use Case
B2B agencies, SaaS founders, and business development teams that want AI-assisted personalization with strict human approval before sending.
System Design & Data Flow
Two decoupled n8n workflows backed by Google Sheets as the operational ledger: Workflow 1 fetches leads, scrapes/researches company websites, drafts via Groq (openai/gpt-oss-20b), and runs a JavaScript quality gate; Workflow 2 checks approval status, unsubscribe list, global pause switch, and daily send caps before dispatching via Gmail.
Important Technical Decisions
- —Separated drafting and sending into two distinct workflows with an explicit human approval column so no unreviewed AI copy is ever emailed.
- —Added a JavaScript rule-based quality checker validating greeting, length, banned words, and invented facts before saving a draft.
- —Handled unreachable or malformed prospect websites gracefully inside the loop so a single bad URL never halts the batch run.
Features Implemented
- Human approval before any email is sent
- Duplicate and unsubscribe protection
- Fail-safe pause switch
- Quality checker for greeting, length, banned words and invented facts
- Bad websites are skipped without stopping the run
Testing & Engineering Notes
- —Tested end-to-end using owned test email addresses and controlled Google Sheets lead lists.
- —Verified duplicate suppression, unsubscribe list matching, and fail-safe pause switch behavior.
- —Next iteration scoped for structured error logging and delivery analytics.