Hello @robertwilliam , the thread has covered the race conditions and dedupe really well, so I’ll point at the part that usually bites after launch rather than before: how you know a notification actually arrived, and whether you’re allowed to send it at all.
Two gaps I haven’t seen raised yet.
First, “sent” is not “delivered.” An SMS or WhatsApp node returning a 200 only means the provider accepted the message, not that it reached the handset. For on-demand work that gap is the difference between a provider turning up and a no-show. Capture the carrier’s delivery-receipt webhook (Twilio, WhatsApp Business, etc.) and store it against the same booking_id + notification_type key everyone’s using for dedupe, then run a short reconciliation pass every few minutes that looks for bookings whose confirmation never got a “delivered” callback and escalates them, resend on another channel, or alert ops. Without that, failures are silent, and silent is the expensive kind.
Second, consent and timing. The moment you automate customer and provider alerts, you also own the “should we even send this” question: honour opt-outs, suppress non-urgent messages during quiet hours, and cap how many times a single booking can ping the same person. Keep a per-recipient channel preference plus a fallback ladder, WhatsApp, then SMS, then email, so a failed or declined channel steps down gracefully instead of your retry logic hammering the same dead channel.
Both of these live in the layer nobody tests until a booking quietly falls through in week three.
Quick disclosure: I’m affiliated with Pond AI, and we build, run and maintain custom AI agents and the automation around them. If it helps, we can map the whole thing for free , the booking state machine, the delivery-receipt reconciliation, and the consent-plus-fallback layer, as a plan that’s yours to keep whether you build it in-house, hand it to one of the folks already in this thread, or never reply to me. If you did build it with us, you’d have seven days to claim your money back, so the downside stays on our side.
One question that actually changes the design: are these alerts time-critical, where a provider has minutes to accept before you reassign, or more of a confirmation trail? That decides how aggressive the fallback ladder should be.