Wuzapi AI icon

Wuzapi AI

Send WhatsApp messages using Wuzapi - optimized for AI workflows

Overview

This node enables sending WhatsApp messages through the Wuzapi service, optimized for AI workflows. It supports multiple message types including text, images, documents, audio, video, locations, contacts, stickers, buttons, lists, and polls. The "Send Sticker" operation specifically allows sending stickers to a specified phone number using different input formats (binary data, base64 string, or URL).

Common scenarios include automating customer support chats, broadcasting multimedia content, sending interactive messages with buttons or lists, and integrating AI-generated responses with rich media on WhatsApp.

Example use case: Automatically send a custom sticker as part of a chatbot response to enhance user engagement.

Properties

Name Meaning
Phone Number Recipient's phone number in international format without the "+" sign (e.g., 5491155553934).
Sticker Source Method to provide the sticker:
• Binary Data (from previous node)
• Base64 encoded string
• URL to sticker file
Binary Property Name of the binary property containing the sticker data when using Binary Data source (default: "data").
Base64 Sticker Base64 encoded sticker in WebP format (required if Sticker Source is Base64).
Sticker URL URL pointing to the sticker file (required if Sticker Source is URL).
Additional Options Collection of optional settings:
• Message ID: Custom message identifier (auto-generated if omitted)
• Mentions: Specify users or all group members to mention in the message

Output

The node outputs JSON data representing the response from the Wuzapi API after sending the sticker message. This typically includes metadata about the sent message such as message ID and status.

If an error occurs, the output JSON will contain an error field with the error message.

No binary data is output by this node for the "Send Sticker" operation.

Dependencies

  • Requires an active connection to the Wuzapi API service.
  • Requires an API authentication credential configured in n8n to authorize requests.
  • The node uses internal helper functions to prepare media data and make authenticated HTTP POST requests to Wuzapi endpoints.

Troubleshooting

  • Binary Property Not Found: If using binary data as sticker source, ensure the specified binary property exists in the incoming item; otherwise, an error like Binary property "X" not found will be thrown.
  • Invalid Phone Number Format: The phone number must be in international format without the "+" prefix. Including "@" in the phone number is allowed only if it already contains the full JID.
  • Missing Required Fields: For base64 or URL sticker sources, the corresponding fields must be provided and valid.
  • Unknown Operation Error: If the operation parameter is set incorrectly, the node will throw an Unknown operation error.
  • API Request Failures: Network issues or invalid credentials can cause request failures. Check API key validity and network connectivity.

To resolve errors, verify input parameters, ensure correct binary property names, and confirm API credentials are properly configured.

Links and References

Discussion