Automations are "if X happens in the system, do Y" rules. Every time something happens. an invoice is paid, a session is completed, a lead is created. automations check whether you've configured a reaction, and if so, they run it. You pick which ones to enable, set their parameters, and the system handles the rest.

What automations look like#

Each automation has:

  • A code name (e.g. reactivation_welcome_back).
  • A trigger event (e.g. patient session completed).
  • A category (loyalty / marketing / clinical / operational).
  • An action (send a WhatsApp / award points / create a task / etc.).
  • Per-tenant configuration (template, points amount, threshold).

Examples. what you can do#

Customer reactivation#

When a patient hasn't visited in 60 days, send a re-engagement WhatsApp with a discount code.

Welcome bonus#

When a new patient's first invoice is paid, award 100 loyalty points + send a welcome message.

Birthday greeting#

On each patient's birthday, send a personalized message + a one-time gift voucher.

Follow-up after a service#

Three days after a laser session, send a check-in message asking how they're feeling.

Lead nurture#

If a lead is stuck at Interested for 3 days, send a follow-up message + create a task for the assigned rep.

Review request#

One day after a paid invoice, send a "rate your experience" message with a Google review link.

Low-stock alert#

When a product falls below its reorder point, create a purchase request draft + notify the inventory manager.

Tier-up celebration#

When a patient reaches a loyalty tier (Gold, Platinum), send a congratulations + perk announcement.

Pre-appointment reminder#

24 hours before a booking, send a reminder. 2 hours before, send another. Configurable cadence.

Service plan milestones#

When 50% of a treatment plan is completed, send a progress update with before-after photos.

For admins / owners. enabling automations#

Browse what's available#

Two pages live under Settings:

  • Automations → Built-in automations is the locked catalog. Platform-shipped reactions like "send the morning reminder", "award cashback on a paid invoice", "auto-assign a new lead". You enable, set tenant-specific knobs (template name, points amount, branch scope), and save. You cannot add new rows here.
  • Automations → Custom automations is your own automations, built end-to-end. Pick a trigger event, add optional conditions, list one or more actions, set a schedule and a rate limit. See Designing automations.

Enable and configure#

  1. Toggle the automation on.
  2. Set per-tenant parameters. the message template, the points amount, the threshold, the channel.
  3. Test with a sample (use the preview available for custom automations, or a controlled test for a built-in reaction).
  4. Save. The automation runs on the next matching event.

Monitor#

Each automation has an execution log: when it fired, for which patient, what it did, and any errors. Open Automations → Activity, or inspect the activity in the built-in automation detail.

Disable#

Toggle off any time. Past executions stay in the log; future events skip the handler.

Building your own#

You can build your own automations. Open Automations → Custom automations and click New automation. The designer walks you through trigger, conditions, actions, schedule, and rate limit, then Preview evaluates the saved rule against a sample payload without dispatching actions.

Heads up. The custom automation Preview renders the saved rule against a sample payload without dispatching actions. Check the resolved recipient, template variables, and each action result before enabling the rule. A live run performs real side effects.

What you cannot do today is ship a brand-new handler (for example "charge stored card" or "create appointment"). Those still need engineering. The actions you can compose are the released ones in the Handlers library reference. Anything outside that list goes to support as a feature request.

What's enabled the day a new clinic opens#

When the platform onboards a new tenant, the seeder enables a default set of locked automations with safe defaults: the morning and evening reminders, lead auto-assign, lead auto-label, and the receipt-on-payment notification. Everything else stays off until the manager turns it on.

To see the seeded set on your tenant, open Automations → Built-in automations and filter by "Enabled". The list right after onboarding is the seeder's output. From there you tune templates and branch scope.

Subscription quota and what blocks a run#

Plans below the unlimited tier include a monthly automation-run quota. Once you hit it, the engine logs new triggers as quota_blocked and does not run the actions. Locked automations and custom automations share the same counter.

  • You can see "automation didn't fire" entries with reason subscription_quota_exhausted in Automations → Activity.
  • An upgrade resets the counter at the next billing cycle, not instantly. If you need an immediate reset, ask support.
  • Transactional notifications that flow through the regular notification pipeline (not via an automation rule) are not counted.

How automations connect to the rest of the system#

  • Every module emits events: automations subscribe to those events.
  • Messaging: send-message automations use the messaging adapters.
  • Notifications: transactional notifications are largely automations under the hood.
  • Loyalty: award-points / award-cashback automations call the wallet service.
  • Marketing: campaign-trigger automations can launch a one-time campaign.
  • Tasks: task-creation automations assign work to staff.
  • Inventory: low-stock automations create PR drafts + notify managers.

Common situations#

  • "Automation didn't fire." Check the execution log. Most common reasons: the trigger event didn't happen yet (e.g. patient hasn't actually been inactive 60 days), the audience filter excluded the patient (no consent), or quiet hours suppressed it.
  • "Automation fired twice for the same event." Shouldn't happen. handlers are idempotent. If you see duplicates, screenshot the log and send to support.
  • "Want to change the message wording." Open the automation's configuration; edit the template parameter. Takes effect on the next fire.
  • "Want to add a new condition (only fire for VIP patients)." If the automation supports an audience filter, set it in the configuration. Otherwise it's a feature request.
  • "Want to pause an automation temporarily." Toggle off; toggle back on later.
  • "Want to test before going live." Use the test action in the configuration. Or enable in a low-traffic window first.