Automation recipes
These recipes use the steps that exist today: trigger, delay, send_email, wait_for_event, condition, contact_update, add_to_segment, contact_delete, plus goals and exits. They are starting points, not a substitute for your own consent and clinical review.
Before you build
- Every automation needs one trigger.
- Every step must be reachable from the trigger.
- The graph has no loops.
- Marketing steps use a template with the right message kind.
- A contact without the required consent makes the email step fail, and the run shows why.
- A goal ends the run. An exit is terminal and has no outgoing edge.
1. Appointment reminder
Goal: the patient confirms or attends. Exit: the patient unsubscribes or the appointment is cancelled.
- Trigger:
appointment.booked. - Delay:
2 days. - Send: appointment reminder template, kind
termin. - Wait for event:
appointment.confirmed, timeout3 days. - If confirmed, goal reached. If timeout, send one final reminder.
- Exit:
appointment.cancelledorcontact.unsubscribed.
Keep the reminder on the outgoing route. Do not add marketing content to it.
2. Recall
Goal: the patient books the recall. Exit: the patient asks not to be contacted.
- Trigger:
recall.due. - Delay:
1 day. - Send: recall invitation, kind
recall. - Wait for event:
appointment.booked, timeout14 days. - If no booking, send one follow-up after
7 days. - Exit:
contact.unsubscribedorrecall.declined.
Use a reentry policy of once for the same recall period. A second recall cycle should be a new event, not a silent restart.
3. Welcome and double opt-in
Goal: the contact confirms. Exit: the contact does not confirm within the window.
- Trigger:
contact.created. - Send: double opt-in email, kind
doi. - Wait for event:
contact.confirmed, timeout7 days. - If confirmed, add to the newsletter segment and send a welcome.
- If timeout, exit without adding to the marketing audience.
Do not send marketing before confirmation. The confirmation is the consent event, not a formality.
4. Onboarding a new practice
Goal: the first domain is verified and the first test message is sent.
- Trigger:
workspace.created. - Delay:
1 hour. - Send: getting started email.
- Wait for event:
domain.verified, timeout3 days. - If not verified, send a DNS help email.
- Goal:
message.sentwith a test kind. - Exit:
workspace.closed.
This is a good place for a condition on contact.role so the clinical lead and the IT contact get different help.
5. Win-back
Goal: the customer sends again or books a call. Exit: the customer unsubscribes or is marked as churned.
- Trigger:
customer.inactivewithdays: 60. - Condition:
contact.consent.newsletter == true. - Send: a short “what changed” email.
- Delay:
7 days. - Send: one case study or a direct booking link.
- Wait for event:
message.sentormeeting.booked, timeout14 days. - Exit:
contact.unsubscribedorcustomer.churned.
Set reentry to after_days: 90. A win-back that restarts every week is a complaint generator.
6. Re-engagement after a quiet period
Goal: the contact opens or clicks once. Exit: the contact stays quiet after the final step.
- Trigger:
contact.inactivewithdays: 120. - Condition:
contact.consent.newsletter == true. - Send: “Do you still want to hear from us?”
- Wait for event:
email.openedoremail.clicked, timeout10 days. - If no response, send one final confirmation request.
- Exit: no response, or
contact.unsubscribed.
Do not treat an open as consent. It is an engagement signal. Consent remains a separate record.
Testing a recipe
- Use a test contact and a test domain.
- Trigger the event manually.
- Inspect the run at each step.
- Confirm the goal ends the run and the exit is terminal.
- Confirm a second event respects the reentry policy.
- Confirm a contact without consent fails at the email step with a visible reason.