An enterprise-grade AI system engineered to transform LinkedIn outreach into a fully autonomous, data-driven growth engine. Powered by agentic workflow orchestration, it combines ICP-driven discovery, deep AI enrichment, semantic content intelligence, and multi-signal lead scoring to identify, prioritize, and engage high-value prospects with precision.
This project delivers a fully automated, AI-powered LinkedIn lead generation and outreach system designed to operate at scale while maintaining compliance, safety, and auditability.
The system orchestrates multiple autonomous workflows that:
- Clarify the Ideal Customer Profile (ICP)
- Discover leads via LinkedIn Sales Navigator
- Enrich company and individual data
- Apply AI-driven content intelligence
- Score leads using multi-signal reasoning
- Execute controlled LinkedIn outreach
All workflows are orchestrated using n8n, powered by LLMs, and backed by Google Sheets as a lightweight datastore.
- ๐งฉ Project Overview
- ๐ฏ Objectives & Goals
- โ Acceptance Criteria
- ๐ป Prerequisites
- โ๏ธ Installation & Setup
- ๐ API Documentation
- ๐ฅ๏ธ UI / Frontend
- ๐ข Status Codes
- ๐ Features
- ๐งฑ Tech Stack & Architecture
- ๐ ๏ธ Workflow & Implementation
- ๐งช Testing & Validation
- ๐ Validation Summary
- ๐งฐ Verification Testing Tools
- ๐งฏ Troubleshooting & Debugging
- ๐ Security & Secrets
- โ๏ธ Deployment
- โก Quick-Start Cheat Sheet
- ๐งพ Usage Notes
- ๐ง Performance & Optimization
- ๐ Enhancements & Features
- ๐งฉ Maintenance & Future Work
- ๐ Key Achievements
- ๐งฎ High-Level Architecture
- ๐๏ธ Project Structure
- ๐งญ How to Demonstrate Live
- ๐ก Summary, Closure & Compliance
The AI LinkedIn Lead Generation Machine is a modular, phase-driven automation system. Each phase operates independently but contributes to a shared lead lifecycle.
The system is designed to be:
- Deterministic
- Idempotent
- Auditable
- Scalable
- Automate LinkedIn lead discovery
- Replace manual research with AI enrichment
- Reduce outreach noise through scoring
- Ensure compliance and platform safety
- Create a reusable lead intelligence pipeline
- Leads are discovered automatically
- Company and content data is enriched
- Lead scoring is deterministic
- Outreach never duplicates
- All actions are logged
- Self-hosted or cloud n8n instance
- LinkedIn account with Sales Navigator
- Google Workspace account
- LLM provider credentials
- Deploy n8n
- Configure credentials
- Create Google Sheet datastore
- Import workflows (Phase 00 โ Phase 05)
- Validate each phase independently
This system does not expose a traditional REST or GraphQL API. Instead, it operates as an event-driven internal automation platform where APIs are consumed indirectly through n8n-managed connectors. Each connector abstracts external services and enforces governance, retries, and rate limits.
| Category | Service | Purpose | Interaction Type |
|---|---|---|---|
| Professional Network | LinkedIn (Sales Navigator) | Lead discovery, connections, messaging | Authenticated automation |
| AI Inference | LLM Provider | Summarization, scoring, reasoning | Stateless inference calls |
| Datastore | Google Sheets API | Persistent lead lifecycle storage | Read / Append / Update |
- All credentials are stored in n8nโs encrypted vault
- No API keys are committed to source control
- All calls are rate-limited via workflow design
- Failures are isolated per lead execution
No traditional frontend exists.
Operational visibility is provided through:
- n8n execution logs
- Google Sheets dashboard
Styling, layout, and data views are managed within Google Sheets.
| Status | Description |
|---|---|
| 200 | Successful workflow execution |
| 429 | Rate limit enforced |
| 500 | Transient platform failure |
- ICP-driven autonomous lead discovery
- AI-powered company and content intelligence
- Multi-signal lead scoring with reasoning
- State-aware outreach automation
- Human-like pacing and safety controls
| Aspect | Implementation |
|---|---|
| Idempotency | Boolean state flags in datastore |
| Auditability | Timestamped lifecycle fields |
| Scalability | Batch processing + loops |
| Compliance | Strict phase separation |
- Workflow Orchestration: n8n
- AI Reasoning: Large Language Models
- Datastore: Google Sheets
- Automation Runtime: Node.js (n8n engine)
+-----------------------------+
| Human / Operator Input |
+-------------+---------------+
|
v
+-----------------------------+
| Phase 00: ICP Agent |
+-------------+---------------+
|
v
+-----------------------------+
| Phase 01: Lead Discovery |
+-------------+---------------+
|
v
+-----------------------------+
| Phase 02: Enrichment |
+-------------+---------------+
|
v
+-----------------------------+
| Phase 03: AI Analysis |
+-------------+---------------+
|
v
+-----------------------------+
| Phase 04: Lead Scoring |
+-------------+---------------+
|
v
+-----------------------------+
| Phase 05: Outreach |
+-------------+---------------+
|
v
+-----------------------------+
| Google Sheets Datastore |
+-----------------------------+
- ICP is defined and validated via AI conversation
- ICP is converted into LinkedIn-compatible filters
- Leads are discovered and normalized
- Company websites are identified and parsed
- AI extracts business and content intelligence
- Signals are merged and scored
- Outreach is executed under strict limits
- Each phase is independently executable
- No phase mutates upstream logic
- Failures do not cascade
| ID | Area | Method | Expected Outcome | Explanation |
|---|---|---|---|---|
| T-01 | Lead Discovery | Manual workflow run | Rows added to sheet | Validates LinkedIn integration |
| T-02 | Scoring | Dry-run scoring | Score populated | Ensures AI reasoning integrity |
- All phases execute deterministically
- No duplicate outreach observed
- Scores remain consistent for identical inputs
- n8n Execution History
- Google Sheets revision history
- LinkedIn account activity logs
| Issue | Root Cause | Resolution |
|---|---|---|
| No leads discovered | Overly strict ICP | Relax search filters |
| Duplicate outreach | State flag missing | Verify sheet schema |
- No secrets in repo
- Credentials stored in n8n
- Environment variables via .env.example
The system is deployed as a backend automation platform.
- n8n runs on a persistent server
- No frontend build required
- Vercel is optional for future UI layers
- Import workflows
- Bind credentials
- Create Google Sheet
- Run Phase 00
- Enable schedulers
- Start with conservative outreach limits
- Review AI summaries before scaling
- Monitor LinkedIn account health
- Batch processing reduces API calls
- Selective AI invocation lowers cost
- Sheet-based idempotency avoids rework
- CRM integration (HubSpot, Salesforce)
- Reply sentiment classification
- Adaptive scoring feedback loop
- Migrate datastore to relational DB
- Add analytics dashboard
- Introduce A/B testing for messages
- End-to-end autonomous pipeline
- Zero manual research dependency
- Enterprise-safe outreach execution
The system follows a strict linear intelligence flow:
ICP Definition
โ
Lead Discovery
โ
Company Enrichment
โ
AI Content Analysis
โ
Lead Scoring
โ
Controlled Outreach
AI-LINKEDIN-LEAD-GENERATION-MACHINE โโโ diagrams โ โโโ 00-conversation-agent โ โโโ 01-lead-discovery โ โโโ 02-company-enrichment โ โโโ 03-content-intelligence โ โโโ 04-lead-scoring โ โโโ 05-outreach-automation โโโ docs โโโ samples โ โโโ google-sheets-schema.csv โโโ workflows โ โโโ 00-conversation-agent.json โ โโโ 01-lead-discovery.json โ โโโ 02-company-enrichment.json โ โโโ 03-content-intelligence.json โ โโโ 04-lead-scoring.json โ โโโ 05-outreach-automation.json โโโ .env.example โโโ .gitignore โโโ README.md
- Run Phase 00 manually
- Trigger Phase 01 discovery
- Show enrichment results
- Display scores
- Simulate outreach
This project represents a compliant, scalable, and production-grade AI automation system. It demonstrates how advanced AI reasoning can be operationalized safely within real-world platform constraints.
The architecture enforces governance, traceability, and ethical automation practices, making it suitable for enterprise deployment and client-facing delivery.