Wuzapi AI icon

Wuzapi AI

Send WhatsApp messages using Wuzapi - optimized for AI workflows

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, locations, contacts, stickers, buttons, lists, and polls to specified phone numbers.

A common use case is automating customer communication or notifications via WhatsApp, such as sending contact cards, promotional images, or interactive polls. For example, a business could automatically send a contact card with their support number or share a location pin for an event.

Specifically, the Send Contact operation allows sending a contact message containing a contact's name and VCard data to a recipient's phone number.

Properties

Name Meaning
Phone Number Recipient's phone number in international format without the "+" sign (e.g., 5491155553934).
Contact Name The display name of the contact being sent.
VCard The VCard data string representing the contact details, e.g.:
\nBEGIN:VCARD\nVERSION:3.0\nFN:John Doe\nTEL:+1234567890\nEND:VCARD\n
Additional Options Optional settings:
- Message ID: Custom message identifier (auto-generated if omitted).
- Mentions: Specify users to mention or mention all group members (only applicable in groups).

Output

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

No binary output is produced by the Send Contact operation.

Example output structure (simplified):

{
  "id": "message-id",
  "status": "sent",
  "to": "5491155553934@s.whatsapp.net",
  "type": "contact",
  "contact": {
    "name": "John Doe",
    "vcard": "BEGIN:VCARD\nVERSION:3.0\nFN:John Doe\nTEL:+1234567890\nEND:VCARD"
  }
}

Dependencies

  • Requires an active connection to the Wuzapi WhatsApp API service.
  • Requires configuration of an API key credential for authenticating requests to Wuzapi.
  • The node uses internal helper functions to prepare media data and make HTTP POST requests to Wuzapi endpoints.

Troubleshooting

  • Binary Property Not Found: If using binary data sources for other operations, errors may occur if the specified binary property does not exist. For Send Contact, this is not applicable.
  • Invalid Phone Number Format: Ensure the phone number is in international format without the "+" prefix.
  • Malformed VCard Data: The VCard string must be correctly formatted according to vCard standards; otherwise, the message may fail.
  • API Errors: Network issues or invalid credentials will cause request failures. Verify API key validity and network connectivity.
  • Unknown Operation Error: Selecting an unsupported operation will throw an error.

To resolve errors, verify input parameters, ensure proper formatting, and check API credentials.

Links and References

Discussion