Skip to main content

Find B2B decision maker emails & build lead database with Serper.dev & AnyMailFinder

Workflow preview

Workflow preview
100%
Find B2B decision maker emails & build lead database with Serper.dev & AnyMailFinder preview
Open on n8n.io

Important notice

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

1. Workflow Overview

Companies Email Finder & Lead Generation Automation Short Description Automatically find company domains, extract decision maker emails (CEO, Sales, Marketing), validate email quality, and build a ...

Best for

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

Tools used

n8n-nodes-base.manualtrigger, n8n-nodes-base.nocodb, n8n-nodes-base.httprequest, @n8n/n8n-nodes-langchain.openai, n8n-nodes-base.filter, n8n-nodes-base.removeduplicates, n8n-nodes-base.merge, 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 Alexandra Spalato.

Original n8n.io source

1.1 Workflow description

Title
Find B2B decision maker emails & build lead database with Serper.dev & AnyMailFinder
Workflow name
Find B2B decision maker emails & build lead database with Serper.dev & AnyMailFinder

Companies Email Finder & Lead Generation Automation

Short Description

Automatically find company domains, extract decision maker emails (CEO, Sales, Marketing), validate email quality, and build a comprehensive prospect database using AI-powered search and professional email finding APIs.

Detailed Description

This comprehensive lead generation workflow transforms a simple list of company names into a complete prospect database with verified decision maker contacts. The system automatically discovers official company websites, finds key decision makers' email addresses, validates email quality, and organizes everything in a structured database for immediate outreach.

Perfect for sales teams, marketing agencies, business developers, and anyone who needs to build high-quality prospect lists efficiently and cost-effectively.

Key Features

  • Intelligent Domain Discovery: Uses Serper.dev and AI to find official company websites from search results
  • Multi-Role Email Finding: Automatically extracts emails for:
    • CEOs and C-level executives
    • Sales decision makers
    • Marketing decision makers
  • Email Quality Validation: Classifies emails as "valid" or "risky" for better deliverability
  • Smart Fallback System: Searches for additional company emails when decision makers aren't found
  • Duplicate Prevention: Removes duplicate contacts automatically
  • Batch Processing: Handles large company lists efficiently with intelligent batching
  • Database Integration: Stores all data in NocoDB with proper organization and status tracking
  • Rate Limiting: Includes delays and error handling to respect API limits

Who This Workflow Is For

  • Sales Teams: Building targeted prospect lists for outbound campaigns
  • Marketing Agencies: Creating lead databases for client campaigns
  • Business Development: Finding decision makers for partnership opportunities
  • Recruiters: Locating hiring managers and HR contacts
  • Entrepreneurs: Building contact lists for product launches or fundraising
  • Lead Generation Services: Automating prospect research for clients

Problems This Workflow Solves

  • Manual Research Time: Eliminates hours of manual company and contact research
  • Incomplete Contact Data: Ensures you have decision makers, not just generic emails
  • Email Deliverability Issues: Validates email quality before outreach campaigns
  • Data Organization: Maintains clean, structured prospect databases
  • Scaling Bottlenecks: Processes hundreds of companies automatically
  • High Lead Generation Costs: Reduces dependency on expensive lead generation services

Setup Requirements

Required API Credentials

  • Serper.dev API Key: For company domain search and discovery
  • OpenAI API Key: For intelligent domain extraction from search results
  • AnyMailFinder API Key: For decision maker email discovery and validation
  • NocoDB API Token: For database storage and management

Database Structure

Companies Table:

  • Id (Number): Unique company identifier
  • company_name (Text): Company name to search
  • location (Text): Company location for better search results
  • url (URL): Discovered company website
  • domain (Text): Extracted domain name
  • status (Select): Processing status tracking
  • emails (Text): All discovered company emails
  • company_emails_status (Text): Email validation status

Contacts Table:

  • companies_id (Number): Link to parent company
  • name (Text): Contact full name
  • position (Text): Job title/role
  • email (Email): Contact email address
  • email_status (Text): Email validation status
  • linkedin_url (URL): LinkedIn profile (when available)

System Requirements

  • Active n8n instance (self-hosted or cloud)
  • NocoDB database instance
  • Active API subscriptions for Serper.dev, OpenAI, and AnyMailFinder

How It Works

Phase 1: Domain Discovery

  1. Company Processing: Retrieves companies from database in batches
  2. Domain Search: Uses Serper.dev to search for official company websites
  3. AI Domain Extraction: OpenAI analyzes search results to identify official domains
  4. Database Updates: Stores discovered domains and URLs

