CPR.co
For Admins

Notify rules — event-triggered notifications

Build rules that notify staff when specific events happen (low enrollment, stuck booking, instructor reminders).

Notify rules send a notification (in-app + email + SMS + push, depending on recipient preferences) when a specific event fires. Unlike full automations, notify rules only send messages — they do not update data. Go to Admin → Automations → Notify Rules (https://cpr.co/admin/automations/notify-rules).

The three built-in event triggers

TriggerFires whenTypical use
class_low_enrollmentA class is within 48 hours of start and below minimum enrollmentAlert scheduling staff to promote or cancel
class_starting_soonA class starts within 24 hoursRemind the assigned instructor
stuck_bookingA booking is pending/unpaid for longer than a thresholdPrompt ops to follow up

Building a rule

How to add a notify rule
  1. 1Click + New rule.
  2. 2Pick a trigger from the dropdown.
  3. 3Optionally add conditions (e.g., "only for classes at location X" or "only for deals over $500").
  4. 4Set the recipients — staff roles (all supervisors), a specific user (user:{id}), or a field from the event payload (context:instructor_id).
  5. 5Fill in the title, body, and optional link. Use {{mustache}} tokens to pull values out of the event — {{class_name}}, {{student_count}}, {{booking_id}}, etc.
  6. 6Pick a category (booking, marketing, system) and priority (low/normal/high).
  7. 7Click Test-fire to preview the notification against a recent real event.
  8. 8Toggle Active on and Save.

Cron schedule

When each event fires

  • class_low_enrollment — daily at 7am UTC
  • class_starting_soon — hourly
  • stuck_booking — every 2 hours

Idempotency

Each event carries a stable event key (e.g., "class_starting_soon:{class_id}"). We log fired events to automation_fired_log and will not re-send the same (rule, event_key) twice. This prevents duplicate reminders.

💡
Tip: Start inactive. Build the rule, test-fire a few events, then toggle Active on once the preview looks right.
ℹ️
Note: Recipient preferences still apply. If a supervisor has turned off SMS for booking notifications, they will get the in-app notification + email but not SMS. See "Managing your email subscriptions" for the recipient side.

Was this article helpful?

Still need help?

We're here for you — call or email us any time during business hours.

Mon–Fri 8am–5pm Central Time

💬Chat with us