The Leads module is a Portal with two views of the same data: kanban (drag a card across stages) and table (filter, sort, bulk-act). Both feed the same funnel. The right view depends on what you are doing: drag for daily stage progression, table for bulk actions and reporting. This guide walks the workflow practically.

Where it lives#

  • Marketing → Leads: main entry. Defaults to the kanban view; switch to table via the top-right toggle.
  • Marketing → Leads → + New Lead: manual creation. Most leads come in automatically (web form, Meta ad, WhatsApp first message).

Stages (the funnel)#

Stage codes are fixed because booking and payment events drive auto-advance against them. Display labels are tenant-configurable.

  1. new_lead newly captured.
  2. engaged a qualifying two-way conversation after the clinic's outbound message.
  3. booked_consultation_pending a consultation session exists (auto from booking).
  4. booked_consultation_arrived patient checked in (auto from session arrived).
  5. booked_consultation_paid consultation invoice paid. The "won" state (auto from payment, only when a consultation session exists).
  6. booked_consultation_no_show auto from booking no-show, also settable manually.
  7. booked_consultation_unpaid / not_qualified / no_answer / lost / failed manual end states.

Add custom stages where your sales process needs them (e.g. "Quoted", "Negotiating") via Settings → Workspace → Lead Stages. Custom stages stay manual: only the codes above are reachable from booking and payment events.

Working the kanban#

Morning routine#

  1. Marketing → Leads. Kanban view shows columns per stage.
  2. Filter by your assignment (My Leads) or by source (Meta, Google, Walk-in, Referral).
  3. Scan the new_lead column. Anything older than the warning threshold (24h today) is a missed-first-response.
  4. Open the lead card: see source, captured fields, any logged interactions.
  5. Call or message. Log the outcome (a note + the date of next follow-up).
  6. Drag the card to the next stage if appropriate.

During the day#

  • New leads land in new_lead as they arrive. When configured and enabled, the lead-assignment automation selects from eligible users or teams using workload and optional presence rules. Staff can also assign or reassign through the lead form or bulk actions.
  • booked_consultation_pending auto-updates when a consultation session is created for the linked customer.
  • booked_consultation_arrived auto-updates on session check-in.
  • booked_consultation_paid auto-updates on consultation invoice payment, only when the linked customer already has a consultation session. No patient record is created at conversion; the linked customer is the patient.

Drag rules#

  • Forward drags between any stages are allowed for staff with the lead-edit permission.
  • Automation-driven advancement is forward-only: booking and payment events never lower the rank of an existing stage. A paid lead is not pulled back by a later session-arrived event.
  • Lost drag requires a reason. The reason is free text today, not a controlled dropdown, so coach your team on a consistent vocabulary.
  • There is no separate owner-only "manual conversion" gate today. Any staff member with edit permission can move a card to the paid stage. Audit lives in the lead's history (simple_history) and in the LeadStageChanged.v2 event log.

Working the table#

When to use the table view#

  • Filter to a specific cohort (e.g. all Meta leads from the spring campaign).
  • Bulk-act: reassign to a different rep, bulk-message via campaign, mark Lost with a common reason.
  • Export to CSV for external analysis.
  • See attribution side-by-side: source, campaign, utm, ad_id.

Bulk actions#

  1. Switch to table view.
  2. Filter to the cohort.
  3. Select rows via the checkbox column.
  4. Bulk action menu: Reassign, Add labels, Move stage, Delete. "Send campaign" and "Export to CSV" are not wired in the bulk bar today. Start a campaign from the messaging surface and pick the saved-view audience there.

Each bulk action writes through bulk_apply_to_leads and emits per-row events: LeadAssigned.v2 on reassignment, LeadStageChanged.v2 on stage move. The audit trail covers single-row drags and bulk moves the same way.

Call-back queue (next-action-due)#

Every lead carries an optional next_action_at timestamp. When you log a call and pick "will call back at …", set the field; the lead drops into your call-back queue. Filter the table by Assigned to me + Next action due in next 2 hours to see what's coming up. The kanban does not surface this filter today; use the table.

Activity timeline on the lead drawer#

The Activity tab on the lead drawer merges four sources newest-first:

  • Stage moves every LeadStageChanged.v2 event with previous → current.
  • Call logs every LeadCallLogged.v2 event with outcome, direction, duration.
  • Staff comments every comment posted against the lead.
  • Ingestion events the original payload that created the lead, plus duplicate-attempt counters when the same phone hits the ingestion service again.

The timeline is the canonical hand-off when a different rep picks up the lead. No separate "case notes" surface needed.

Labels vs stages#

  • Stages are linear and capture the funnel position. One stage at a time per lead.
  • Labels are non-linear and capture meta-info: VIP, needs translator, high-intent, mobile-only, repeat enquiry. Many labels per lead.
  • Use labels for filtering and reporting, not for funnel progression.

