Personalized cold email generator with Supabase, Smartlead & Google Gemini AI
Ready for 3.0Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.
Nodes used (10)
- Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Code
n8n-nodes-base.code - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Information Extractor
@n8n/n8n-nodes-langchain.informationExtractor - If
n8n-nodes-base.if - Aggregate
n8n-nodes-base.aggregate - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - HTTP Request
n8n-nodes-base.httpRequest - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Supabase
n8n-nodes-base.supabase
What it does
n8n Workflow: AI-Personalized Email Outreach (Smartlead) π Purpose This workflow automates cold email campaigns by: - Fetching leads - Generating hyper-personalized email content using AI - Sending emails via Smartlead API - Logging campaign activity into Google Sheets --- π§© Workflow Structure 1. Schedule Trigger - Starts the workflow automatically at scheduled intervals. - Ensures continuous campaign execution. 2. Get Leads - Fetches lead data (name, email, company, role, industry). - Serves as the input for personalization. 3. Loop Over Leads - Processes each lead one by one. - Maintains individualized email generation. 4. Aggregate Lead Data - Collects and formats lead attributes. - Prepares structured input for the AI model. 5. Basic LLM Chain 1 - Generates personalized snippets/openers using AI. - Tailored based on company, role, and industry. 6. Update Row (Google Sheets) - Saves AI outputs (snippets) for tracking and QA. 7. Basic LLM Chain 2 - Expands snippet into a full personalized email draft. - Includes subject line + email body. 8. Information Extractor - Extracts structured fields from AI output: - Subject - Greeting - Call-to-Action (CTA) - Closing 9. Update Row (Google Sheets) - Stores finalized draft in Google Sheets. - Provides visibility and audit trail. 10. Code - Formats email into Smartlead-compatible payload. - Maps fields like subject, body, and recipient details. 11. Smartlead API Request - Sends the personalized email through Smartlead. - Returns message ID and delivery status. 12. Basic LLM Chain 3 (Optional) - Generates follow-up versions for multi-step campaigns. - Ensures varied engagement over time. 13. Information Extractor (Follow-ups) - Structures follow-up emails into ready-to-send format. 14. Update Row (Google Sheets) - Updates campaign logs with: - Smartlead send status - Message IDs - AI personalization notes --- βοΈ Data Flow Summary - Trigger β Runs workflow - Get Leads β Fetch lead records - LLM Personalization β Create openers + full emails - Google Sheets β Save drafts & logs - Smartlead API β Send personalized email - Follow-ups β Generate and log structured follow-up messages --- π Use Case - Automates hyper-personalized cold email outreach at scale. - Uses AI to improve response rates with contextual personalization. - Provides full visibility by saving drafts and send logs in Google Sheets. - Integrates seamlessly with Smartlead for sending and tracking.