Skip to content

Instantly share code, notes, and snippets.

@wilmoore
Last active June 12, 2025 12:02
Show Gist options
  • Select an option

  • Save wilmoore/b8aa35af89dfb8ab2979f31bdbee11eb to your computer and use it in GitHub Desktop.

Select an option

Save wilmoore/b8aa35af89dfb8ab2979f31bdbee11eb to your computer and use it in GitHub Desktop.
Business :: Sales :: Prospecting :: Workflow :: I Built an AI Agent in n8n That Generates Unlimited Leads For You

Business :: Sales :: Prospecting :: Workflow :: I Built an AI Agent in n8n That Generates Unlimited Leads For You

⪼ Made with 💜 by Polyglot.

image

This video is a tutorial with an intent to educate. The creator demonstrates how to build and use an AI-powered lead generation agent using n8n (a workflow automation tool). The agent scrapes LinkedIn and Google in real time, verifies lead data, and outputs it to Google Sheets—allowing for unlimited, accurate, and affordable B2B leads. The tutorial walks through the setup, integration of APIs (OpenAI, Serper, Better Contact), JSON parsing, webhook usage, and automation flow—all available via a ready-made template.

Highlights

Lead Gen Problems with Current Tools
  • Expensive tools like ZoomInfo lock users into contracts
  • Data is outdated or inaccurate due to infrequent updates
  • Export limits and stale databases hinder outreach effectiveness
Why This Agent is Better
  • Scrapes real-time data from Google and LinkedIn
  • Uses AI to qualify and verify leads before saving
  • Outputs directly to Google Sheets with no export limits
Workflow Setup in n8n
  • Import template from video description with one click
  • Add your OpenAI, Serper, and Better Contact API keys
  • Use OpenAI to extract job title, industry, and location from prompts
Scraping & Qualification
  • Serper used to search Google for matching LinkedIn profiles
  • AI agent checks if profiles match the desired criteria
  • Boolean flag and disqualification reasons included in results
Enriching Lead Data
  • Structured parsing of name, company from LinkedIn result
  • Better Contact enriches with verified email & mobile numbers
  • Uses webhooks to receive enriched data asynchronously
Final Output & Use
  • Google Sheets is populated with high-quality, verified leads
  • Includes LinkedIn URL, name, company, email, and phone
  • Ready for immediate outreach and business growth

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment