Skip to main content
onWhatsAppMessageFailed starts an automation when WhatsApp reports a failed message delivery.
automations/handle-whatsapp-failures.automation.ts
Optional static account defaults to the project’s WhatsApp binding. The signal has status: "failed" and includes the message and recipient IDs, timestamp, callback data, conversation, pricing, structured Meta errors, and providerEvent described by the broad status trigger. Inspect errors for the provider code, message, details, subcode, and trace ID before deciding whether to retry or correct the recipient or template.