Book an appointment

A client books a treatment at a clinic or salon: they pick a service and a free time, enter their details and pay a 20% deposit by card, and go back a step if the slot was taken in the meantime or the card is declined. At 10:00 the day before, a reminder SMS links to Manage booking, where the client can reschedule or cancel. Canceling before the appointment day refunds the deposit; canceling on the day keeps it.

17 screens and steps20 arrows0 warnings

What UJN shows here Point at a note to see its part of the drawing

Book an appointment  BOOKBook a time and pay a deposit. A reminder the day before lets the client reschedule or cancelStart From the booking pageStartFrom the booking pagePick a service and time (View) Free slots, next 4 weeks Route: /bookViewPick a service and timeFree slots, next 4 weeks/bookHold the slot (Action) For 10 minutesActionHold the slotFor 10 minutesYour details (View) Name, phone, email and card Route: /book/detailsViewYour detailsName, phone, email and card/book/detailsCharge deposit (Action) 20% of the priceActionCharge deposit20% of the pricePayment provider (System, external) Host: api.pay.exampleSystem, externalPayment providerapi.pay.exampleSend confirmation (Message) Channel: email and SMSMessageSend confirmationemail and SMSBooking confirmed (View) Route: /appointments/:idViewBooking confirmed/appointments/:idEnd, success Appointment bookedEnd, successAppointment bookedUntil the day before (Wait) 10:00, the day before the appointmentWaitUntil the day before10:00, the day before the appointmentReminder SMS (Message) Channel: SMSMessageReminder SMSSMSReminder link (Handoff, returns) Channel: SMS Resume: /appointments/:id/manageHandoff, returnsReminder linkSMSManage booking (View) Reschedule or cancel Route: /appointments/:id/manageViewManage bookingReschedule or cancel/appointments/:id/manageReschedule (Journey) The deposit moves along Journey: RESCHEDULEJourneyRescheduleThe deposit moves alongRESCHEDULECancel appointment? (Modal) Says if the deposit is refunded or keptModalCancel appointment?Says if the deposit is refunded or keptEnd, success Canceled, deposit refundedEnd, successCanceled, deposit refundedEnd, failure Canceled on the day, deposit keptEnd, failureCanceled on the day, deposit keptNo label Navigation from from_site to Pick a service and timePick time Navigation from Pick a service and time to Hold the slot Payload: {service, slot}Pick time{service, slot}still free Navigation from Hold the slot to Your detailsstill freeBook and pay Navigation from Your details to Charge deposit Payload: {name, phone, email, card_token}Book and pay{name, phone, email, card_token}paid Navigation from Charge deposit to Send confirmationpaidNo label Navigation from Send confirmation to Booking confirmedNo label Navigation from Send confirmation to Until the day beforeDone Navigation from Booking confirmed to doneDoneNo label Navigation from Until the day before to Reminder SMSNo label Navigation from Reminder SMS to Reminder linkOpen link Return, resume from Reminder link to Manage bookingOpen linkCancel Navigation from Manage booking to Cancel appointment?CancelNo label Navigation, call from Charge deposit to Payment provider Payload: {card_token, deposit}{card_token, deposit}Reschedule Navigation from Manage booking to RescheduleRescheduleCancel appointment · before the day Navigation from Cancel appointment? to refundedCancel appointment · before the dayCancel appointment · on the day Negative from Cancel appointment? to keptCancel appointment · on the daytaken meanwhile Failed return from Hold the slot to Pick a service and timetaken meanwhileNo label Return, reply from Payment provider to Charge deposit Payload: {payment_id}{payment_id}declined Failed return from Charge deposit to Your detailsdeclinedKeep it Return from Cancel appointment? to Manage bookingKeep it
The source (45 lines)
book-appointment.puml
@startujnrender { direction: down; arrow_spacing: 24 }journey BOOK "Book an appointment"description: "Book a time and pay a deposit. A reminder the day before lets the client reschedule or cancel"unique_id_friendly: booking start from_site { description: "From the booking page" }view slots { title: "Pick a service and time"; description: "Free slots, next 4 weeks"; route: /book }action hold_slot { title: "Hold the slot"; description: "For 10 minutes" }view details { title: "Your details"; description: "Name, phone, email and card"; route: /book/details }action pay_deposit { title: "Charge deposit"; description: "20% of the price" }system psp { type: external; title: "Payment provider"; host: api.pay.example }action confirm { type: message; title: "Send confirmation"; channel: email and SMS }view booked { title: "Booking confirmed"; route: /appointments/:id }end done { type: success; description: "Appointment booked" }action day_before { type: wait; title: "Until the day before"; description: "10:00, the day before the appointment" }action remind { type: message; title: "Reminder SMS"; channel: SMS }handoff reminder_link { title: "Reminder link"; channel: SMS; resume: /appointments/:id/manage }view manage { title: "Manage booking"; description: "Reschedule or cancel"; route: /appointments/:id/manage }ref reschedule { journey: RESCHEDULE; title: "Reschedule"; description: "The deposit moves along" }view cancel_confirm { type: modal; title: "Cancel appointment?"; description: "Says if the deposit is refunded or kept" }end refunded { type: success; description: "Canceled, deposit refunded" }end kept { type: failure; description: "Canceled on the day, deposit kept" } from_site --> slotsslots --> hold_slot : [Pick time] { payload: [service, slot] }hold_slot --> details : still freehold_slot .x.> slots : taken meanwhiledetails --> pay_deposit : [Book and pay] { payload: [name, phone, email, card_token] }pay_deposit -right-> psp { payload: [card_token, deposit] }psp ..> pay_deposit { payload: [payment_id] }pay_deposit --> confirm : paidpay_deposit .x.> details : declinedconfirm --> bookedconfirm --> day_beforebooked --> done : [Done]day_before --> remindremind --> reminder_linkreminder_link ..> manage : [Open link]manage -left-> reschedule : [Reschedule]manage --> cancel_confirm : [Cancel]cancel_confirm ..> manage : [Keep it]cancel_confirm -left-> refunded : [Cancel appointment] before the daycancel_confirm -right-x-> kept : [Cancel appointment] on the day@endujn