Write compliant cold email drafts in Gmail with OpenAI and Precleared MCP
UnknownWhat this workflow does
This AI workflow has 22 nodes and runs on a schedule (every week at 09:00). Along the way it connects Google Sheets, OpenAI Chat Model, HTTP Request and Gmail and 1 more.
How it runs
Trigger: On a schedule (every week at 09:00).
- Your details (Edit Fields (Set)): sets 12 fields: sender_name, sender_company, postal_address…
- Get leads from your sheet (Google Sheets): uses Google Sheets
- Only new leads (Filter): keeps only the items that match a condition
- Cap today's batch (Limit): keeps the first few items
- One lead at a time (Loop Over Items (Split in Batches)): loops over the items in batches
- Check cold email law (Precleared): check recipient
- Route by verdict (Switch): routes items into 1 branches
- Log check error (Google Sheets): update
- Draft the email (AI Agent): runs an AI agent, with model: OpenAI Chat Model; 1 tool (read_company_website); output parser: Email format
- Log not emailed (Google Sheets): update
…plus 8 more steps. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other OpenAI + Google Sheets templates (2,011) · Other OpenAI + Gmail templates (1,623)
Before you upgrade to n8n 3.0
We can't fully verify this one: it relies on 1 community package, and n8n 3.0 turns unverified community packages off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).
- Check that n8n-nodes-precleared is verified or supports 3.0 (used in Check cold email law).
Nodes used (15)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - Google Sheets
n8n-nodes-base.googleSheets - Filter
n8n-nodes-base.filter - Limit
n8n-nodes-base.limit - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Precleared
n8n-nodes-precleared.precleared - Switch
n8n-nodes-base.switch - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Http Request Tool
n8n-nodes-base.httpRequestTool - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - If
n8n-nodes-base.if - Gmail
n8n-nodes-base.gmail - Wait
n8n-nodes-base.wait
From the author
Quick overview This workflow takes a list of leads, asks Precleared (via MCP) if each recipient can be emailed under common anti-spam/privacy rules, uses OpenAI to draft a short personalized cold email only when allowed, verifies the Precleared receipt, and…