WALEED.
Back to All Case StudiesPortfolio Demonstration
SECTION 04/ AI / ML // 2026

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.

PLATE 04AI Cold Email Automation (n8n)
[ SYSTEM PREVIEW // 04 ]PRODUCTION BUILD
AI Cold Email Automation n8n workflow: Google Sheets leads, Groq research, AI agent drafting and quality check
VERIFIED ARCHITECTUREWALEED // 04
CASE STUDY SPECIFICATION2026

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.

TECHNOLOGIES USED
n8nGroq (openai/gpt-oss-20b)Google SheetsGmailJavaScript
01 // PROBLEM IT ADDRESSES

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.

02 // TARGET USERS

Intended Audience & Use Case

B2B agencies, SaaS founders, and business development teams that want AI-assisted personalization with strict human approval before sending.

03 // SOLUTION ARCHITECTURE

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.

04 // ARCHITECTURE CHOICES

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.
05 // CAPABILITIES

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
06 // QUALITY & RIGOR

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.
NEED A SIMILAR SYSTEM BUILT FOR YOUR BUSINESS?

Let's Architect Your Custom Solution