A lead is anyone who's interested but hasn't bought yet. a web-form submission, a phone enquiry, a walk-in browsing. The funnel tracks them from first contact to first paid invoice. Attribution data (where they came from) stays with the lead so marketing reports show what's working.
The funnel#
Out of the box, every lead moves through a small set of stages. The exact names are tenant-configurable, but the underlying codes are fixed because booking and payment events drive auto-advance against them:
- New lead (
new_lead) captured. - Engaged (
engaged) records a two-way conversation after the clinic's first outbound; it is separate from booking. - Booked consultation pending (
booked_consultation_pending) a consultation session has been created. Auto-fires from booking. - Booked consultation arrived (
booked_consultation_arrived) patient walked in. Auto-fires on session check-in. - Booked consultation paid (
booked_consultation_paid) paid the consultation invoice. This is the "won" state. Auto-fires only when the customer already has a consultation session. - Booked consultation no-show (
booked_consultation_no_show) auto-fires from booking no-show. - Not qualified (
not_qualified) / No answer (no_answer) / Lost (lost) / Failed (failed) manual end states. Lost requires a free-text reason.
Stage advance is forward-only for automation-driven events: a paid lead cannot be pulled back to pending by a later session-arrived event. Manual stage moves via the kanban can target any stage. Tenants can add custom stages (e.g. "Quoted", "Negotiating") but those stay manual. Only the codes above are reachable from booking and payment events.
For marketing / sales#
Create a lead#
- Open Marketing → Leads → + New.
- Fields: name, mobile, source (Meta / Google / TikTok / Direct / Referral / Walk-in), campaign / ad / utm tags, assigned to.
- Save. The lead enters at
new_lead.
Most leads come in automatically:
- Web forms: your site's contact form posts to the lead intake endpoint.
- Meta lead ads: Instagram / Facebook lead-gen forms feed in via the Meta integration.
- WhatsApp first message: inbound messages create a lead automatically only when the message matches a configured first-message template, when the conversation carries a Click-to-WhatsApp ad payload, or when the sender's phone is recognised by an active ingestion adapter. A truly anonymous "hi" with no signal lands in the messaging inbox but does not auto-create a lead.
Work the lead#
- Filter your assigned leads by stage.
- Call / message them. Log the outcome on the lead's drawer.
- Move the stage as the conversation progresses.
- If they book a consultation session, the system bumps them to
booked_consultation_pendingautomatically. - If they're not buying, mark them
lostwith a free-text reason, or usenot_qualified/no_answerwhen they fit.
The system never auto-creates a patient record from the lead. The patient (User) row is matched at lead-creation time by phone or email, or attached manually when the operator edits the lead. When that linked patient pays a consultation invoice, the lead's stage auto-advances to booked_consultation_paid. Leads that never get a consultation session never auto-advance. The operator marks them won manually if a different revenue path applies.
Labels#
Add labels (high-intent, needs-followup, VIP) for filtering and reports. Distinct from stages. stages are linear, labels are free-form.
For marketing managers#
Reports → Lead funnel#
- Conversion rate per stage transition.
- Drop-off where.
- Average time from
new_leadtobooked_consultation_paid. - Per-source funnel. Meta leads vs Google vs walk-in.
Attribution#
Every lead carries source + campaign + utm tags. When the lead converts (first paid invoice), attribution flows into:
- Sales reports: revenue per source per campaign.
- Marketing ROI: campaign spend vs converted revenue.
Re-attribution window#
If a lead is re-engaged within the window (default 30 days) by a different campaign, attribution can update. Beyond the window, the original source sticks.
For admins#
Settings → Leads#
- Funnel stages. Add, rename, reorder. The won stage triggers conversion.
- Sources. Register your channels (default ones provided).
- Stage roster. Add or rename custom stages. Locked default stages (those that auto-advance) cannot be renamed.
- Lost reason library. Free-text reasons your team uses repeatedly. No enforcement; this is a soft taxonomy.
- Auto-assignment rules: assign new leads to the right rep based on source / region / language.
- Re-attribution window: per-source attribution window setting. Today the window is conceptual; the model does not enforce an
attribution_window_daysfield.
How leads connect to the rest of the system#
- Patients: the lead's linked customer (User) row is the patient. The system does not create a patient row at conversion; it stamps source attribution on the existing one.
- Booking: when a lead books a consultation, the system auto-bumps their stage to
booked_consultation_pending, thenbooked_consultation_arrivedon check-in. - Sales / Invoices: a paid consultation invoice advances the stage to
booked_consultation_paid, only when the customer has a consultation session. - Messaging: outbound WhatsApp / SMS / email is logged on the lead.
- Campaigns: lead segments feed campaign audiences.
- Automations: "if lead is in
new_leadfor 3 days, send follow-up message." - Reports: funnel, attribution, ROI.
Common situations#
- "Web form created a duplicate lead. patient already exists." Merge the duplicate on the lead drawer; the existing patient is the canonical record.
- "Lead came from Meta but conversion report shows Direct." The lead's source is correct; the conversion attribution may have been overwritten by a later campaign within the window. Check the attribution log on the lead drawer.
- "Lost lead came back." Reopen them. Set stage back to
new_lead(or whichever earlier stage fits) and re-engage. Attribution may update if a new campaign brought them.
Related#
- Campaigns , sending bulk messages to lead segments.
- Messaging , 1:1 conversations with leads.
- Automations , auto-followup rules.
- Patients , what happens after conversion.
- Marketing reports , funnel + ROI.
