whatsapp.onMessageFailed handles WhatsApp’s failed status.
automations/handle-whatsapp-failures.automation.ts
account defaults to the project’s WhatsApp binding. Trigger data has status: "failed" and includes message and recipient IDs, timestamp, callback data, conversation, pricing, structured Meta errors, and the 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.