Skip to main content

Enrich Google Sheets leads via LinkedIn, SerpAPI, Claude and Apify

Workflow preview

Workflow preview
100%
Enrich Google Sheets leads via LinkedIn, SerpAPI, Claude and Apify preview
Open on n8n.io

1. Workflow Overview

Quick Overview This workflow enriches leads from Google Sheets by finding and validating LinkedIn profile URLs with SerpAPI and Anthropic, then scraping matched profiles with Apify to extract a rel...

Best for

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

Tools used

n8n-nodes-base.httprequest, n8n-nodes-base.googlesheets, n8n-nodes-base.code, n8n-nodes-base.limit, n8n-nodes-base.if, n8n-nodes-base.set, n8n-nodes-base.wait, n8n-nodes-base.splitinbatches

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Enrich Google Sheets leads via LinkedIn, SerpAPI, Claude and Apify
Workflow name
Enrich Google Sheets leads via LinkedIn, SerpAPI, Claude and Apify

Quick Overview

This workflow enriches leads from Google Sheets by finding and validating LinkedIn profile URLs with SerpAPI and Anthropic, then scraping matched profiles with Apify to extract a relevant company and discover its website domain via SerpAPI, saving results back to Google Sheets.

How it works

  1. Starts manually and reads lead rows from Google Sheets for LinkedIn enrichment.
  2. Searches Google via SerpAPI for likely LinkedIn results, filters out unwanted domains/file types, and keeps the best candidates.
  3. Uses Anthropic to validate the best match (LinkedIn profile or company website) from the search results and writes the selected URL, confidence, and status back to Google Sheets.
  4. Runs a second search pass for selected rows using SerpAPI with the lead’s employer name included, validates again with Anthropic, and updates Google Sheets.
  5. Reads rows marked as having a LinkedIn URL and processes them in batches with a wait to reduce rate-limit issues.
  6. Scrapes each LinkedIn profile with Apify to collect emails and work history, selects a relevant property-management-related company, and then uses SerpAPI to find and extract the company’s website domain.
  7. Updates Google Sheets with the chosen company, job title, LinkedIn details, extracted domain, and flags indicating whether to proceed to downstream email-finding steps.

Setup

  1. Connect a Google Sheets OAuth2 credential and replace YOUR_GOOGLE_SHEET_ID (and sheet tab selection) in all Google Sheets nodes.
  2. Add your SerpAPI API key in both SerpAPI HTTP Request nodes and update the search query location terms (for example, YOUR_LOCATION/Ontario) to match your targeting.
  3. Add an Anthropic credential, confirm the model selection, and edit the AI system prompt keywords (industry, titles, and location rules) to match your use case.
  4. Add your Apify token in the Apify HTTP Request node and ensure the referenced LinkedIn scraper actor is available in your Apify account.
  5. Ensure your Google Sheet contains the required columns used by the workflow (for example First Name, Last Name, Employer Name, enrichment_status, serp_url, is_linkedin, ai_reason, company_name, job_title, domain, proceed_to_prospeo, and row_number).

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 - SerpAPI - Find LinkedIn URL

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

Block 2 - Google Sheets - Read Leads (Pipeline 1)

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Block 3 - Filter & Clean Search Results

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

Block 4 - Batch Size Limit

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

Block 5 - Has Search Results?

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

Block 6 - Prepare AI Input

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

Block 7 - Google Sheets - Read Leads (Pipeline 2)

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Block 8 - Rate Limit Wait

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 9 - Process Each Lead

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

Block 10 - Google Sheets - Save LinkedIn URL

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Block 11 - AI - Validate LinkedIn Match

Type / Role
@n8n/n8n-nodes-langchain.anthropic - anthropic
Config choices
Version 1

Block 12 - Rate Limit Wait (AI)

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 13 - Parse AI Response

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

Block 14 - SerpAPI - Find LinkedIn URL (Pass 2)

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

Block 15 - Google Sheets - Read No-Result Leads

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Block 16 - Filter & Clean Results (Pass 2)

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

Block 17 - Batch Size Limit (Pass 2)

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

Block 18 - Has Search Results? (Pass 2)

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

Block 19 - Prepare AI Input (Pass 2)

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

Block 20 - Google Sheets - Save Results (Pass 2)

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Block 21 - AI - Validate LinkedIn Match (Pass 2)

Type / Role
@n8n/n8n-nodes-langchain.anthropic - anthropic
Config choices
Version 1

Block 22 - Parse AI Response (Pass 2)

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

Block 23 - Filter Unprocessed Records

Type / Role
n8n-nodes-base.filter - filter
Config choices
Version 2.3

Block 24 - Rate Limit Wait (Pass 3)

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

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

3. Summary Table

Workflow Enrich Google Sheets leads via LinkedIn, SerpAPI, Claude and Apify
Complexity advanced
Nodes 39
Categories Lead Generation, AI Summarization
Author Divyanshu Gupta
Published 05 Jun 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/16142/16142.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 Enrich Google Sheets leads via LinkedIn, SerpAPI, Claude and Apify do?

Quick Overview This workflow enriches leads from Google Sheets by finding and validating LinkedIn profile URLs with SerpAPI and Anthropic, then scraping matched profiles with Apify to extract a rel...

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.