Data Automation Engineer · Portfolio Project
Real-time Lead Pipeline Dashboard
An n8n workflow pulls ad spend from Meta Ads and Google Ads plus leads from GoHighLevel CRM. It cleans the messy data, joins leads to campaigns and returns the KPIs below. The dashboard polls the workflow's webhook, so every refresh is a fresh pipeline run.
Sample clients, campaigns and contacts are fictional. Demo mode runs the same pipeline code as the n8n workflow, inside your browser.
Real-world scenario
- An agency runs paid ads for 3 local service clients: dental, auto care and plumbing.
- Each platform reports its own lead count, CRM exports are messy, and nobody trusts the numbers.
- This pipeline makes the CRM the source of truth and refreshes cost per lead, bookings and ROAS continuously.
Connect your n8n workflow
The URL is saved only in this browser.Import lead-pipeline.workflow.json into n8n, activate it, then paste the webhook's Production URL (ending in /webhook/lead-pipeline-metrics).
Pipeline run
Extract → Clean → Transform → Analyze → Deliver
Last 24 hours
Deltas compare with the previous refresh
CRM leads per hour, by channel
Meta AdsGoogle AdsOrganic
Show as table
Leads by channel
CRM vs platform-reportedPaid funnel
Campaign performance
Click a column to sortAd spend per hour
Insights from the Analyze step
Data cleaning
What the Clean node fixed on this run
Data quality score
–
Raw CRM record → clean record
Samples from this runLive lead feed
Newest CRM leads after cleaningRun log
Each row is one webhook callThe n8n workflow
Download workflow JSONWebhookGET poll
Extract: Meta Adsinsights by hour
Extract: Google AdsGAQL report
Extract: GHL CRMcontacts
Mergeappend 3 inputs
Cleandedupe · validate
TransformUTM join · facts
AnalyzeKPIs · insights
RespondJSON + CORS
How real-time updating works
Dashboardsends
GET to the webhook every 5–60 sn8nruns Extract → Clean → Transform → Analyze
Respondreturns one JSON payload in under a second
Dashboardre-renders, highlights new leads and KPI changes
Paused tabpolling stops while the tab is hidden, saving executions
Set it up in 5 steps
- Download the workflow JSON above.
- In n8n, open Workflows → Import from File.
- Activate the workflow. It runs on sample data with no credentials.
- Copy the webhook node's Production URL and paste it into Connect n8n.
- For real data, swap the 3 extract nodes for HTTP Request nodes to the Meta, Google Ads and HighLevel APIs, keeping the same output fields.
Live JSON payload
Waiting for first run…
Suggested data sources
Other pipelines to build with the same Extract → Clean → Transform → Analyze pattern