Overview
This node enables sending various types of WhatsApp messages through the Wuzapi service, optimized for AI workflows. It supports sending text, images, documents, audio, video, location, and contact messages to specified phone numbers in international format.
Common scenarios include:
- Automating customer support by sending text or media responses.
- Sharing documents or images automatically based on triggers.
- Sending location or contact information as part of a workflow.
- Integrating AI-generated content with WhatsApp messaging.
For example, you could use this node to send a PDF document to a client after an AI analysis completes, or send a location pin when a delivery status changes.
Properties
| Name | Meaning |
|---|---|
| Phone Number | Phone number in international format (without +), e.g., 5491155553934 |
| Media URL | URL of the media file to send (required for sending image, document, audio, or video) |
| Caption | Caption text for the media file (applicable for image, document, and video operations) |
Output
The node outputs JSON data representing the response from the Wuzapi API for each message sent. The structure includes details about the sent message or error information if the operation failed.
If the node encounters an error and "Continue On Fail" is enabled, it outputs an object with an error field containing the error message.
No binary data output is produced by this node.
Dependencies
- Requires an API key credential for authenticating with the Wuzapi WhatsApp messaging service.
- The node uses the Wuzapi API endpoints to send messages.
- Proper network access to the media URLs provided is necessary for media messages.
Troubleshooting
- Invalid phone number format: Ensure the phone number is in international format without the "+" sign.
- Missing required fields: For media messages, the Media URL must be provided; for text messages, the Message field is required.
- Unknown operation error: Occurs if an unsupported operation value is set; verify the operation property matches one of the supported options.
- API request failures: Could be due to invalid credentials, network issues, or incorrect media URLs. Check the API key and URL accessibility.
- If errors occur and "Continue On Fail" is disabled, the node will stop execution and throw the error.
Links and References
- Wuzapi Official Website (for API documentation and account setup)
- WhatsApp Business API documentation (general reference for message types and formats)