Skip to main content

Intelligent B2B lead generation workflow using Scrapeless and Claude

Workflow preview

Workflow preview
100%
Intelligent B2B lead generation workflow using Scrapeless and Claude preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

️ Disclaimer : This workflow uses Scrapeless and Claude AI via community nodes , which require n8n self hosted to work properly...

Best for

  • Lead Generation automation workflows
  • AI Summarization automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.manualtrigger, n8n-nodes-base.splitout, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatanthropic, n8n-nodes-base.httprequest, n8n-nodes-scrapeless.scrapeless, n8n-nodes-base.if, n8n-nodes-base.code

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by scrapeless official.

Original n8n.io source

1.1 Workflow description

Title
Intelligent B2B lead generation workflow using Scrapeless and Claude
Workflow name
Intelligent B2B lead generation workflow using Scrapeless and Claude

> ⚠️ 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:

  1. It starts by using Scrapeless’s Deep Serp API to find company websites from targeted Google Search queries.
  2. Each result is then individually crawled using Scrapeless's Crawler module, retrieving key business information from pages like /about, /contact, /services.
  3. The raw web content is processed via a Code node to clean, extract, and prepare structured data.
  4. The cleaned data is passed to Claude Sonnet (Anthropic) which analyzes and qualifies the lead based on content richness, contact data, and relevance.
  5. A filter step ensures only high-quality leads (e.g. lead score ≥ 6) are kept.
  6. 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

  1. Manual Trigger – For testing purposes (can be replaced with Cron or Webhook)
  2. Scrapeless Google Search – Queries target B2B topics via Scrapeless’s Deep SERP API
  3. Item Lists – Splits search results into individual items
  4. Scrapeless Crawler – Visits each company domain and scrapes structured content
  5. Code Node (Data Cleaner) – Extracts and formats content for LLM input
  6. Claude Sonnet (via HTTP Request) – Evaluates lead quality, relevance, and contact info
  7. Code Node (Parser) – Parses Claude’s JSON response
  8. IF Filter – Filters leads based on score threshold
  9. 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

  1. Insert your Scrapeless and Claude API credentials in the designated nodes
  2. Replace or configure the Discord webhook (or alternative outputs)
  3. Run the workflow manually (or schedule it)
  4. 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

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - When clicking ‘Execute workflow’

Type / Role
n8n-nodes-base.manualTrigger - manualTrigger
Config choices
Version 1

Block 2 - Split Out

Type / Role
n8n-nodes-base.splitOut - splitOut
Config choices
Version 1

Block 3 - AI Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2

Block 4 - Anthropic Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatAnthropic - lmChatAnthropic
Config choices
Version 1.3

Block 5 - HTTP Request

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 6 - scrape the keywords data

Type / Role
n8n-nodes-scrapeless.scrapeless - scrapeless
Config choices
Version 1

Block 7 - Crawl every link

Type / Role
n8n-nodes-scrapeless.scrapeless - scrapeless
Config choices
Version 1

Block 8 - Check the results correct or not

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 9 - Extract needed info

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 10 - Analyze and Clean the data

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

3. Summary Table

Workflow Intelligent B2B lead generation workflow using Scrapeless and Claude
Complexity intermediate
Nodes 10
Categories Lead Generation, AI Summarization
Author scrapeless official
Published 25 Jun 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/5297/5297.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Intelligent B2B lead generation workflow using Scrapeless and Claude do?

️ Disclaimer : This workflow uses Scrapeless and Claude AI via community nodes , which require n8n self hosted to work properly...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Lead Generation, AI Summarization use case.