โ ๏ธ Disclaimer : This workflow uses Scrapeless and Claude AI via community nodes , which require n8n self-hosted to work properly.
๐ How It Works
This intelligent B2B lead generation workflow combines search automation, website crawling, AI analysis, and multi-channel output:
- It starts by using Scrapeless's Deep Serp API to find company websites from targeted Google Search queries.
- Each result is then individually crawled using Scrapeless's Crawler module, retrieving key business information from pages like
/about
, /contact
, /services
.
- The raw web content is processed via a Code node to clean, extract, and prepare structured data.
- The cleaned data is passed to Claude Sonnet (Anthropic) who analyzes and qualifies the lead based on content richness, contact data, and relevance.
- A filter step ensures only high-quality leads (eg lead score โฅ 6) are kept.
- Sent via Discord webhook for real-time notification (can be replaced with Slack, email, or CRM tools).
๐ The result is a fully automated system that finds, qualifies, and organizes B2B leads with high efficiency and minimal manual input.
โ
Pre-Conditions
Before using this workflow, make sure you have:
- An n8n self-hosted instance
- A Scrapeless account and API key ( get it here )
- An Anthropic Claude API key
- A configured Discord webhook URL (or alternative notification service)
โ๏ธ Workflow Overview
Manual Trigger โ Scrapeless Google Search โ Item Lists โ Scrapeless Crawler
โ Code (Data Cleaning) โ Claude Sonnet โ Code (Response Parser)
โ Filter โ Discord Notification
๐จ Step-by-Step Breakdown
-
Manual Trigger โ For testing purposes (can be replaced with Cron or Webhook)
-
Scrapeless Google Search โ Queries target B2B topics via Scrapeless's Deep SERP API
-
Item Lists โ Splits search results into individual items
-
Scrapeless Crawler โ Visits each company domain and scrapes structured content
-
Code Node (Data Cleaner) โ Extracts and formats content for LLM input
-
Claude Sonnet (via HTTP Request) โ Evaluates lead quality, relevance, and contact info
-
Code Node (Parser) โ Parses Claude's JSON response
-
IF Filter โ Filters leads based on score threshold
-
Discord Webhook โ Sends formatted message with company info
๐งฉ Customization Guidance
You can easily adjust the workflow to match your needs:
-
Lead Criteria : Modify the Claude prompt and scoring logic in the Code node
-
Output Channels : Replace the Discord webhook with Slack, Email, Airtable, or any CRM node
-
Search Topics : Change your query in the Scrapeless SERP node to find leads in different niches or countries
-
Scoring Threshold : Adjust the filter logic (
lead_score >= 6
) to match your quality tolerance
๐งช How to Use
- Insert your Scrapeless and Claude API credentials in the designated nodes
- Replace or configure the Discord webhook (or alternative outputs)
- Run the workflow manually (or schedule it)
- View qualified leads directly in your chosen notification channel
๐ฆ Output Example
Each qualified lead includes:
- ๐ข Company Name
- ๐ Website
- โ๏ธ Email(s)
- ๐ Phone(s)
- ๐ Location
- ๐ Lead Score
- ๐ Summary of relevant content
๐ฅ Ideal Users
This workflow is perfect for:
-
AI SaaS companies targeting mid-market & enterprise leads
-
Marketing agencies looking for B2B-qualified leads
-
Automation consultants building scraping solutions
-
No-code developers working with n8n, Make, Pipedream
-
Sales teams needing enriched prospecting data