β οΈ 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) which analyzes and qualifies the lead based on content richness, contact data, and relevance.
- A filter step ensures only high-quality leads (e.g. 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