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 resource "Mensaje" and operation "Enviar Imagen," it allows users to send an image message to a specified recipient through a given instance of the Wazend service.

Common scenarios where this node is beneficial include:

  • Automating sending promotional images or product photos to customers.
  • Sending event invitations or announcements with visual content.
  • Responding to user queries with relevant images in chatbots or customer support workflows.

For example, a marketing automation workflow could use this node to send a product catalog image to a list of customers automatically.

Properties

Name Meaning
Nombre De La Instancia The name of the Wazend instance that will send the message.
Número Del Destinatario The recipient's phone number or identifier to whom the image will be sent.
Imagen The image to send, provided as a URL or base64 string.
Caption Optional text caption to accompany the image message.
Opciones Additional options for 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 ID.
- Menciones Settings to mention participants in the message:
-- Mencionar a Todos Boolean to mention all participants in a group.
-- Números a Mencionar Comma-separated list of specific numbers to mention if not mentioning everyone.

Output

The node outputs a JSON array containing the response from the Wazend API after attempting to send the image message. This typically includes confirmation details such as message ID, status, timestamps, or error information if the sending failed.

No binary data output is indicated for this operation.

Dependencies

  • Requires an active Wazend API credential configured in n8n to authenticate requests.
  • Depends on network access to the Wazend API endpoint at https://docs.wazend.net/wazend.
  • The node uses internal helper methods to handle API calls and return results.

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-image" respectively.
  • Authentication Failures: Ensure the API key or authentication token for Wazend is valid and properly configured in n8n credentials.
  • Invalid Recipient Number: Sending may fail if the recipient number format is incorrect or not registered on Wazend.
  • Image Format Issues: The image property must be a valid URL or base64 string; invalid formats can cause errors.
  • Delay Misconfiguration: Setting an excessively high delay might cause unexpected workflow timing issues.

Links and References

Discussion