Curated by n8n Markets team
Last updated: April 19, 2026
Bismillahir Rahmanir Rahim # π AI Lead Generation & Personalized Outreach Engine ## Complete Setup Guide β n8n Workflow v1.0 --- ## π WHAT THIS WORKFLOW DOES This is the #1 most requested automation in the n8n market: AI-powered personalized cold email outreach at scale. Pain it solves: Sales teams waste 3β5 hours/day manually writing cold emails. This workflow: 1. Reads new leads from Google Sheets 2. Enriches their data (company info) 3. Uses GPT-4o-mini to write a unique, personalized email per lead 4. Scores email quality (skips low-quality ones) 5. Sends emails via Gmail automatically 6. Updates your spreadsheet with full tracking 7. Notifies your team on Slack Result: 100+ personalized cold emails sent automatically, every 6 hours, for ~$0.001/email. --- ## β‘ QUICK START (15 Minutes Setup) ### Step 1: Import the Workflow 1. Open your n8n instance 2. Click "+" β "Import from file" 3. Select ai_lead_engine_workflow.json 4. Click Import ### Step 2: Set Up Google Sheets 1. Create a new Google Sheet 2. Name the first sheet tab: "Leads" 3. Add these exact column headers in Row 1: ``` Name | Company | Email | Title | Industry | Website | CompanySize | Notes | Status | Email_Sent_Date | Email_Subject | Pain_Point_Identified | Personalization_Score | Email_ID ``` 4. Import leads_template.csv to see the format 5. Copy your Sheet ID from the URL: https://docs.google.com/spreadsheets/d/**THIS_IS_YOUR_ID**`/edit` ### Step 3: Connect Credentials #### Google Sheets (OAuth2) 1. In n8n, go to Credentials β New β Search "Google Sheets OAuth2" 2. Click Sign in with Google, allow access 3. In the workflow, click each Google Sheets node and select this credential 4. Replace YOUR_GOOGLE_SHEET_ID with your actual Sheet ID #### OpenAI API 1. Get API key from: https://platform.openai.com/api-keys 2. In n8n: Credentials β New β "OpenAI" 3. Paste your API key 4. Connect to both OpenAI nodes in the workflow 5. Cost estimate: ~$0.001 per email (gpt-4o-mini) #### Gmail (OAuth2) 1. In n8n: Credentials β New β "Gmail OAuth2" 2. Sign in with your Google account 3. In the Send Email node, update replyTo to YOUR email address 4. Connect to the Gmail node #### Slack (Optional) 1. In n8n: Credentials β New β "Slack OAuth2" 2. Authorize your workspace 3. In the Slack node, replace YOUR_SLACK_CHANNEL_ID with your channel ID 4. (To skip Slack, delete the Slack node β workflow still works) #### Hunter.io (Optional - for enrichment) 1. Get free API key at: https://hunter.io (100 searches/month free) 2. In the Hunter.io node, replace YOUR_HUNTER_IO_API_KEY 3. (To skip enrichment, delete the Hunter.io node β workflow still works) --- ## π GOOGLE SHEET COLUMNS EXPLAINED | Column | Description | Example | |--------|-------------|---------| | Name | Lead's full name | John Smith | | Company | Company name | Acme Corp | | Email | Work email | john@acme.com | | Title | Job title | Head of Marketing | | Industry | Business sector | SaaS | | Website | Company domain | acme.com | | CompanySize | Employee range | 51-200 | | Notes | Extra context for AI | "Grew 3x last year" | | Status | Set to "New" for leads to process | New | | Email_Sent_Date | Auto-filled | 4/19/2026 | | Email_Subject | Auto-filled | Quick question | | Pain_Point_Identified | Auto-filled | manual follow-up | | Personalization_Score | Auto-filled (0-100) | 87 | | Email_ID | Auto-filled tracking ID | EML-12345-ABC | > KEY: Only leads with Status = "New" get processed. After sending, status changes to "Contacted" automatically. --- ## βΆοΈ RUNNING THE WORKFLOW ### Automatic (Recommended) - Workflow runs every 6 hours automatically - Just keep adding leads with Status = "New" - Everything else is hands-free ### Manual Test Run 1. Click "Test Workflow" button in n8n 2. Check the execution log to see each step 3. Verify emails arrived in Gmail Sent folder 4. Check Google Sheet was updated ### Via Webhook (for CRM integration) ```bash POST https://YOUR_N8N_URL/webhook/lead-engine-webhook Content-Type: application/json {} ``` --- ## π§ CUSTOMIZATION ### Change Email Tone Find node "π€ AI: Generate Personalized Email" and edit the system prompt: - Add "Be more casual" or "Be more formal" - Add your product description: "We sell [PRODUCT] that helps [BENEFIT]" - Change language: "Write in Spanish" ### Change Send Frequency Click "β° Schedule Trigger" β change interval from 6 hours to: - 1 hour for high-volume campaigns - 24 hours for careful campaigns - Disable for fully manual control ### Change Quality Threshold Click "β Quality Check" node β change 65 to: - 80+ = only very personalized emails (lower volume, higher quality) - 50+ = more emails sent (higher volume) --- ## π° COSTS | Service | Free Tier | Cost at Scale | |---------|-----------|---------------| | n8n (self-hosted) | FREE forever | FREE | | n8n Cloud | 2,500 exec/month | $20/month | | OpenAI gpt-4o-mini | $5 free credit | ~$1 per 1,000 emails | | Hunter.io | 100 searches/month | $49/month for 1,000 | | Gmail | FREE | FREE | Total to run 500 emails/day: ~$0.50/day π― --- ## π¨ TROUBLESHOOTING "No items returned" from Google Sheets β Make sure at least one lead has Status = "New" (capital N) OpenAI JSON parse error β The fallback code handles this. Check execution logs for details. Gmail "Daily sending limit reached" β Gmail free limit: 500/day. For more, use Google Workspace or SMTP. "Invalid credentials" errors β Re-authorize credentials in n8n Settings β Credentials --- ## π EXPECTED RESULTS Based on community data: - β±οΈ Setup time: ~15 minutes - π§ Emails per run: Up to 50 (configurable) - π― Personalization score average: 75-85 - π¬ Open rate improvement vs generic: +34% - π° Cost per 1,000 emails: ~$2 --- Built with β€οΈ for the n8n community. Star this template if it helped you!
1. ai_lead_engine_workflow.json β Import directly into n8n. 14 fully wired nodes: Schedule trigger (every 6 hours, auto-runs) Reads new leads from Google Sheets Enriches with Hunter.io company data GPT-4o-mini writes unique personalized email per lead Quality score check (skips low-quality emails to protect your reputation) Sends via Gmail Updates your sheet with tracking data Notifies team on Slack Webhook trigger for manual or CRM integration 2. leads_template.csv β Paste into Google Sheets. Already formatted with all required columns. 3. SETUP_GUIDE.md β Complete 15-minute setup walkthrough. Every credential, every field to replace, troubleshooting section.
1. ai_lead_engine_workflow.json β Import directly into n8n. 14 fully wired nodes: Schedule trigger (every 6 hours, auto-runs) Reads new leads from Google Sheets Enriches with Hunter.io company data GPT-4o-mini writes unique personalized email per lead Quality score check (skips low-quality emails to protect your reputation) Sends via Gmail Updates your sheet with tracking data Notifies team on Slack Webhook trigger for manual or CRM integration 2. leads_template.csv β Paste into Google Sheets. Already formatted with all required columns. 3. SETUP_GUIDE.md β Complete 15-minute setup walkthrough. Every credential, every field to replace, troubleshooting section.
Included in Builder Pro β $19/mo, 4,177 premium workflows
Templates are reviewed before they are listed. Test with your own credentials and data before running it in production.
100% Secure Checkout
Refund requests within 7 days of a new subscription
0 reviews
No reviews yet.
Log in to ask a question.
No questions yet. Be the first to ask!