Someone clicks an Instagram ad, fills the lead form, books a discovery call, comes in, becomes a patient. Doc names every step so marketing can prove ROI.

Coming soon. The behaviour described below is on the roadmap. Today: auto-assignment by source / region / language is not wired (no assignment-rule model). End-to-end campaign-to-revenue attribution is not wired either — CampaignButtonClick records clicks but no listener stamps the campaign id onto the resulting Session or Invoice. The Google Ads conversion ingest writes to a Google Sheet, not the Google Ads Conversion API.

The funnel. what happens automatically (and what is manual today)#

  1. Day 0: Person sees the Instagram ad, fills the lead form (Meta lead ads).
  2. Lead lands in Marketing → Leads with source = Meta, campaign = "Spring promo", utm tags captured.
  3. Day 0 cont'd: a sales rep picks up the new lead manually. Auto-assignment by source / region / language is on the roadmap and not active today — until it ships, triage the inbound queue every morning and assign in bulk.
  4. Welcome automation fires if the tenant has the welcome rule enabled on Day 10 of onboarding. Default is off; if you want a Day-0 welcome message, enable the rule explicitly in Settings → Automations.
  5. Day 1: Sales rep calls. Logs the outcome on the lead drawer. Lead → Interested.
  6. Day 3: Discovery call booked. Lead → Booked (auto).
  7. Day 5: Patient arrives. Reception checks them in. Provider delivers the consultation. Reception sells a starter service.
  8. Patient pays. Invoice → Paid.
  9. Lead auto-converts → Won when the linked patient's invoice flips to Paid. Note: the auto-advance listener silently no-ops if the lead's customer FK is empty — a common state for leads that never explicitly link to a patient. If the lead stays at Booked indefinitely, manually link the patient on the lead drawer to trigger conversion.

What marketing sees today#

  • Lead funnel report: Meta source produced N leads → X booked → Y converted at Z% conversion rate, in N days average. This works end-to-end.
  • Campaign ROI: end-to-end attribution from campaign to invoice is on the roadmap. CampaignButtonClick records the click, but no listener stamps the campaign id onto the resulting Session or Invoice — so "Spring promo" spend vs attributed revenue is not yet a clickable report. Until it ships, attribution is reconstructed manually from the lead's source and campaign fields against invoice totals over the campaign window.
  • Comparison across sources (Meta vs Google vs walk-in vs referral). Note: Google source uses the Sheet-export path today; the Google Ads Conversion API integration is on the roadmap.

Modules touched#

  • Marketing / Leads (intake + funnel)
  • Automations (welcome message)
  • Messaging / WhatsApp
  • Booking
  • Patients (conversion)
  • Sales / Invoices + Payments
  • Reports (funnel + attribution + ROI)