- Wait until 1 day before the appointment time.
- Check if the user has cancelled their appointment.
- If the appointment has not been cancelled, send an appointment reminder.
- Wait for the user to confirm that they have attended the appointment.
- Send a thank you message to the user.
Creating the Journey
First, we’ll create a new event entry journey, listening for theAPPOINTMENT_BOOKED event, keyed on the appointmentId property.
APPOINTMENT_BOOKED event, with the same appointmentId key, but rendering the appointment time as the value.
Then we’ll create a delay node, using the user property variant, with the user property being the appointmentTime user property we just created. We’ll set an offset of 1 day prior to the appointment time.
Note, that because both the event entry node and the user property node have the same appointmentId key, we can be sure that the user property will wait on the same appointmentTime specified in the trigger event, as opposed to any other concurrent APPOINTMENT_BOOKED events.
Next, we’ll create a segment which looks for APPOINTMENT_CANCELLED events, keyed on the appointmentId property.
appointmentCancelled segment and our journey are both keyed on the appointmentId property, the segment will wait on a cancellation event that corresponds to the same appointment booking used to trigger the journey.
Then we’ll use this segment to create a segment split, to check if the appointment has been cancelled.
Next, we’ll create a user property for rendering the class name in the message.
Then, we’ll create a message node to send an appointment reminder, with the message template using the class name user property.
We’ll now need to create a segment to check if the user has confirmed that they have attended the appointment.

