How to Implement Bulk WhatsApp Messaging in Frappe ERP?

Hello Everyone,

I am working on integrating WhatsApp Business API with my Frappe ERP application. I have successfully configured the WhatsApp API to send individual messages triggered by sales invoice generation. Now, I want to extend this functionality to send bulk WhatsApp messages to users.
Here is what I aim to achieve:

  1. Select multiple recipients (e.g., all customers with unpaid invoices or filtered based on specific criteria).
  2. Use a message template with dynamic placeholders (e.g., {{customer_name}}, {{invoice_number}}).
  3. Send bulk messages in a single operation.
  4. Track the status of each message (e.g., Sent, Failed).