Skip to main content

Enrich and score B2B company leads with Clearbit, Hunter.io, and Gemini AI

Workflow preview

Workflow preview
100%
Enrich and score B2B company leads with Clearbit, Hunter.io, and Gemini AI preview
Open on n8n.io

1. Workflow Overview

Enrich and score company leads with Clearbit, Hunter.io, and Gemini AI Who is this for? Sales teams and B2B marketers who spend hours researching leads manually. If you've looked at Clay but didn't...

Best for

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

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.formtrigger, n8n-nodes-base.httprequest, n8n-nodes-base.code, @n8n/n8n-nodes-langchain.chainllm, @n8n/n8n-nodes-langchain.lmchatgooglegemini, n8n-nodes-base.googlesheets, n8n-nodes-base.filter

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Enrich and score B2B company leads with Clearbit, Hunter.io, and Gemini AI
Workflow name
Enrich and score B2B company leads with Clearbit, Hunter.io, and Gemini AI

Enrich and score company leads with Clearbit, Hunter.io, and Gemini AI

Who is this for?

Sales teams and B2B marketers who spend hours researching leads manually. If you've looked at Clay but didn't want the $149/month price tag, this workflow does the same job as a one-time n8n template.

What problem does this solve?

Researching a single lead — finding the right contact, checking the company's reputation, figuring out their tech stack — takes 15-30 minutes per company. Multiply that by 20 leads a day and you've lost your whole afternoon.

This workflow takes a company domain and automatically pulls data from 5 sources, scores the lead with AI, and alerts your team when something promising comes through. What used to take 30 minutes now takes about 15 seconds.

How it works

  1. Web form — A sales rep submits a company domain, picks the industry, and sets a priority level
  2. Clearbit enrichment — Pulls company firmographics: industry, employee count, revenue range, tech stack, social profiles, and location
  3. Hunter.io lookup — Finds up to 5 verified email contacts at the company and identifies decision-makers (CEO, VP, Director) by seniority
  4. Google Maps check — Fetches the company's Google rating, review count, and business status
  5. Website scrape — Hits the company homepage and extracts phone numbers, detects tech stack usage (11 technologies), checks for hiring pages and pricing pages, and pulls social media links
  6. Gemini AI analysis — Takes all collected data, scores the lead 0–100, assesses ICP fit, writes a personalized outreach opener, and recommends the next action
  7. Google Sheets — Saves the complete lead record (35+ fields) for pipeline tracking
  8. Slack alert — If the lead scores 75 or higher, sends an instant notification with the full intelligence report

What's in the workflow

  • 17 nodes across 8 services: Form trigger, Clearbit (HTTP), Hunter.io (HTTP), Google Maps (HTTP), website scraper (HTTP), code nodes for data processing, Google Gemini AI for scoring, Google Sheets for storage, filter node for hot leads, and Slack for alerts
  • 8 sticky notes documenting each stage of the pipeline
  • 5 code nodes handling: company data parsing and size classification, contact ranking by seniority, reputation scoring, website HTML analysis (phone/tech/hiring/pricing extraction), and final data merging with AI response parsing
  • Trust score system — 120-point weighted score across domain presence, contacts, revenue data, reputation, and web signals
  • Error handling — Website scrape continues on failure; AI parsing has fallback defaults

Setup

  1. Add Clearbit credentials (Header Auth with Bearer token)
  2. Add Hunter.io credentials (Query Auth with api_key)
  3. Add Google Maps API key (Places API enabled)
  4. Connect Google Sheets (OAuth2) and point to your spreadsheet
  5. Connect your Slack workspace and pick the alert channel
  6. Set your Google Gemini API key
  7. Activate and share the form URL with your sales team

Key details

  • Company size is classified automatically: Startup / SMB / Mid-Market / Enterprise
  • The contact finder prioritizes C-level and VP-level contacts by confidence score
  • Website tech detection covers: AWS, GCP, Azure, React, Next.js, Python, AI/ML, Kubernetes, SaaS, API, Blockchain
  • Hiring signals (careers page, "we're hiring") indicate growth and budget availability
  • Pricing page detection suggests the company sells a product — useful for partnership or vendor qualification
  • The hot lead threshold (75) is adjustable in the filter node
  • Gemini temperature is set to 0.3 for consistent scoring across leads

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 - Sticky Note

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

Block 2 - Sticky Note1

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

Block 3 - Sticky Note2

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

Block 4 - Sticky Note3

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

Block 5 - Sticky Note4

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

Block 6 - Sticky Note5

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

Block 7 - Sticky Note6

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

Block 8 - Sticky Note7

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

Block 9 - Lead Input Form

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

Block 10 - Clearbit Enrichment

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

Block 11 - Parse Company Data

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

Block 12 - Hunter.io Contacts

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

Block 13 - Merge Contact Data

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

Block 14 - Google Maps Reputation

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

Block 15 - Merge Reputation Data

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

Block 16 - Fetch Company Website

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

Block 17 - Extract Website Intel

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

Block 18 - AI Lead Scorer

Type / Role
@n8n/n8n-nodes-langchain.chainLlm - chainLlm
Config choices
Version 1.4

Block 19 - Google Gemini Chat Model

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

Block 20 - Prepare Final Output

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

Block 21 - Save to Google Sheets

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

Block 22 - Hot Lead Filter

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

Block 23 - Slack Hot Lead Alert

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

3. Summary Table

Workflow Enrich and score B2B company leads with Clearbit, Hunter.io, and Gemini AI
Complexity advanced
Nodes 23
Categories Lead Generation, AI Summarization
Author Oka Hironobu
Published 19 Feb 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/13523/13523.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 and score B2B company leads with Clearbit, Hunter.io, and Gemini AI do?

Enrich and score company leads with Clearbit, Hunter.io, and Gemini AI Who is this for? Sales teams and B2B marketers who spend hours researching leads manually. If you've looked at Clay but didn't...

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.