Hello,
In my workflow, a webhook containing the user's phone number triggers a WhatsApp template message being sent to the provided phone number. This works just fine.
However, I would like to validate whether the WhatsApp number even exists or not, since I am getting the same response from the WhatsApp Card regardless (which is the conversation ID). Is there a way to validate whether a provided number exists on WhatsApp or not, in order to handle cases differently, where no WhatsApp account has been found (e.g., by contacting the users via email instead).
I've noticed in the Botpress logs (not in the console), that the WhatsApp API returns the error '131026', if the number is not registered on WhatsApp. Can I somehow tap into this API response from my Botpress flow or do I need to use a separate external API for that?
I have already tried manually sending an HTTP request to send a template message instead of the "Start WhatsApp Conversation" card provided by the integration. However, the response from the HTTP request is 200 and without any information on whether the number exists or not. The error-response I see in the Botpress logs seem to be asynchronous and require a separate listener.
Thank you for your help!