artenis.alija
ende
Paid ads · Lead generationInternal dashboardSelf-hosted

Meta Lead Ads Automation Dashboard

A self-hosted dashboard that syncs Meta lead ads, contacts every new lead within minutes and uses a local AI to cut cost per lead.

Diagram of the Meta Ads lead-gen dashboard: Meta sync and lead webhook, dashboard, local Qwen model and WhatsApp and email outreach
How it works: Meta sync, local AI and instant outreach

The brief

Running Meta lead ads well means watching cost per lead every day, acting on the numbers and contacting each new lead within minutes. Ads Manager shows the data but does not say what to change, and leads sit in a form export until someone downloads them.

What I built

  1. 01

    Synced campaigns, ad sets, ads and leads through the Meta Marketing API, and received new leads instantly through a separate, signature-verified lead webhook.

  2. 02

    Ran a local Qwen model over the account’s own numbers to rank concrete changes that lower cost per lead, each with an Apply button that respects budget guardrails.

  3. 03

    Sent every new lead a WhatsApp or email message from an editable template with drag-and-drop lead fields.

  4. 04

    Added an MCP server so other AI tools can query the ad account, and plain-language questions inside the dashboard.

  5. 05

    Built two guards against accidental exposure: the dashboard refuses to start on a public address without a login, and refuses requests from non-private hosts, which also blocks tunnels.

What the dashboard does

Today

Cost per lead, this month’s pacing and the three changes worth making now.

Lower my CPL

Ranked, specific recommendations from the local model, each applied with one click within guardrails.

Leads

Every lead with its source campaign, who to contact and whether they have been messaged.

Campaigns

Campaign, ad set and daily charts, drilled down from the account level.

Ask AI

Plain-language questions about your own numbers, answered by the local model.

Connect & diagnostics

Meta sign-in, WhatsApp pairing by QR, email, and a health check for every connection.

Result

  • Cost per lead, pacing and the next three changes on one screen every morning.
  • New leads are contacted within minutes, and ad and lead data never leave the server for a third-party AI.

Stack

  • Python
  • FastAPI
  • PostgreSQL
  • Next.js
  • Meta Marketing API
  • WhatsApp
  • Qwen (local LLM)
  • MCP
  • Docker

Need something like this?

This project draws on the services below. Each page explains how I scope, build and hand over this kind of system.

More work

View all

Get in touch

Tell me what needs automating

Describe the process that is costing you time and roughly how much. I reply to every enquiry personally, usually within one working day.

Response
Usually within one working day, Mon–Fri CET
Delivery
Remote across Europe, the Nordics and the Gulf
Or email inquiries@artenisalija.com