Write and score cold email variants as Gmail drafts with OpenAI and Sheets
Ready for 3.0What this workflow does
This AI workflow has 16 nodes and runs when someone submits an n8n form (“Cold email variant tester”). Along the way it connects Google Sheets, OpenAI Chat Model, Google Gemini Chat Model and Gmail.
How it runs
Trigger: When someone submits an n8n form (“Cold email variant tester”).
- Clean Prospect Fields (Code): runs custom JavaScript code
- Check Suppression List (Google Sheets): uses Google Sheets
- Already Contacted? (If): checks a condition and branches into true / false
- Show Duplicate Notice (n8n Form): shows the next form page
- Cold Email Writer (AI Agent): runs an AI agent, with model: Writing Model, Fallback Writing Model; output parser: Variant Format
- Score Deliverability (Code): runs custom JavaScript code
- Clears The Quality Bar? (If): checks a condition and branches into true / false
- Create Approved Draft (Gmail): work with draft
- Create Flagged Draft (Gmail): work with draft
- Build Sequence Rows (Code): runs custom JavaScript code
…plus 2 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (10)
- n8n Form Trigger
n8n-nodes-base.formTrigger - Code
n8n-nodes-base.code - Google Sheets
n8n-nodes-base.googleSheets - If
n8n-nodes-base.if - n8n Form
n8n-nodes-base.form - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Gmail
n8n-nodes-base.gmail
From the author
Quick overview This workflow collects prospect details via an n8n form, uses OpenAI (ChatGPT) to generate a personalized cold email and subject line, sends the email through Gmail, and logs the outreach to Google Sheets for tracking. How it works 1. Receives…