Phase 2: Decision Maker Discovery

  1. Multi-Role Search: Finds emails for CEO, Sales, and Marketing decision makers using AnyMailFinder
  2. Email Validation: Validates email deliverability and flags risky addresses
  3. Contact Creation: Stores validated contacts with full details
  4. Status Tracking: Updates company status based on email discovery success

Phase 3: Company Email Backup

  1. Gap Analysis: Identifies companies with no valid decision maker emails
  2. Bulk Email Search: Finds up to 20 additional company emails using AnyMailFinder
  3. Final Updates: Stores all discovered emails for comprehensive coverage

Customization Options

Search Parameters

  • Modify search queries for better domain discovery using Serper.dev
  • Adjust location-based search parameters
  • Customize AI prompts for domain extraction

Decision Maker Roles

  • Add new decision maker categories (HR, Finance, Operations, etc.)
  • Modify existing role search parameters in AnyMailFinder
  • Customize email validation criteria

Data Processing

  • Adjust batch sizes for different processing speeds
  • Modify rate limiting delays
  • Customize error handling and retry logic

Database Schema

  • Add custom fields for industry, company size, etc.
  • Integrate with different database systems
  • Customize data validation rules

API Costs and Credits

  • AnyMailFinder: 2 credits per valid email found, 1 credit per bulk company search
  • Serper.dev: ~$1 per 1000 searches
  • OpenAI: Minimal costs for domain extraction prompts
  • Estimated Cost: about $0.03 per company processed (depending on email discovery success)

Benefits

  • Save 20+ Hours Weekly: Automate prospect research that takes hours manually
  • Higher Quality Leads: Get decision makers, not generic contact@ emails
  • Better Deliverability: Email validation reduces bounce rates
  • Scalable Process: Handle thousands of companies automatically
  • Cost Effective: Much cheaper than traditional lead generation services
  • Complete Database: Build comprehensive prospect databases with all contact details

Use Cases

  • Outbound Sales Campaigns: Build targeted prospect lists for cold outreach
  • Partnership Development: Find decision makers at potential partner companies
  • Market Research: Understand company structures and contact hierarchies
  • Recruitment: Locate hiring managers and HR contacts
  • Investor Relations: Find contacts at potential investor companies
  • Vendor Outreach: Identify procurement and operations contacts

Installation Instructions

  1. Import the workflow JSON into your n8n instance
  2. Set up NocoDB database with required table structures
  3. Configure all API credentials in the credential manager (including Serper.dev and AnyMailFinder)
  4. Update NocoDB connection settings with your database details
  5. Test with a small batch of companies before full deployment
  6. Monitor API usage and adjust batch sizes as needed

Best Practices

  • Start with high-quality company names and locations
  • Monitor AnyMailFinder credit usage to manage costs
  • Use Serper.dev efficiently with targeted search queries
  • Regularly clean and validate your prospect database
  • Respect email deliverability best practices
  • Follow GDPR and data privacy regulations
  • Use rate limiting to avoid API restrictions

Error Handling

  • Built-in retry mechanisms for API failures
  • Continues processing even if individual companies fail
  • Create an Error Workflow

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 - Get many rows

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

Block 3 - serper search domains

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

Block 4 - extract url & domain

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.8

Block 5 - Get Sales Decision Maker Email

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

Block 6 - Get Marketing Email

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

Block 7 - Get CEO Email

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

Block 8 - Update Companies Domains

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

Block 9 - Update Company Status

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

Block 10 - Filter

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

Block 11 - Remove Duplicates

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

Block 12 - Merge1

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

Block 13 - Extract Data3

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

Block 14 - Extract Data4

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

Block 15 - Extract Data5

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

Block 16 - Determine Email Status by Company

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

Block 17 - Get All Company Status

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

Block 18 - If Only Risky Emails1

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

Block 19 - If Email Found1

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

Block 20 - Get All Company Emails

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

Block 21 - Update Company Emails

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

Block 22 - Loop Over Items

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

Block 23 - Filter1

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

Block 24 - Sticky Note

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

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

3. Summary Table

Workflow Find B2B decision maker emails & build lead database with Serper.dev & AnyMailFinder
Complexity advanced
Nodes 33
Categories AI Summarization, Multimodal AI
Author Alexandra Spalato
Published 18 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/7543/7543.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 Find B2B decision maker emails & build lead database with Serper.dev & AnyMailFinder do?

Companies Email Finder & Lead Generation Automation Short Description Automatically find company domains, extract decision maker emails (CEO, Sales, Marketing), validate email quality, and build a ...

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 AI Summarization, Multimodal AI use case.