Wazzap API icon

Wazzap API

Interact with Wazzap API

Overview

The node "Wazzap API" allows users to interact with the Wazzap messaging API, specifically enabling sending images as messages. This is useful for automating image sharing via WhatsApp-like services where you want to programmatically send pictures along with optional captions and mentions.

A common scenario would be a business automatically sending product images or promotional content to customers. For example, after a customer places an order, the system can send an image of the product with a caption describing it. Another use case is sending event photos to group chats with mentions to specific participants.

Properties

Name Meaning
Nome Da Instancia The name of the instance that will send the message (required).
Número Do Destinatário The recipient's phone number in the format expected by the API (required).
Imagem The image to send, provided as a URL or base64 string (required).
Caption Optional text to accompany the image message.
Opções Additional options for the message:
- Delay Number of milliseconds to wait before sending the message (default 1200 ms).
- Responder Mensagem Option to reply to a specific message by providing its ID.
- Menções Settings for mentioning participants:
-- Mencionar Todos Boolean to mention all participants in a group chat.
-- Números Para Mencionar Comma-separated list of phone numbers to mention individually (only if not mentioning everyone).

Output

The node outputs a JSON array containing the response from the Wazzap API after attempting to send the image message. The exact structure depends on the API response but typically includes confirmation details such as message ID, status, timestamps, or error information.

There is no indication that the node outputs binary data; it primarily handles JSON responses.

Dependencies

  • Requires an active connection to the Wazzap API service.
  • Needs an API authentication token or key configured in n8n credentials (referred generically as "an API key credential").
  • Network access to the Wazzap API endpoint (https://doc.wazzap.mx/api-reference).

Troubleshooting

  • Common issues:

    • Invalid or missing instance name or recipient number will cause the operation to fail.
    • Incorrect image URL or malformed base64 string may result in message sending errors.
    • Mentioning invalid or improperly formatted phone numbers could cause failures or ignored mentions.
    • Delay values too low might cause rate limiting or unexpected behavior.
  • Error messages:

    • "Operação não suportada." indicates the requested operation is not implemented for the selected resource.
    • API errors related to authentication usually mean the API key credential is missing or invalid.
    • Message sending errors often include details about invalid parameters or network issues.
  • Resolutions:

    • Verify all required fields are correctly filled.
    • Ensure the API key credential is properly set up in n8n.
    • Validate image URLs or base64 strings before sending.
    • Use correct phone number formats and check mention settings.

Links and References

Discussion