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 messages with interactive buttons. The "Enviar Botões" (Send Buttons) operation under the "Mensagem" (Message) resource lets you send a message containing up to three customizable buttons to a specified recipient via a named instance.

This node is useful in scenarios where you want to engage users interactively through WhatsApp-like messaging by providing quick reply options, links, phone call triggers, or copyable codes directly within the message. For example, a business could send a promotional message with buttons for "Reply", "Visit Website", or "Call Support".

Properties

Name Meaning
Nome Da Instância The name of the instance that will send the buttons message.
Número Do Destinatário The recipient's phone number in the format expected by the API.
Título The title text of the button message.
Descrição The description text of the button message.
Rodapé Optional footer text displayed at the bottom of the message.
Botões Up to 3 buttons to include in the message. Each button can be one of the following types:
- Resposta (reply): A quick reply button with an ID and display text.
- Copiar (copy): A button that copies a code/text when clicked.
- URL: A button that opens a specified URL.
- Ligar (call): A button that initiates a phone call to the given number.

Output

The node outputs a JSON array containing the response from the Wazzap API after attempting to send the button message. The exact structure depends on the API response but typically includes status information about the sent message.

No binary data output is indicated.

Dependencies

  • Requires an API key credential for authenticating with the Wazzap API.
  • The node uses the base URL https://doc.wazzap.mx/api-reference for API requests.
  • Proper configuration of the instance name and recipient number is necessary for successful message delivery.

Troubleshooting

  • Common Issues:

    • Invalid or missing instance name or recipient number may cause the API call to fail.
    • Exceeding the maximum of 3 buttons will likely result in an error.
    • Incorrect button properties (e.g., missing required fields like ID for reply buttons) will cause validation errors.
    • Network or authentication failures if the API key is invalid or not set.
  • Error Messages:

    • "Operação não suportada." indicates the requested operation is not implemented or recognized.
    • API errors returned from Wazzap should be checked for details such as invalid parameters or quota limits.
  • Resolutions:

    • Verify all required fields are filled correctly.
    • Ensure the API key credential is valid and has proper permissions.
    • Confirm the instance name corresponds to an active Wazzap instance.
    • Check button configurations carefully according to their type requirements.

Links and References

  • Wazzap API Documentation (official API reference)
  • n8n documentation on creating custom nodes and using credentials (for general guidance)

Discussion