Home/Case Studies/AI B2B Lead Generation Automation
Internal CodelyHub Project

n8n B2B lead generation automation system for research and outreach.

This n8n B2B lead generation automation system was built by CodelyHub AI to discover businesses, research websites, verify business emails, analyze automation opportunities, score leads, personalize outreach, send one follow-up, and monitor replies, bounces, and unsubscribes.

Project Type: Internal Automation Workflows: 6 Core Stack: n8n + AI + Google Sheets
The Challenge

Why an n8n B2B lead generation automation system needs safe, repeatable outreach steps.

Manual B2B outreach meant repeatedly searching for businesses, checking websites, finding contact details, deciding whether a lead was relevant, writing personalized emails, tracking prior contact, and handling follow-ups. The goal was to automate those repeated steps without turning the system into a bulk-email bot.

Manual research

Finding businesses and reviewing websites one by one takes time and makes daily outreach difficult to repeat consistently.

Contact quality risk

A technically valid email can still belong to the wrong business, so simple domain matching is not enough.

Outreach control

Duplicate outreach, repeated follow-ups, bounces, unsubscribes, and daily limits all need to be managed safely.

The Solution

Six connected workflows manage the complete outreach lifecycle.

Each workflow handles one responsibility so lead discovery, analysis, sending, follow-up, monitoring, and orchestration remain easier to control and debug.

01

Business Lead Generator

Selects an active search target, finds businesses with Geoapify, handles pagination and duplicate prevention, and saves usable leads.

02

Website Analyzer + Email Personalizer

Visits the business website, extracts useful information, verifies contact details, identifies a possible automation opportunity, scores the lead, and creates a personalized email.

03

Daily Approved Outreach Sender

Sends the initial email only when the lead passes final approval, analysis, duplicate, and safety checks.

04

Automatic Follow-up Sender

Sends one follow-up only, then completes the outreach lifecycle instead of repeatedly contacting the same lead.

05

Reply Monitor + Suppression Manager

Tracks replies, bounces, and unsubscribes and suppresses addresses that should not be contacted again.

06

Daily Outreach Controller

Coordinates scheduling, search-target availability, lead generation, analysis, safe approval, sending limits, reporting, and Google Sheets control updates.

Safety First

The system was designed to prefer no email over the wrong email.

During testing, a business was incorrectly associated with a website and email that technically matched each other but did not belong to the actual business. That exposed a weakness in simple domain matching and led to stronger identity checks.

Business-to-domain validation

The workflow compares business name, website domain, address, domain brand, and business words before trusting a website-domain email.

Lead safety rules

Invalid, missing, suspicious, duplicated, previously bounced, unsubscribed, or low-score leads are rejected or suppressed.

Conservative AI language

When website evidence is weak, generated outreach uses cautious wording instead of claiming a business definitely has a problem.

Real Test Result

34 raw businesses → 3 qualified leads → 3 initial outreach emails.

In an August 31 test using a Tehran automotive search target, the system returned 34 raw results, saved 3 valid leads, selected all 3 after analysis and safety checks, and sent 3 initial outreach emails. One later bounced, and the monitoring workflow detected the bounce automatically.

34

Raw business results returned by the search target.

3

Valid leads saved and selected after analysis and safety checks.

3

Initial outreach emails sent; one later bounce was detected automatically.

What This Achieved

One controlled system instead of disconnected outreach tasks.

The project connected business discovery, website research, email verification, AI analysis, lead scoring, personalization, approval, sending, follow-up, suppression, scheduling, and reporting into one automated process.

Automated daily operation

The controller can run on schedule and coordinate the supporting workflows without requiring each stage to be started manually.

Safer outreach

Tests that produced no verified send-ready lead correctly resulted in zero emails rather than forcing outreach to questionable recipients.

Central control

Google Sheets stores search targets, leads, outbound email logs, and automation settings so the system remains visible and controllable.

Technology

Built with practical tools that can be maintained and extended.

n8n handles orchestration, Geoapify provides business discovery, OpenAI GPT-4o-mini supports analysis and personalization, Google Sheets acts as the control layer, Gmail handles sending, and n8n HTTP requests support website analysis.

n8n

Workflow orchestration, scheduling, control logic, API calls, branching, and automation.

OpenAI + Geoapify

Business discovery, AI-assisted analysis, lead scoring support, and personalized outreach generation.

Google Sheets + Gmail

Search targets, lead records, outbound logs, automation settings, and controlled email delivery.

Current Improvement

Adaptive search-target selection is the next design improvement.

The current controller plans search-target runs mainly from the daily email goal. Because one target may return many safe leads and another may return none, a future version should continue trying additional targets until the safe-lead goal or a maximum run limit is reached.

Need a similar system?

Build a safer lead research and outreach workflow for your business.

CodelyHub AI can map your lead sources, qualification rules, CRM or Google Sheets process, communication channels, and automation limits into a controlled workflow.

WhatsApp