Hi everyone,
I have a **lead qualification chatbot
that contacts new leads via WhatsApp. **Recently, I discovered that for around two months, WhatsApp messages were not being sent because of a payment issue in the WhatsApp Business account (an expired card), leading to many lost leads.
I understand that managing the WhatsApp Business account and payment details is my responsibility and a whole other issue, but I wish there was a way in Botpress to automatically detect if WhatsApp messages were failing.
I have already implemented an external API that validates WhatsApp numbers before sending messages, so I can confirm whether a phone number is connected to WhatsApp. However, I have not found a way to automatically verify whether the message was actually sent and delivered successfully.
I know that the logs show this information, but I am looking for a more automated solution, for example:
* A way for Botpress to trigger an event when a WhatsApp message fails to send
* A delivery status callback/webhook integration
* A built-in monitoring mechanism for WhatsApp channel issues (such as expired payment methods or disconnected accounts)
Is there currently a way to automatically check whether WhatsApp messages were sent and delivered, rather than manually reviewing logs?
Thanks!
PS:
Here's the error-message I was getting in the logs:
[whatsapp] WhatsApp message delivery failed. Message ID: ###, Recipient: ###, Errors: Business eligibility payment issue: Business eligibility payment issue - Message failed to send because your WhatsApp Business account has unsettled payments. Visit https://business.facebook.com/... to resolve this issue.