Skip to main content

Automated B2B prospecting with RapidAPI, Hunter.io, GPT & Gmail

Workflow preview

Workflow preview
100%
Automated B2B prospecting with RapidAPI, Hunter.io, GPT & Gmail preview
Open on n8n.io

Important notice

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

1. Workflow Overview

Automate your B2B prospecting by finding local businesses and sending AI personalized outreach emails to qualified contacts. What This Workflow Does This workflow acts as a powerful AI Sales Assist...

Best for

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

Tools used

@n8n/n8n-nodes-langchain.lmchatopenai, n8n-nodes-base.formtrigger, n8n-nodes-base.httprequest, n8n-nodes-base.splitout, n8n-nodes-base.if, n8n-nodes-base.html, n8n-nodes-base.hunter, @n8n/n8n-nodes-langchain.agent

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Automated B2B prospecting with RapidAPI, Hunter.io, GPT & Gmail
Workflow name
Automated B2B prospecting with RapidAPI, Hunter.io, GPT & Gmail

Automate your B2B prospecting by finding local businesses and sending AI-personalized outreach emails to qualified contacts.

What This Workflow Does This workflow acts as a powerful AI Sales Assistant, automating your entire B2B lead generation process for local businesses. It saves you countless hours of manual research and outreach by intelligently finding prospects, enriching their data, and drafting personalized emails tailored to their specific business. Stop prospecting manually and start scaling your outreach efforts effectively.

How It Works The process is designed to be both smart and efficient:

Find Businesses: It starts by searching for local businesses based on your criteria (e.g., "engineering in London").

Qualify & Enrich: It filters out businesses without a website. For the valid ones, it scrapes the website's title and description to understand what they do.

Identify Contacts: Using Hunter.io, it finds professional email contacts associated with the company and verifies their validity to ensure high-quality leads.

Generate AI-Personalized Emails: For each valid contact, it uses OpenAI to write a unique, short, and professional outreach email. The AI uses the scraped website information to create a personalized hook, showing you've done your research.

Send & Organize: The final email is sent automatically via your Gmail account. If a business has no website, a follow-up task is created in your Google Tasks for manual review.

Key Benefits Save Time: Automate a time-consuming prospecting process from start to finish.

Increase Reply Rates: Engage prospects with personalized emails, not generic templates.

Scale Your Outreach: Generate and contact dozens of qualified leads effortlessly.

Stay Organized: Never lose a lead, thanks to the integrated task management for manual follow-ups.

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 - OpenAI Chat Model

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

Block 2 - compagny_search

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

Block 3 - Search Local Businesses

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

Block 4 - Split Out Businesses

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

Block 5 - If Website Exists

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

Block 6 - Scrape Website

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

Block 7 - If Scraping Succeeded

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

Block 8 - Extract Title & Description

Type / Role
n8n-nodes-base.html - html
Config choices
Version 1.2

Block 9 - Find Contacts (Hunter)

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

Block 10 - Split Out Contacts

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

Block 11 - If Contact Is Valid

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

Block 12 - Generate Email Body (AI)

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

Block 13 - Format AI Output

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

Block 14 - Assemble Final Email

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

Block 15 - Send Email (Gmail)

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

Block 16 - Set Task Data

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

Block 17 - Create Google Task for Follow-up

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

Block 18 - Sticky Note

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

Block 19 - Sticky Note1

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

Block 20 - Sticky Note2

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

Block 21 - Sticky Note3

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

3. Summary Table

Workflow Automated B2B prospecting with RapidAPI, Hunter.io, GPT & Gmail
Complexity advanced
Nodes 21
Categories Lead Generation, Multimodal AI
Author Jimmy Gay
Published 14 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/7393/7393.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 Automated B2B prospecting with RapidAPI, Hunter.io, GPT & Gmail do?

Automate your B2B prospecting by finding local businesses and sending AI personalized outreach emails to qualified contacts. What This Workflow Does This workflow acts as a powerful AI Sales Assist...

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