Skip to main content

Extract B2B lead emails from Google results with SerpApi, Apify and Claude

Workflow preview

Workflow preview
100%
Extract B2B lead emails from Google results with SerpApi, Apify and Claude preview
Open on n8n.io

1. Workflow Overview

Quick Overview This workflow runs on a schedule, searches Google via SerpApi for a chosen topic, scrapes the top results’ webpages with Apify, uses Anthropic Claude to extract email addresses from ...

Best for

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

Tools used

n8n-nodes-apify.apify, n8n-nodes-base.scheduletrigger, @n8n/n8n-nodes-langchain.lmchatanthropic, n8n-nodes-base.gmail, n8n-nodes-base.stickynote, n8n-nodes-base.httprequest, n8n-nodes-preview-serpapi.serpapi, n8n-nodes-base.set

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Extract B2B lead emails from Google results with SerpApi, Apify and Claude
Workflow name
Extract B2B lead emails from Google results with SerpApi, Apify and Claude

Quick Overview

This workflow runs on a schedule, searches Google via SerpApi for a chosen topic, scrapes the top results’ webpages with Apify, uses Anthropic Claude to extract email addresses from the page text, and sends a consolidated report through Gmail, Telegram, and WhatsApp (Rapiwa).

How it works

  1. Runs on a schedule trigger.
  2. Sets the search topic and performs two SerpApi Google searches to collect organic results for positions 1–20.
  3. Extracts the title and URL from each SerpApi response and merges the results into a single list.
  4. Processes each result in a loop by scraping the target URL’s content using an Apify website content crawler.
  5. Sends the scraped text to Anthropic Claude with a structured output format to extract an email address (or return null if none is found).
  6. Sends a formatted “Email Scraping Report” containing each site’s title, link, and extracted email via Gmail, Telegram, and WhatsApp (Rapiwa).

Setup

  1. Add credentials for SerpApi, Apify, and Anthropic (Claude) so the workflow can search, scrape, and extract emails.
  2. Add Gmail OAuth2 credentials and replace the placeholder recipient address in the Gmail report.
  3. Add Telegram bot credentials and set a valid chat ID (the template references a Telegram trigger item, so update the chat ID mapping or add a Telegram Trigger node).
  4. Add Rapiwa credentials and replace the placeholder WhatsApp number.
  5. Update the topic keyword in “Set Your Topic” and adjust the SerpApi searches if you want more or fewer than 20 results.

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 - Get last run

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

Block 2 - Schedule Trigger

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.3

Block 3 - Anthropic Chat Model

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

Block 4 - Gmail Report

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.1

Block 5 - Sticky Note

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

Block 6 - Sticky Note2

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

Block 7 - Sticky Note3

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

Block 8 - Sticky Note4

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

Block 9 - Sticky Note5

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

Block 10 - Sticky Note6

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

Block 11 - HTTP (Get Lead Data Using SerpApi)

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

Block 12 - SerpApi (Search Google (top 10))

Type / Role
n8n-nodes-preview-serpapi.serpApi - serpApi
Config choices
Version 1

Block 13 - SerpApi (Search Google (11-20))

Type / Role
n8n-nodes-preview-serpapi.serpApi - serpApi
Config choices
Version 1

Block 14 - Set Your Topic

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 15 - Code (Extract Url From SerpAPI 0-10)

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

Block 16 - Code (Extract Url From SerpAPI 11-20)

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

Block 17 - Merge (Append All Results)

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.2

Block 18 - Sticky Note7

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

Block 19 - Structured Output Parser

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.2

Block 20 - AI (Extract Email from webpage)

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

Block 21 - Loop Over Items

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 22 - HTTPS (Scrape URL with Apify)

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

Block 23 - Sticky Note8

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

Block 24 - Rapiwa (Send a WhatsApp message)

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

Showing the first 24 of 25 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Extract B2B lead emails from Google results with SerpApi, Apify and Claude
Complexity advanced
Nodes 25
Categories Lead Generation, AI Summarization
Author SpaGreen Creative
Published 10 Jun 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/16237/16237.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 Extract B2B lead emails from Google results with SerpApi, Apify and Claude do?

Quick Overview This workflow runs on a schedule, searches Google via SerpApi for a chosen topic, scrapes the top results’ webpages with Apify, uses Anthropic Claude to extract email addresses from ...

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.