A lead scoring service with 45 tests that tells the ad platform which form leads are qualified, live since July 23, 2026
I built a webhook service that scores every new CRM contact from its form answers and sends a qualified-lead conversion event back to Meta. It went fully live on July 23, 2026 and test events were accepted end to end. No campaign optimizes on the new event yet, so there is no outcome to report.
- Automated tests in the scoring service
- 45
- At go-live, July 2026
- From ad click ID capture verified live to the scoring service fully live
- 8 days
- July 15 to July 23, 2026
- Qualified-lead events recorded against a campaign in the warehouse. The ad set still runs on the old form-fill event
- 0
- As checked November 16, 2026
The problem
The client makes supplements for other brands. Its Meta campaign optimized toward any completed contact form. A person with a first idea counted the same as an established brand looking for a new supplier. The form already asks each lead to describe their business in a dropdown. That answer never reached the ad platform.
Discovery
The first scoring rule used website traffic for the lead's company domain. The client did not want another form field, so the rule moved to the existing dropdown. Scoring then had to match the stored values behind the dropdown, because most of the visible labels had been reworded after the form was created. The second finding cost more time. Meta accepted the custom event at the API and then discarded it during processing until the business confirmed the event name in its settings. An accepted request did not mean a counted event, so I checked Meta's event tools before calling the service live.
What it does
- 01
Capture the ad click
A snippet on the website keeps the ad click ID from the landing page through to the form and stores it on the CRM contact.
- 02
Receive and verify
The CRM calls the service when a contact is created. The service checks the request signature before reading anything and ignores repeat deliveries.
- 03
Score
A pure function reads the dropdown answer and returns qualified or unqualified. The qualifying answers live in a config file.
- 04
Write the verdict
Every lead gets its verdict written to a CRM property. An unqualified lead is never blocked or hidden from sales.
- 05
Send the event
A qualified lead that arrived from an ad click produces one qualified-lead event to Meta, with contact details hashed and a stable event ID so a retry cannot count twice. Qualified leads with no ad click are skipped.
- 06
Report
A report lists the leads that passed.
Timeline
July 15, 2026
Click ID capture from website to CRM verified live.
July 22, 2026
Scoring moved to the form dropdown. Signed test posts on production returned the right verdicts, and Meta accepted the event in test mode.
July 23, 2026
CRM writes (switched on the evening before), the report and live events switched on. Service fully live.
November 16, 2026
Warehouse check: the campaign still records the old form-fill event and no qualified-lead events.
Before and after
| Measure | Before | After |
|---|---|---|
| What the ad platform can be told about a lead | A form was completed | A form was completed, plus a separate event when the lead is qualified (from July 23, 2026) |
| Event the live ad set optimizes on | Any form fill | Any form fill (unchanged as of November 16, 2026) |
| Cost per qualified lead | not measured | not measured |
The arithmetic
There is no outcome arithmetic here. The delivery figures are 45 tests and the 8 days from July 15 to July 23, 2026. Live means the service receives contacts, scores them and sends events. No campaign has used those events.
What stays with people
A Graphed colleague set which dropdown answers count as qualified, and changing that is a config edit. CRM writes and live events each had their own switch, turned on one at a time after test mode passed. Sales still works every lead. Choosing the conversion event for an ad set happens inside Meta, and the service cannot do it.
Limits
This case has no business result. Meta does not allow a published ad set to change its conversion event, so using the new event means building a new ad set, and that step belonged to a colleague. As of November 16, 2026 the warehouse shows no qualified-lead events against the campaign. I cannot say whether optimizing on qualified leads lowers cost or improves lead quality. The scoring rule is one self-reported form answer, so it is only as good as what people select.
What is next
Build the ad set on the qualified-lead event and run it beside the current one. The first real measurement is the count of qualified-lead events that campaign records, then cost per qualified lead against cost per form fill for the same weeks.
- lead qualification
- lead scoring
- Conversions API
- HubSpot
- Meta ads
- webhooks