Loading... Loading... Loading... Loading... Loading... United Arab Emirates, Dubai
Automation Case Study

AI-Driven B2B Pipeline

LinkedIn Leads
Automation & Enrichment

A fully autonomous n8n-orchestrated pipeline that discovers high-intent B2B prospects on LinkedIn across GCC markets, enriches contact data, scores leads with GPT-4o-mini, and delivers actionable sales intelligence directly into Microsoft Teams — with one-click CRM sync to HubSpot.

Client Voila Digital
Scope B2B Lead Automation
Core Stack n8n · GPT-4o-mini · HubSpot
Market GCC Region (SA, AE, KW, QA, OM)
0%
Manual Prospecting Eliminated
0+
GCC Markets Monitored Continuously
0
Integrated Platforms & APIs
0
Sales Actions Inside Microsoft Teams
0s
Human Effort to Surface a Qualified Lead

01 — Overview

Executive Summary

This automation architecture eliminates the manual overhead of sourcing, filtering, and qualifying high-intent B2B prospects on LinkedIn. Developed for Voila Digital using n8n as the core workflow orchestrator, the system autonomously identifies organic buyer intent within targeted GCC markets.

It triggers cognitive filtering via GPT-4o-mini, enriches incomplete corporate records via specialized APIs (e.g., Lusha API), and surfaces an interactive micro-dashboard natively inside Microsoft Teams.

The integration loop is finalized through direct synchronization with HubSpot CRM and outbound SMTP relays — creating a zero-touch pipeline from signal detection to pitch delivery.

The Problem

The Challenge

  • Sales teams spend hours manually scrolling LinkedIn for inbound intent signals
  • Valuable buying signals in Arabic & English posts across 5 GCC markets were being missed entirely
  • No systematic way to enrich prospect contact data (email, phone) from public LinkedIn profiles
  • Personalized outreach took 30–60 minutes per lead to research and draft
  • CRM hygiene suffered — deals created too late or never logged at all
  • No visibility into lead status across the team without manual status calls

The Solution

  • Cron-scheduled Google Dorking via Serper.dev to surface intent posts 24/7
  • Apify actor deep-extracts post metadata and author identifiers
  • Lusha API resolves corporate emails and direct mobile numbers
  • GPT-4o-mini scores relevance and generates a bespoke HTML pitch email
  • Sales team acts directly from a Teams card — no CRM login required

02 — Architecture

System Workflow Pipeline

Seven interconnected stages from scheduled trigger to CRM-synchronized deal creation.

⏱ Cron Schedule
Trigger
›
🔍 Serper.dev Google
Dorking
›
🕷 Apify Deep Post
Extraction
›
📇 Lusha API Contact
Enrichment
›
🧠 GPT-4o-mini AI Scoring
& Pitch
›
💬 MS Teams Adaptive
Card Alert
›
📊 HubSpot CRM
Sync
n8n
n8n Workflow Canvas
Full automation pipeline — actual n8n implementation
Live Build
n8n Workflow — LinkedIn Leads Automation full pipeline canvas
⏱ Cron Trigger 🔍 Serper.dev 🕷 Apify Actor 📇 Lusha API 🧠 GPT-4o-mini 💬 MS Teams 📊 HubSpot CRM
1

Search & Discovery

Serper.dev

Executes advanced Google Dorking queries targeting regional LinkedIn post indexes. Monitors intent-heavy keywords in both English and Arabic (e.g., "looking for a digital marketing agency", "نبحث عن شركة تسويق") restricted to GCC regional metadata (SA, AE, KW, OM, QA) on a cron-scheduled interval.

2

Deep Post Extraction

Apify

Dispatches scraped URL payloads into a high-concurrency Apify LinkedIn post actor to extract raw metadata, native author identifiers, activity timestamps, and unstructured post copy — the full signal payload for downstream processing.

3

Corporate B2B Data Enrichment

Lusha API

Intercepts profile data with the Lusha API and alternative data-matching layers. Completes identity resolution by appending corporate business emails and direct mobile contact endpoints — data absent from public LinkedIn fields.

4

Algorithmic Evaluation & Synthesis

GPT-4o-mini

Feeds compiled schemas into an advanced OpenAI LLM Agent. The cognitive layer verifies service alignment, generates an explicit analytical reasoning block, and constructs a bespoke, outcome-oriented HTML outreach email signed by the Senior Business Development Manager — ready to send in one click.

