A campaign sends the same message to many people at once. a promotion, a new service announcement, a holiday greeting. Choose your audience (a lead segment, a patient tag, a custom filter), pick a template, schedule, send. The system respects every opt-out and tracks delivery, replies, and conversions.

For marketing managers#

Create a campaign#

  1. Open Marketing → Campaigns → + New campaign.
  2. Name and goal.
  3. Audience: pick a saved segment OR build a filter inline (e.g. patients with tag "VIP" who haven't visited in 60 days).
  4. Channel: choose one of the supported campaign channels shown in the designer. A channel choice is not an automatic cross-channel fallback chain.
  5. Template: Meta-approved template for WhatsApp; HTML or text for email.
  6. Schedule: send now or schedule later. Respect tenant quiet hours.
  7. Save as draft. Send a test to your own number first.
  8. Click Schedule. The campaign moves to Scheduled. At the scheduled time, it goes Running.

Audience hygiene#

The system automatically excludes:

  • Patients without an active marketing consent (per channel).
  • Patients with the do_not_message or do_not_call tag.
  • Patients who unsubscribed via the one-click link on a previous campaign.
  • Numbers / emails marked invalid.

The audience preview shows you the final count after exclusions before you confirm.

Track results#

Open a running or completed campaign:

  • Delivery rate (sent / delivered / failed).
  • Open rate (email + WhatsApp).
  • Reply rate (inbound messages during the campaign window).
  • Click-through rate (links in the template).
  • Conversion rate: bookings and paid invoices in the campaign window, attributed by matching customer phone or email to recipients. End-to-end campaign-to-invoice attribution is not auto-stamped; the report joins on customer identity within the window.

Re-run vs reschedule#

  • Re-run: same audience, same template, new send. Useful if delivery failed for a chunk.
  • Reschedule: same campaign moved to a later time before it goes Running.
  • Once Running, you can pause (which suppresses remaining sends) but cannot rewind the ones that went out.

For admins#

Settings → Campaigns#

  • Rate limit: max sends per minute (protects vendor limits + your AWS bill).
  • Quiet hours: campaigns paused outside business hours.
  • Per-channel quotas: limit total monthly sends per channel.
  • Approval workflow: large campaigns (above N recipients) require manager sign-off.
  • Branding: clinic logo + colors on email templates.

Segments library#

Marketing → Segments. Saved audience filters reusable across campaigns. Examples:

  • VIP patients.
  • Patients who haven't visited in 90 days (reactivation candidates).
  • Patients in a specific city.
  • Patients of a specific provider.
  • Leads stuck at Interested for >7 days.

How campaigns connect to the rest of the system#

  • Patients + Leads: recipients come from these.
  • Messaging: campaign sends use the same channel adapters; replies land in the messaging inbox.
  • Notifications: campaigns are marketing; reminders are transactional (different module).
  • Automations: automation handlers can trigger one-off campaigns (e.g. "every Monday send the weekly offer to VIPs").
  • Marketing reports: campaign ROI ties to conversions attributed within the window.
  • Loyalty: tier-based segments (Gold / Platinum) drive targeted campaigns.

Common situations#

  • "Audience count dropped from 1000 to 600 after exclusions." Normal. Opt-out + invalid + missing-consent filters always apply.
  • "Campaign failed for 30% of recipients." Check the campaign drawer. failures show per-recipient with reason (invalid number, no template approval, Meta rejection). Fix and re-run for the failed subset.
  • "Patient says they got the message but didn't unsubscribe and never gave consent." Check the consent log on the patient drawer. If consent really wasn't there, the campaign should have excluded them. Investigate via the campaign's send log.
  • "Want to A/B test two templates." No native A/B split today. Create two campaigns, split the audience yourself by saving two segments, send each campaign to one segment, compare per-campaign delivery and reply rates. Promote the winner manually.
  • "WhatsApp template not approved yet. campaign stuck." Meta approval can take hours to days. The campaign waits for the template to flip to approved; until then no sends go.