Wazend API icon

Wazend API

Interact with Wazend API

Overview

This node, named "Wazend API," is designed to interact with the Wazend API service. Specifically, for the Chat resource and the Obtener Medio en Base64 operation, it retrieves media content from a chat message by its ID and returns the media encoded in Base64 format. It optionally converts video media to MP4 format before encoding.

Common scenarios where this node is useful include:

  • Extracting media files (images, videos, audio) from chat messages for further processing or storage.
  • Converting video formats to MP4 to ensure compatibility with other systems or workflows.
  • Encoding media as Base64 to embed directly into JSON payloads or transmit over text-based protocols.

Practical example:

  • A user wants to download a video sent in a chat message, convert it to MP4, and then upload it to a cloud storage service. This node can fetch the media, perform the conversion, and provide the Base64 string for subsequent steps.

Properties

Name Meaning
Nombre De La Instancia The name of the instance to connect to the Wazend API.
ID Del Mensaje The unique identifier of the chat message that contains the media to retrieve.
Convertir a MP4 Boolean option indicating whether to convert the retrieved video media to MP4 format.

Output

The node outputs a JSON array where each item contains the media data encoded as a Base64 string. The exact structure typically includes fields such as:

  • base64Data: The media content encoded in Base64.
  • Additional metadata about the media may be included depending on the API response.

If the media is a video and the "Convertir a MP4" option is enabled, the output Base64 string corresponds to the MP4-converted video.

No binary data output is indicated; all media is returned as Base64 within JSON.

Dependencies

  • Requires access to the Wazend API endpoint at https://docs.wazend.net/wazend.
  • Needs an API authentication token or key configured in the node credentials (referred generically as "an API key credential").
  • Network connectivity to the Wazend API service.

Troubleshooting

  • Operation not supported error: If the specified operation or resource is incorrect or unsupported, the node throws an error stating the operation is not supported. Verify that the Resource is set to "chat-api" and Operation to "get-media-base64".
  • Invalid or missing parameters: Ensure that "Nombre De La Instancia" and "ID Del Mensaje" are correctly provided and non-empty.
  • API authentication errors: Check that the API key credential is valid and has sufficient permissions.
  • Media conversion failures: If converting to MP4 fails, verify that the media type is a video and that the API supports conversion for that media.
  • Network issues: Timeouts or connection errors indicate network problems or API downtime.

Links and References

Discussion