Menu

6 Bugs in WhatsApp Appointment Reminder Systems (and How to Fix Them)
📰

6 Bugs in WhatsApp Appointment Reminder Systems (and How to Fix Them)

DEV Community: api·Wabbiyo·18 days ago
#23O5Z9CU
#devtoapi#devto#dev#appointment#reminders
Reading 0:00
15s threshold

Appointment reminders look like a cron job and a message. In production, these six bugs show up first.

Reminder after a cancellation

The patient cancelled, but the T-24h job still fires. Fix: unschedule pending jobs on every cancel or reschedule.

Wrong time zone

The appointment was stored in local time and the server runs UTC, so the reminder arrives at the wrong hour. Store timestamps with the time zone and convert once.

Duplicate reminders

The booking was edited twice and three jobs exist. Fix: one job per appointment per stage, keyed on appointment_id + stage.

Sent at 2 AM

A booking made late at night for an early slot triggers a T-2h reminder in the middle of the night. Add quiet hours and skip or shift those reminders.

Reply not linked to the booking

The patient taps “Reschedule”, but the webhook can’t tell which appointment it’s for. Put the appointment ID in the button payload.

Diagnosis in the message

“Reminder: your knee MRI follow-up…” is health information on a lock screen.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.