03 — Notification Layer

Microsoft Teams
Adaptive Card

The n8n state engine parses each qualified lead into an interactive adaptive card dispatched via the Microsoft Graph API. The card surfaces every field the sales team needs — enriched contacts, AI reasoning, and a pre-drafted pitch — without leaving Teams.

  • Name — Full LinkedIn author name
  • Activity ID — Unique post identifier (used as de-duplication key)
  • Posted Date & Age — ISO timestamp + relative elapsed (e.g., 3d, 1w)
  • Enriched Contacts — Business email, phone, preferred channel
  • Post Content — Unaltered original post text
  • AI Reasoning — Why this post passed qualification thresholds
  • Generated Email — Hyper-personalised HTML pitch, ready to fire
MS
Microsoft Teams
Live adaptive card — actual system output
Live Preview
Microsoft Teams Adaptive Card — LinkedIn Leads Automation live output

04 — Sales Tooling

The 5 Omnichannel Micro-Actions

Webhook-driven interactive actions exposed directly at the base of each Teams card — no CRM login, no tab-switching.

1

Approve & Send Email

Immediately fires the pre-generated HTML proposal to the prospect's email via SMTP relay, and synchronously instantiates Contact, Account, and Deal objects inside HubSpot CRM.

2

Edit Lead Email

Interrupts the automated routing queue to present an input modal, enabling manual verification or correction of the target email destination before dispatch.

3

Edit Generated Email

Launches an on-the-fly text editor within Teams to fine-tune copy, alter tone, or append case studies before sending the pitch.

4

Ignore Request

Drops the active queue event, flag-logs its status as Ignored in the Google Sheets ledger, and strips the button array from Teams to maintain a clean workspace.

5

Mark as Connected Externally

Manually closes the event loop when outreach was initiated via LinkedIn InMail or WhatsApp. Triggers a Google Sheets status update and sets the HubSpot pipeline stage accordingly.

05 — Technology

Stack & Integration Matrix

⚙️
n8n Enterprise
Core State Machine & Logic Orchestrator — manages all workflow stages, conditional branching, and error handling
Self-Hosted · Encrypted Credential Vaults
🧠
OpenAI GPT-4o-mini
Cognitive Analysis, lead scoring, reasoning block generation, and bespoke HTML pitch email creation
Bearer Token Auth · TLS 1.3
📊
HubSpot API
CRM Pipelines, Deal creation, Contact & Account lifecycle management — automatically synced on approval
Private App Access Scoping Tokens
💬
Microsoft Graph API
Dynamic Teams Adaptive Card delivery & webhook-driven action hooks for all 5 sales micro-actions
Azure App Registration · OAuth2 Client Credentials
📋
Google Sheets API
Intermediate ledger & de-duplication database — tracks lead status across all pipeline stages
Google Cloud Service Account Credentials
🔍
Serper.dev
Google Search API powering advanced Dorking queries for LinkedIn post discovery across GCC regions
Secure Header Token Validation
🕷
Apify
High-concurrency LinkedIn post actor for extracting structured metadata, author data, and post content at scale
Secure Header Token Validation
📇
Lusha API
Corporate B2B contact enrichment — resolves business emails and direct mobile numbers from public LinkedIn identifiers
Secure Header Token Validation

06 — Monitoring

Real-Time Analytics & Performance Tracking

Every lead processed, action taken, and pipeline stage transition is logged and visualized — giving the team full operational visibility over the automation's output at a glance.

What the Dashboard Tracks

  • Total leads detected vs. qualified leads passed to the sales team
  • Action breakdown — Approved, Ignored, Edited, Connected Externally
  • Lead volume trends over time across GCC markets
  • Average time from detection to first outreach
  • HubSpot deal conversion rates originating from automated leads
  • Top-performing intent keywords driving the highest-quality prospects

Why This Matters

Automation without visibility is a black box. This dashboard transforms the pipeline into a measurable revenue engine — enabling continuous tuning of AI thresholds, keyword targeting, and outreach timing based on real conversion data rather than guesswork.

📊
Leads Analytics Dashboard
Live performance monitoring — automation output
Live Data
LinkedIn Leads Automation Analytics Dashboard — real-time performance monitoring

Ready to automate your pipeline?

Build Your Own Lead
Automation System

Let's design an end-to-end B2B prospecting pipeline tailored to your market, tools, and sales workflow.

Start Your Project