LeadsLead capture, scoring and routing β from a form or webhook to a working list with score, notes and a full timeline.
Leads receives prospects from several sources, scores each one against rules you define, fires automatic actions once that score crosses a threshold, and gives you a working screen to follow up β status, internal notes, and a full per-lead timeline.
Embedded forms, Facebook/Instagram webhooks, or manual entry.
Per-field point rules (admin.php) that score every lead the moment it arrives.
Routes that fire an email, WhatsApp, or webhook once score reaches a minimum.
index.php β filters, detail panel, status changes, and notes.
capture.php accepts POST from any form on your site. It carries three layers of anti-spam protection: a honeypot (hidden "website" field), a time trap (rejects submissions under 3 seconds), and a 10-requests-per-minute-per-IP limit.
Since the 2026-10-10 audit (M21) the submission is signed with a hidden form_key field: the copy-paste snippet lives in Admin β Field mappings β Embedded form. A form without that signature keeps working βforms already published don't breakβ but the lead is flagged as "LEGACY unsigned", capped at 30 submissions per hour per business, and recorded in its timeline. The business must also exist and be active, and there is a 300-captures-per-hour cap per business (counters are evaluated inside MySQL).
incoming.php?source=facebook or incoming.php?source=instagram, with your business code (we give it to you when we connect it) receive the payload from Meta's native lead forms and translate it into your format via a per-source adapter. Limited to 100 requests per minute per IP.
The source filter on index.php includes "WhatsApp" and "Manual" as options, but today only Form, Facebook and Instagram have a live intake path wired up β those two remain reserved for when that channel gets activated.
Every field that arrives is stored in a flexible table (one row per field), so any form can send whatever fields it needs with no database changes.
Each rule evaluates a lead field against a value, with an operator (=, >, <, contains) and awards points if it matches. A lead's total score is the sum of every rule that applies β calculated automatically the moment the lead is created.
budget > 5000 β +50 points. If city = "Monterrey" is also worth +20, a lead matching both arrives with 70 points.
A route fires an action once a lead's score reaches the configured minimum. The config JSON changes per action β for email, {"to":"[email protected]"}.
| Action | What it does |
|---|---|
| Sends an email with every lead field and its score to the JSON's recipient. Fully working today. | |
| Currently a placeholder: logs the attempt on the lead's timeline but doesn't actually send the message yet (Meta/Twilio API still needs to be wired up). | |
| Webhook | Shows up as an option on the form, but the routing engine has no logic yet to fire an outbound webhook β selecting it currently does nothing. |
Every social platform sends its own field names β Facebook, for example, might send full_name while your system stores name. Mappings translate the external name into your internal one automatically before the lead is created, per source. Without a mapping, the field arrives exactly as the source sent it.
index.php lists every lead with filters by date, status and source. Opening one shows a two-column panel:
Every captured field, plus (admins only) a selector to move status between New, Contacted, Qualified and Closed.
Every lead event (created, scored, email sent, status changed) is logged automatically. You can add free-text internal notes anytime.