Actions23
- ✉️ Message Actions
- 👥 Group Actions
Overview
The node integrates with the Wazzap API to send WhatsApp messages, specifically enabling sending documents along with a text message to a recipient's phone number. This is useful for automating communication workflows where you need to share files such as PDFs, images, or other documents directly via WhatsApp.
Common scenarios include:
- Sending invoices or receipts automatically after a purchase.
- Sharing reports or brochures with clients.
- Delivering tickets or passes digitally.
For example, you can configure the node to send a PDF document containing an event ticket to a customer's WhatsApp number immediately after they complete registration.
Properties
| Name | Meaning |
|---|---|
| 📱 Recipient Phone Number (jid) | The full phone number of the recipient including country code. Example: "15551234567" |
| ✉️ Text Message (message) | The text content that accompanies the document being sent. |
| 🔗 Document URL (url) | A direct URL link to the document file to be sent. Must be accessible by the API to fetch and deliver. |
| ⚙️ Additional Options (options) | Optional settings to customize sending behavior: |
| - 🔢 Priority Number (priority) | Select which sending number to use: 0 = Default, 999 = Random, 1–5 = Specific number slot |
| - ⏱️ Delay Settings (delaySettings) | Configure a random delay before sending the message, between a start and end time in milliseconds. |
Output
The node outputs a JSON array containing the response from the Wazzap API after attempting to send the document message. The structure typically includes status information about the message delivery, such as success confirmation or error details.
No binary data output is produced by this node; it focuses on JSON responses representing the operation result.
Dependencies
- Requires an active Wazzap API credential configured in n8n to authenticate requests.
- Internet access to reach the Wazzap API endpoint at
https://doc.wazzap.mx/api-reference. - The document URL must be publicly accessible or accessible by the Wazzap API service to retrieve the file.
Troubleshooting
- Unsupported operation error: If the node throws an error stating the operation is unsupported, verify that the resource is set to "✉️ Message" and the operation to "📄 Send Document".
- Invalid phone number format: Ensure the recipient phone number includes the country code without spaces or special characters.
- Document URL inaccessible: Confirm the provided URL is correct and publicly reachable; otherwise, the document cannot be fetched.
- API authentication errors: Check that the API key or credentials are correctly configured and have not expired.
- Delay settings misconfiguration: If delays cause unexpected behavior, verify that start and end delay values are valid numbers and that start ≤ end.
Links and References
- Wazzap API Documentation – Official API reference for detailed endpoint info.
- WhatsApp Business API Overview – General background on WhatsApp messaging APIs.