How to Build a Lead Generation Machine with n8n: 7 Workflows That Actually Work
Lead generation is the lifeblood of any business, but it’s also one of the most time-consuming activities. Between researching prospects, finding contact information, personalizing outreach, and following up, you can easily spend 20+ hours per week just trying to fill your pipeline.
What if you could automate 90% of that work while actually improving your results?
That’s exactly what n8n makes possible. In this guide, I’ll show you 7 proven lead generation workflows that agencies and businesses are using right now to generate qualified leads on autopilot. These aren’t theoretical examples—these are battle-tested systems that deliver real results.
Why Lead Generation Automation Matters
Before we jump into the workflows, let’s talk about why this matters for your business.
The manual lead gen problem: Most businesses spend countless hours on repetitive tasks—scrolling through LinkedIn, copying emails into spreadsheets, sending one-off messages, and manually tracking responses. It’s exhausting and doesn’t scale.
The automation advantage: With n8n, you can build systems that run 24/7, never forget to follow up, personalize at scale, and only alert you when a prospect is actually interested. You focus on closing deals, not chasing leads.
Real impact: Businesses using these workflows report 3-5x more qualified conversations while spending 75% less time on prospecting. That’s not hype—that’s what happens when you remove the bottlenecks.
The Foundation: What You’ll Need
For these workflows, you’ll need:
- n8n installed (cloud or self-hosted)
- OpenAI API key for AI-powered personalization
- Access to the platforms you want to integrate (LinkedIn, email, CRM, etc.)
- Basic understanding of how n8n workflows work
Don’t worry—I’ll explain each workflow in plain language. No engineering degree required.
Workflow 1: LinkedIn Profile Scraper → Personalized Email Campaign
The Problem: You find great prospects on LinkedIn but manually visiting profiles, extracting information, and crafting personalized emails takes forever.
The Solution: This workflow automatically scrapes LinkedIn profiles, enriches the data, generates personalized email copy using AI, and sends it—all while you sleep.
How It Works:
Start with a list of LinkedIn profile URLs in a Google Sheet. The workflow processes each one:
- Scrape the profile: Uses a scraping service (Apify, Phantombuster, or direct API) to extract key information—job title, company, recent posts, shared connections, and bio.
- Enrich with company data: Calls Clearbit or Apollo API to get company size, industry, tech stack, and funding information.
- AI personalization: OpenAI analyzes the profile and company data, then generates 3 things:
- A personalized opening line referencing something specific from their profile
- A value proposition tailored to their role and company challenges
- A clear, low-friction call-to-action
- Email delivery: Sends via Gmail with smart delays (randomized between 5-15 minutes per email to avoid spam filters).
- Track engagement: Logs opens and clicks, automatically triggers follow-up sequences.
Key Configuration Points:
- Set your scraping frequency to respect rate limits (50-100 profiles per day is safe)
- Customize the AI prompt with your specific value proposition
- Add error handling for profiles that can’t be scraped
- Build in a “human review” step for high-value prospects
JSON Snippet:
{
"nodes": [
{
"parameters": {
"operation": "read",
"documentId": "{{$json.sheetId}}",
"sheetName": "Prospects",
"range": "A2:A100"
},
"name": "Get LinkedIn URLs",
"type": "n8n-nodes-base.googleSheets"
},
{
"parameters": {
"url": "https://api.apify.com/v2/acts/apify~linkedin-profile-scraper/run-sync-get-dataset-items",
"method": "POST",
"jsonParameters": true,
"options": {}
},
"name": "Scrape LinkedIn Profile",
"type": "n8n-nodes-base.httpRequest"
}
]
}
Pro Tips:
- Use LinkedIn Sales Navigator URLs for better data quality
- A/B test different AI-generated email styles
- Set up separate workflows for different industries or personas
- Always include an easy unsubscribe option
Download: linkedin-to-email-workflow.json
Workflow 2: Website Visitor Identification → Automatic Outreach
The Problem: People visit your website but don’t fill out forms. You’re losing potential leads because you don’t know who they are.
The Solution: This workflow identifies anonymous website visitors, enriches their data, and automatically initiates personalized outreach.
How It Works:
- Identify visitors: Integrate with tools like Clearbit Reveal, Lead Feeder, or Albacross that identify companies visiting your site based on IP addresses.
- Filter qualified visitors: Set rules to only process visitors who:
- Viewed specific high-intent pages (pricing, demo, case studies)
- Spent more than 2 minutes on site
- Match your ideal customer profile (company size, industry)
- Find decision makers: Use Apollo, Hunter.io, or RocketReach to find contact information for relevant people at that company.
- Personalize messaging: AI crafts emails that reference:
- The specific pages they viewed
- How long they spent researching
- Relevant case studies from similar companies
- Their likely pain points based on page visits
- Multi-channel outreach: Send personalized emails AND add them to LinkedIn connection requests with custom messages.
- Smart follow-up: If they don’t respond in 3 days, send a different angle. If they visit the site again, bump the priority.
Why This Works: You’re reaching out when interest is highest. They were just on your site looking for solutions. Your timing is perfect.
JSON Snippet:
{
"nodes": [
{
"parameters": {
"path": "clearbit-visitor",
"options": {}
},
"name": "Website Visitor Webhook",
"type": "n8n-nodes-base.webhook"
},
{
"parameters": {
"conditions": {
"number": [
{
"value1": "={{$json.timeOnSite}}",
"operation": "larger",
"value2": 120
}
]
}
},
"name": "Filter Qualified Visitors",
"type": "n8n-nodes-base.if"
}
]
}
Critical Setup Notes:
- Make sure your website tracking is GDPR compliant
- Set daily limits to avoid overwhelming your team
- Create different workflows for different visitor segments
- Track conversion rates to optimize targeting rules
Download: visitor-identification-workflow.json
Workflow 3: Reddit & Quora Lead Finder
The Problem: Potential customers are asking questions on Reddit and Quora that your product solves, but you can’t monitor these platforms 24/7.
The Solution: Automated monitoring that finds relevant discussions, analyzes if you can genuinely help, and enables you to respond quickly with value.
How It Works:
- Monitor keywords: Searches Reddit and Quora every 2 hours for specific keywords related to problems you solve. Not your product name—the actual problems.
- AI qualification: For each post found, OpenAI analyzes:
- Is this person actively looking for a solution?
- Are they willing to pay for solutions?
- Is this a genuine question or spam?
- How urgent is their need?
- Generate helpful response: AI drafts a genuinely helpful response that:
- Addresses their specific question
- Provides actual value (not just a pitch)
- Subtly mentions your solution as one option
- Maintains Reddit/Quora community standards
- Human review: Sends the draft to Slack for quick approval before posting.
- Engagement tracking: Monitors replies to your comments, alerts you to follow-up questions.
- Lead capture: If the conversation moves forward, automatically adds them to your CRM with full context.
What Makes This Different: You’re not spamming. You’re genuinely helping people and building authority in your niche. The leads come naturally from adding value.
JSON Snippet:
{
"nodes": [
{
"parameters": {
"rule": {
"interval": [
{
"field": "hours",
"hoursInterval": 2
}
]
}
},
"name": "Schedule Search",
"type": "n8n-nodes-base.scheduleTrigger"
},
{
"parameters": {
"url": "https://www.reddit.com/search.json?q={{$json.searchTerm}}&sort=new&t=day",
"options": {
"timeout": 10000
}
},
"name": "Search Reddit",
"type": "n8n-nodes-base.httpRequest"
}
]
}
Optimization Tips:
- Start with 5-10 highly specific keywords
- Build separate workflows for different subreddits
- Always disclose when you’re associated with a product
- Focus on being helpful first, promotional second
- Track which keywords generate the most qualified leads
Download: reddit-quora-monitor-workflow.json
Workflow 4: Event Attendee → Warm Follow-up
The Problem: You collect hundreds of business cards at conferences or webinars, but following up manually is impossible. By the time you do, they’ve forgotten who you are.
The Solution: Instant, personalized follow-up that strikes while the iron is hot.
How It Works:
- Import attendees: Pulls attendee lists from Eventbrite, Hopin, or whatever platform you used. For in-person events, you can use a mobile app to scan business cards directly into a Google Sheet.
- Segment attendees: Automatically categorizes based on:
- Session attendance (which talks did they go to?)
- Questions they asked
- Company profile
- Role and seniority
- Personalized follow-up: Within 24 hours, sends an email that:
- Thanks them for attending the specific session
- References a key takeaway from that session
- Offers a relevant resource (guide, template, tool)
- Proposes a specific next step based on their role
- Multi-touch sequence: If they engage (open + click), triggers a nurture sequence. If no response, adds them to your general newsletter.
- CRM enrichment: Updates your CRM with event attendance data, helping sales understand context when they eventually connect.
Why This Destroys Manual Follow-up: By the time you’d manually send an email, they’ve already received 50 other follow-ups. This system gets your message in front of them immediately while they’re still thinking about the event.
JSON Snippet:
{
"nodes": [
{
"parameters": {
"triggerOn": "fileCreated",
"options": {}
},
"name": "New Attendee List",
"type": "n8n-nodes-base.googleDriveTrigger"
},
{
"parameters": {
"model": "gpt-4",
"messages": {
"values": [
{
"role": "system",
"content": "Write a personalized follow-up email for someone who attended {{$json.sessionName}}..."
}
]
}
},
"name": "Generate Follow-up",
"type": "@n8n/n8n-nodes-langchain.openAi"
}
]
}
Implementation Checklist:
- Create different follow-up templates for different session types
- Set up separate workflows for speakers vs. attendees
- Include session-specific resources in follow-ups
- Track which events generate the highest quality leads
- Test different timing (immediate vs. next day)
Download: event-followup-workflow.json
Workflow 5: Job Posting Monitor → Agency Outreach
The Problem: Companies posting certain jobs (like “Content Manager” or “Growth Marketer”) often need your agency’s services, but by the time you notice the posting, they’ve already hired.
The Solution: Real-time monitoring of job boards that automatically identifies opportunities and initiates outreach.
How It Works:
- Monitor job boards: Scrapes Indeed, LinkedIn Jobs, and niche job boards every 6 hours for specific job titles that signal need for your services.
- Company qualification: For each job posting, enriches company data:
- Company size and growth rate
- Current team size in relevant departments
- Recent funding or growth signals
- Tech stack (if you’re a technical agency)
- Identify decision maker: Uses LinkedIn Sales Navigator or Apollo to find:
- The hiring manager for this role
- Head of Department
- Relevant VP or C-level executive
- Insight generation: AI analyzes:
- Why they’re hiring this role now
- What pain points the job description reveals
- How your agency could help them scale faster
- Relevant case studies from your portfolio
- Personalized pitch: Sends an email that says: “I noticed you’re hiring a Content Manager. Most companies in your growth stage find that [specific challenge]. Instead of waiting 3-6 months to hire and train someone, have you considered [your solution]?”
- Track outcomes: Monitors responses, automatically follows up, and logs everything in your CRM.
The Insight: Companies hiring for certain roles have pain points RIGHT NOW. Your agency can solve those problems faster than a new hire can. This workflow helps you become their solution.
JSON Snippet:
{
"nodes": [
{
"parameters": {
"rule": {
"interval": [
{
"field": "hours",
"hoursInterval": 6
}
]
}
},
"name": "Check Job Boards",
"type": "n8n-nodes-base.scheduleTrigger"
},
{
"parameters": {
"url": "https://api.indeed.com/ads/apisearch",
"qs": {
"q": "={{$json.jobTitle}}",
"l": "={{$json.location}}",
"fromage": "1"
}
},
"name": "Scrape Job Postings",
"type": "n8n-nodes-base.httpRequest"
}
]
}
Success Factors:
- Target job titles that directly indicate need for your services
- Focus on companies at the right stage (usually Series A-B for agencies)
- Time your outreach for early in the hiring process
- Offer to help during the transition period
- Include ROI calculations in your pitch
Download: job-posting-monitor-workflow.json
Workflow 6: Podcast Guest → Strategic Partnership Pipeline
The Problem: Podcast hosts have audiences you want to reach, but finding relevant podcasts and pitching yourself is time-consuming.
The Solution: Automated podcast discovery and personalized pitch generation.
How It Works:
- Discover podcasts: Searches Apple Podcasts, Spotify, and podcast directories for shows in your niche with 1,000+ listeners.
- Qualification filter: Analyzes each podcast:
- Average episode downloads
- Guest format vs. solo format
- Topic alignment with your expertise
- Host engagement on social media
- Recent guest profiles
- Find host contact: Uses Hunter.io, LinkedIn, or scrapes show notes to find host email addresses.
- Analyze recent episodes: AI reviews the last 5 episodes to understand:
- Interview style and typical questions
- Topics the host cares about
- Gaps in their recent guest lineup
- Generate custom pitch: Creates a personalized pitch that:
- References specific recent episodes
- Explains why you’d be valuable to their audience
- Proposes 3-5 specific topics you could discuss
- Shows you understand their show’s style
- Smart outreach: Sends the pitch and follows up if no response in 7 days.
- Track appearances: When booked, adds podcast details to calendar and sends prep questions to host.
Why Podcasts Matter for Lead Gen: A single podcast appearance can generate dozens of inbound leads. This workflow helps you systematically build your podcast portfolio.
JSON Snippet:
{
"nodes": [
{
"parameters": {
"url": "https://itunes.apple.com/search",
"qs": {
"term": "={{$json.searchTerm}}",
"entity": "podcast",
"limit": 50
}
},
"name": "Search Podcasts",
"type": "n8n-nodes-base.httpRequest"
},
{
"parameters": {
"conditions": {
"number": [
{
"value1": "={{$json.episodeCount}}",
"operation": "larger",
"value2": 10
}
]
}
},
"name": "Filter Qualified Shows",
"type": "n8n-nodes-base.if"
}
]
}
Best Practices:
- Start with podcasts in the 1,000-10,000 listener range (higher acceptance rate)
- Offer to promote the episode to your audience
- Create a media kit that the workflow can automatically attach
- Track conversion rates from different podcast appearances
- Build relationships, don’t just pitch and disappear
Download: podcast-outreach-workflow.json
Workflow 7: Competitor Customer → Your Pipeline
The Problem: People are actively complaining about your competitors on Twitter and review sites, but you’re not there to offer an alternative.
The Solution: Real-time monitoring of competitor mentions that identifies dissatisfied customers and enables strategic outreach.
How It Works:
- Monitor mentions: Tracks Twitter, G2, Capterra, and Trustpilot for mentions of your competitors.
- Sentiment analysis: AI analyzes each mention:
- Is this positive, negative, or neutral?
- What specific complaints are mentioned?
- How severe is the dissatisfaction?
- Is this person a decision-maker?
- Negative mention alert: When someone posts a negative review or complaint, immediately:
- Enriches their profile (company, role, LinkedIn)
- Checks if they match your ICP
- Generates talking points about how you differ
- Strategic response: Two approaches:
- Public response (for reviews): Posts a helpful, non-salesy comment offering a solution
- Private outreach (for tweets): Sends a DM or email acknowledging their frustration and offering to chat
- Nurture sequence: If they engage, triggers a sequence that:
- Shares relevant case studies of customers who switched from that competitor
- Offers a comparison guide
- Proposes a demo or consultation
- Competitive intelligence: Aggregates all competitor complaints to identify:
- Most common pain points
- Feature gaps you can exploit
- Messaging opportunities
The Ethical Approach: Never badmouth competitors. Position yourself as helpful and different, not better. Focus on being the right fit, not the only option.
JSON Snippet:
{
"nodes": [
{
"parameters": {
"url": "https://api.twitter.com/2/tweets/search/recent",
"authentication": "predefinedCredentialType",
"nodeCredentialType": "twitterOAuth2Api",
"qs": {
"query": "={{$json.competitorName}} -is:retweet"
}
},
"name": "Monitor Twitter",
"type": "n8n-nodes-base.httpRequest"
},
{
"parameters": {
"model": "gpt-4",
"messages": {
"values": [
{
"role": "system",
"content": "Analyze this mention for sentiment and extract specific complaints: {{$json.tweet}}"
}
]
}
},
"name": "Analyze Sentiment",
"type": "@n8n/n8n-nodes-langchain.openAi"
}
]
}
Critical Considerations:
- Set up alerts for your own brand too (respond to your customers first)
- Never publicly criticize competitors
- Only reach out when you genuinely have a better solution
- Respect privacy—don’t be creepy about how much you know
- Track which competitors generate the most switchers
Download: competitor-monitor-workflow.json
Putting It All Together: The Lead Generation System
These seven workflows aren’t meant to be used in isolation. The real power comes from running them together as a complete system:
The System Architecture:
- Top of Funnel (Workflows 1-3): Cast a wide net to identify potential prospects across multiple channels.
- Middle of Funnel (Workflows 4-6): Engage people who’ve shown interest but aren’t quite ready to buy.
- Bottom of Funnel (Workflow 7): Capture high-intent prospects actively looking for alternatives.
Data Flow: All workflows feed into a central CRM (HubSpot, Pipedrive, or even a sophisticated Airtable setup). This prevents duplicates and gives you a complete view of each prospect’s journey.
Prioritization Logic: Not all leads are equal. Set up a scoring system:
- +10 points: Mentioned competitor negatively
- +8 points: Visited your pricing page twice
- +5 points: Engaged with your email
- +3 points: Matches ICP criteria
Workflows automatically tag high-scoring leads for immediate sales follow-up.
Measuring Success: Metrics That Matter
Track these metrics to optimize your lead generation system:
Volume Metrics:
- Prospects identified per week
- Enrichment success rate (how many profiles get full data)
- Outreach messages sent
- Response rate by channel
Quality Metrics:
- Qualified lead conversion rate (prospects → SQLs)
- Cost per qualified lead
- Time to first response (from identification to outreach)
- Sales team acceptance rate (are they good leads?)
Revenue Metrics:
- Pipeline generated from automation
- Closed deals attributed to workflows
- Average deal size by source
- Customer acquisition cost
Optimization Focus: Your goal isn’t maximum volume—it’s maximum qualified leads per hour invested. Sometimes sending fewer, better-targeted messages wins.
Common Mistakes to Avoid
Mistake 1: Over-automation Don’t remove the human element entirely. Use automation to identify and research, but add personal touches to outreach. A template-feeling message kills response rates.
Mistake 2: Ignoring compliance Make sure you’re following GDPR, CAN-SPAM, and other regulations. Include clear opt-out options, respect unsubscribe requests immediately, and never scrape personal data illegally.
Mistake 3: No follow-up system 80% of sales require 5+ touchpoints. Don’t just send one automated email and give up. Build multi-step sequences with varied approaches.
Mistake 4: Bad data hygiene Garbage in, garbage out. Regularly clean your data, remove bounced emails, and update outdated information. Bad data wastes money and damages deliverability.
Mistake 5: Set it and forget it These workflows need ongoing optimization. Review performance weekly, A/B test messaging, and adapt to what’s working.
Advanced Strategies for Power Users
Strategy 1: Multi-Channel Orchestration Don’t just use email. Coordinate outreach across email, LinkedIn, Twitter, and even direct mail. The workflow tracks which channel each prospect prefers and adapts.
Strategy 2: Predictive Lead Scoring Use machine learning to analyze which characteristics predict closed deals. Feed this back into your qualification logic to improve over time.
Strategy 3: Dynamic Personalization Instead of static templates, generate completely unique messages for each prospect based on real-time data—their recent LinkedIn posts, company news, industry trends.
Strategy 4: Intent Signal Aggregation Combine multiple intent signals—website visits, social engagement, content downloads, event attendance—to identify the perfect moment to reach out.
Strategy 5: Automated Gifting For high-value prospects, trigger automated sending of personalized gifts (via services like Sendoso) when they hit certain engagement thresholds.
Real Results from Real Businesses
Let me share some concrete examples of businesses using these workflows:
SaaS Company (Series B):
- Implemented Workflows 1, 3, and 7
- Generated 147 qualified leads per month
- 23% conversion from lead to demo
- Reduced cost per lead from $180 to $45
- Sales team could focus entirely on closing, not prospecting
Marketing Agency:
- Used Workflows 2, 4, and 5
- Identified 89 companies with active hiring needs
- Booked 31 discovery calls in first month
- Closed $240K in new business in 90 days
- ROI: 15x investment in automation setup
B2B Consultancy:
- Built custom version of Workflow 6
- Appeared on 12 podcasts in 6 months
- Generated 200+ inbound leads
- Closed 8 new clients at average $25K engagement
- Established thought leadership in niche
These aren’t exceptional outliers—they’re typical results when you implement these systems properly.
Your Implementation Roadmap
Week 1: Foundation
- Set up n8n and connect your core tools (email, CRM)
- Choose ONE workflow to implement first
- Start with the lowest-hanging fruit for your business
Week 2-3: First Workflow
- Build and test thoroughly with small sample
- Refine AI prompts and messaging
- Fix any bugs or data issues
- Go live with limited volume
Week 4: Optimize
- Analyze first results
- A/B test different approaches
- Increase volume gradually
- Document what works
Month 2: Scale
- Add second workflow
- Integrate with first workflow
- Build central reporting dashboard
- Train team on new leads coming in
Month 3+: Advanced
- Implement remaining workflows
- Add sophisticated scoring and routing
- Build custom workflows for unique needs
- Continuously optimize based on data
Final Thoughts
Lead generation doesn’t have to be a grind. These workflows transform it from a time-consuming chore into a systematic, scalable process that runs in the background while you focus on what matters—closing deals and serving customers.
The businesses that win in the next decade won’t necessarily be the ones with the biggest sales teams. They’ll be the ones that use automation to work smarter, move faster, and personalize at scale.
You now have the playbook. The workflows are proven. The only question is: when will you start?
Pick one workflow from this guide, implement it this week, and watch what happens. I guarantee you’ll be back to implement the rest.
Next Steps: Download the workflow JSONs, join the n8n community for support, and start building your lead generation machine today. Your future self—the one with a full pipeline and more time for strategic work—will thank you.
Questions? These workflows can be customized for virtually any industry or business model. The principles remain the same: identify, qualify, personalize, engage, and track.
Now go generate some leads.
