Wazend API icon

Wazend API

Interact with Wazend API

Overview

This node, named "Wazend API," is designed to interact with the Wazend API, providing various operations on different resources. Specifically for the Chat resource and the Editar Mensaje (Edit Message) operation, it allows users to update an existing chat message by specifying the instance name, contact number, message ID, and the new text content. This functionality is useful in scenarios where a user needs to correct or modify a previously sent message programmatically.

Practical examples include:

  • Correcting typos or errors in sent messages.
  • Updating message content based on new information.
  • Automating message edits in customer support workflows.

Properties

Name Meaning
Nombre De La Instancia The name of the Wazend instance to use for the operation.
Contacto The contact number (remote JID) identifying the recipient or chat where the message exists.
ID Del Mensaje The unique identifier of the message that will be edited.
Nuevo Mensaje The new text content that will replace the original message text.

Output

The node outputs a JSON array containing the result of the edit message operation. The exact structure depends on the Wazend API response but typically includes confirmation of the message update or details about the updated message.

If the node supports binary data output, it is not indicated in the provided code or properties, so the output is purely JSON-based.

Dependencies

  • Requires an active connection to the Wazend API endpoint at https://docs.wazend.net/wazend.
  • Needs an API authentication credential configured in n8n to authorize requests.
  • The node relies on internal helper functions mapped per resource and operation to execute the corresponding API calls.

Troubleshooting

  • Operation Not Supported Error: If the specified operation or resource is not supported, the node throws an error stating the operation is unsupported. Ensure the resource and operation names are correctly set.
  • Missing Required Parameters: All input properties marked as required must be provided; otherwise, the node may fail or return an error from the API.
  • API Connectivity Issues: Network problems or invalid credentials can cause request failures. Verify API keys and network access.
  • Invalid Message ID: Providing a non-existent or incorrect message ID will likely result in an error from the API indicating the message cannot be found or edited.

Links and References

Discussion