Integration · LeadPilot CAPI & Audience Hub
The ad platform sees who clicked —
the CAPI hub shows it who booked, who attended and who to exclude
Meta, Snapchat and TikTok optimise on what they can see: a click, a WhatsApp message, a form. Booking, real attendance and the unqualified number happen inside the clinic, out of their sight. capi.leadpilotai.co sends those facts back to all three platforms, hashed and matched at the highest quality — automatically from the Console for subscribers, or as a standalone service for any clinic.
The problem it solves in the clinic
An aesthetic clinic spends SAR 40,000 a month on Snapchat, TikTok and Instagram. The platforms know precisely who opened the ad and who tapped “message us on WhatsApp”. They do not know that only 12 of 300 booked, that 7 actually came, and that 90 numbers were curious or price-shopping. So the algorithm learns to bring more people who “message” — not people who attend.
Every medical media buyer knows the result: cost per message falls, cost per attendee rises, and the exclusion audience that would protect the budget is never uploaded because nobody has time to prepare hashed files in three formats for three platforms.
- The browser pixel sees the click and stops at the WhatsApp button
- Phone and WhatsApp bookings never reach the platform
- Curious and price-only numbers stay inside lookalike audiences
- Three platforms = three hash formats and three upload screens
- Excel files with ٠٥٥ numbers and “didn't book” statuses no platform understands
- Nobody knows what was actually sent, or at what match quality
How the connection works — step by step, no technical keys
- Open the hub and connect platforms with two valuesFrom capi.leadpilotai.co → “Connectors”: only the pixel ID and the access token for each of Meta, Snapchat and TikTok, with a mini guide showing where to copy them in 30 seconds. “Test connection” sends a test event and shows the platform's real reply.
- Record statuses the way your clinic worksReception records “appointment / attended / interested / excluded” with one tap from a simplified link with no keys; marketing uploads an Excel file or links a Google Sheet; or you paste WhatsApp chats as they are.
- The hub normalises, hashes and matchesEvery Saudi or GCC number in any format becomes +966…; a SHA-256 hash is produced in each platform's format (with “+” for TikTok, without for Meta and Snapchat), and a deterministic event ID prevents sending the same event twice in one day.
- The platforms learn from the truth“Appointment” and “attended” arrive as Schedule and Purchase events on all three CAPIs; “qualified” is added to custom audiences and “excluded” is removed from them — so the campaign trains on who sits at reception.
How a lead reaches an agent
Every event goes through one pipeline: the status is read from any Arabic or English word (حجزت, attended, ما حجز, مو جيد, Purchase, Lead), the number is normalised, a captured ad click is looked up through the reference code carried by the WhatsApp message, then the payload for each platform is built to the rudder-transformer standard and sent.
The live audit log shows, for every event: the source, the normalised number, the standard status, the estimated match quality (EMQ) out of 10, and the delivery result per platform with the actual request and response in milliseconds, plus a replay button.
The WhatsApp bridge generates a smart ad link that captures fbclid, ttclid or ScCid together with the browser and IP address before forwarding the customer to the clinic's WhatsApp; when that customer returns and is recorded as “booked”, match quality rises to 9.5 out of 10 because the platform sees the click and the number together.

The hub's five pillars
1 · Instant connection without complex OAuth
Meta Conversions API and Custom Audiences, Snapchat Conversions API and Audience Match, TikTok Events API and Custom Audiences — with only the pixel ID and access token, and a connection test that shows the platform reply Stripe-inspector style.
2 · Manual recorder and receptionist link
Record a customer's status in three seconds with one tap, no Excel, and a simplified receptionist link that shows no key or setting.
3 · Smart Excel and Google Sheets bridge
Flexible column mapping by letters A, B, C with header-row choice, Saudi dialect understanding (“حجزت / ما حجز / جيد / مو جيد”), GCC number normalisation, per-platform SHA-256 hashes, and duplicate blocking inside the file and across days.
4 · WhatsApp ad bridge and triage
Paste WhatsApp Web chats as they are, one-tap triage per number, Click-to-WhatsApp links that capture fbclid / ttclid / ScCid, and reverse attribution that lifts EMQ to 9.5 and above.
5 · Two-value webhook gateway and audit log
Any CRM sends the event with a URL and a key only, with the status in Arabic or English; a filterable, exportable live log and an inspector showing each platform's payload and reply with a replay button.
Full isolation per clinic
Each clinic has its own workspace with a secret key, a locked dashboard link and a receptionist link, plus an owner mode with a PIN for whoever runs several clinics.
Why custom audiences separate a winning campaign from a wasteful one
Adding who booked and attended to a custom audience gives the platform a seed for a lookalike that resembles attendees, not browsers. Removing whoever said “too expensive” or never answered stops the platform from spending your budget on copies of them. The hub does both automatically from the very status the employee records: “interested / attended” is added, “excluded” is removed — in each platform's format, without anyone touching a hash file.
Open the live hub now
The hub runs today, Arabic first with an instant English switch, and Riyadh time on every record.
What you should know, honestly
- Live sending per platform needs the pixel ID and access token from the clinic's ad account; the hub does not create or manage campaigns.
- The displayed match quality (EMQ) is an estimate from the available signals; the final figure is reported by each platform in its own tools.
- “Last click of the campaign” attribution is probabilistic by nature; the reference code carried by the WhatsApp message is the certain link.
- Only SHA-256 hashed identifiers are sent; no clear names or numbers reach any platform.
Common questions
Do I need LeadPilot AI CRM to use the hub?
How is it different from the Meta or Snapchat pixel on our website?
Do the platforms see our patients' names and numbers?
Our staff write statuses in their own words. Does that work?
How does our current clinic system connect to it?
Give your algorithms what actually matters: booking and attendance
Open capi.leadpilotai.co, connect one platform with its pixel ID and access token, and record the first status. Or request a LeadPilot AI trial to get it automatically.
Request a trial for your clinic
We set up a real trial account on your clinic's own data and walk you through connecting and configuring it. No credit card, no commitment.
- A real trial account on a system running today (Live Beta)
- You connect your ad accounts by signing in yourself — no keys, no technical IDs
- The Android app for your follow-up staff from day one
- We guide the setup and review results with you after two weeks
We never sell your details or share them with any ad network. They are used only to contact you and create your trial account.