Attribution that matters#

What is captured#

  • Source: Meta, Google, TikTok, Direct, Referral, Walk-in.
  • Campaign: per Meta or Google campaign id.
  • UTM tags: utm_source, utm_medium, utm_campaign, utm_content, utm_term.
  • Ad ID: per Meta ad if from a lead ad.
  • Referrer: the existing patient who referred this lead.

What it drives#

  • Reports → Marketing → Funnel: per-source conversion rate, stage drop-off, average time to convert.
  • Reports → Marketing → Campaign ROI: campaign spend vs converted revenue.
  • Reports → Marketing → Channel performance: Meta vs Google vs Walk-in revenue.

Re-attribution window#

If a lead re-engages within N days (tenant policy, default 30) via a different campaign, the attribution updates. Outside the window, original source sticks. This prevents one campaign from stealing credit for revenue another campaign actually drove.

Conversion handoff (lead → patient)#

How it happens automatically#

  1. Rep books the lead for a consultation. The booking is created against the lead's linked customer (User row), which was matched by phone or email at lead creation.
  2. Stage auto-advances to booked_consultation_pending.
  3. Patient arrives, gets the consultation, pays.
  4. Stage auto-advances to booked_consultation_arrived, then booked_consultation_paid when the invoice is paid.
  5. The linked customer carries the lead's source / campaign / utm attribution. The system does not create a new patient row at conversion.

If auto-advance does not fire#

  • The booked-paid auto-advance only runs when the linked customer has a consultation session. If a lead converts on a non-consultation revenue path (product sale, package), the stage stays where it was.
  • Move the lead to the right stage manually from the kanban or table.
  • If the linked customer is wrong (mismatched phone), edit the lead and pick the correct patient in the customer field. The stage does not flip automatically; move it after the patient swap.

Duplicate leads#

  • Web form submitting twice in one day: system de-dupes on phone or email match.
  • Same person filling forms across different campaigns: each becomes a separate lead row, but they auto-link to the same patient on conversion. Attribution is captured per-touch.
  • If you see "Duplicate?" badge: open both, decide canonical, merge (manager permission).

Lost and recycle#

  • Mark lost early when you are confident it is not happening this cycle. Cluttered new_lead columns hurt the team's focus.
  • lost is not forever. A manual re-engagement campaign can target lost leads after 90 / 180 days with a fresh offer. Automated win-back sequences are roadmap.
  • When a lost lead re-engages, reopen the same lead (do not create a new one); attribution and history are preserved.

Workflow rules#

  • Lead assignment is manual today. A rep or manager sets assigned_to via the lead form or the bulk-action menu.
  • SLA: a single tenant-wide threshold (warning at 24h, overdue at 72h). Per-source / per-priority tightening is roadmap. See the SLA article for what counts as a touch.
  • Outbound message to a lead respects WhatsApp 24-hour window if WhatsApp is the channel; use approved templates outside the window.
  • Marketing-consent capture: typically as part of the first message reply, since lead form submission may not constitute marketing consent by itself in some jurisdictions.
Coming soon. The behaviour described below is on the roadmap. Today: auto-assignment by source / region / language is not wired; per-source SLA tightening is not configurable.
  • Auto-assignment routes new leads to a rep based on source, region, language. Override per lead allowed.
  • Per-source SLA tightening: e.g. 1 hour for paid-ad leads, 4 hours for referral.

Common mistakes#

  • Leaving new_lead rows untouched for days: they decay. First-response within 1 to 4 hours wins most.
  • Not logging interactions: the next rep has no context, the relationship resets.
  • Marking lost without a reason: the lost-reason histogram is blind. Always type a reason, and reuse existing strings so the histogram groups cleanly.
  • Manual conversion without source linkage: attribution breaks, marketing ROI lies.
  • Linking the wrong customer to a lead: makes the patient drawer show the wrong attribution. Verify before saving.
  • Over-customising stages: 7+ stages means staff guesses. Keep it lean.

How leads connect to the rest of the system#

  • Patients: the linked customer (User row) is the patient. Attribution lives on the lead and on the linked customer.
  • Booking: consultation booking flips stage to booked_consultation_pending; session arrived flips to booked_consultation_arrived.
  • Sales: paid consultation invoice flips stage to booked_consultation_paid.
  • Messaging: 1:1 conversation with leads logged on the lead card.
  • Campaigns: bulk-message segments of leads.
  • Automations: auto-followup, SLA alerts, reactivation.
  • Tasks: auto-create a follow-up task when a lead is stuck.
  • Reports: funnel, attribution, ROI, channel performance.