Wazend API icon

Wazend API

Interact with Wazend API

Overview

This node, named "Wazend API," is designed to interact with the Wazend messaging platform via its API. Specifically, for the Mensaje resource and the Enviar Texto operation, it sends a text message to a specified recipient. This functionality is useful in scenarios where automated or programmatic sending of WhatsApp-like messages is needed, such as customer support notifications, marketing campaigns, or alert systems.

For example, you can use this node to send a welcome message to new users, notify customers about order status updates, or broadcast announcements to group chats with mentions.

Properties

Name Meaning
Nombre De La Instancia The name of the instance that will send the message.
Número Del Destinatario The recipient's remote JID (unique identifier for the chat or user). Required.
Mensaje The text content of the message to be sent. Required.
Opciones Additional options for sending the message:
- Delay Number of milliseconds to wait before sending the message (default 1200 ms).
- Responder Mensaje Option to reply to a specific message by providing its message ID.
- Menciones Settings for mentioning participants in a group:
- Mencionar a Todos Boolean to mention all participants in the group.
- Números a Mencionar Comma-separated list of phone numbers to mention individually (used if not mentioning everyone).
- Vista Previa De Enlace Boolean to enable or disable link preview in the message (default enabled).

Output

The node outputs an array of JSON objects representing the result of the send-text operation. Each object typically contains information about the message sent, such as message ID, status, or any response data returned by the Wazend API.

If the node supports binary data output (not evident from the provided code), it would represent media or attachments related to the message, but for this text message operation, the output is purely JSON.

Dependencies

  • Requires an active connection to the Wazend API service.
  • Needs an API authentication credential configured in n8n (an API key or token).
  • The base URL for requests is https://docs.wazend.net/wazend.
  • No other external dependencies are indicated.

Troubleshooting

  • Operation Not Supported Error: If the node throws an error stating the operation is not supported, verify that the resource and operation names are correctly set to "messages-api" and "send-text" respectively.
  • Missing Required Parameters: Ensure that required fields like "Número Del Destinatario" and "Mensaje" are filled; otherwise, the API call will fail.
  • API Authentication Errors: Confirm that the API credentials are valid and have sufficient permissions.
  • Delay Misconfiguration: Setting an excessively high delay might cause unexpected waiting times; adjust accordingly.
  • Mention Formatting: When specifying individual numbers to mention, ensure they are comma-separated without extra spaces or invalid characters.

Links and References

Discussion