Example journey for sending appointment reminders to users.
APPOINTMENT_BOOKED
event, keyed on the appointmentId
property.
APPOINTMENT_BOOKED
event, with the same appointmentId
key, but rendering the appointment time as the value.
appointmentTime
user property we just created. We’ll set an offset of 1 day prior to the appointment time.
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.