Evolution API icon

Evolution API

Interact with Evolution API

Overview

This node, named "Evolution API," allows interaction with the Evolution API service. Specifically for the resource Chat and operation Obter Mídia Em Base64 ("Get Media in Base64"), it retrieves media content from a chat message by its ID and returns the media encoded as a Base64 string. It optionally converts video media to MP4 format.

Common scenarios include:

  • Extracting media files (images, videos) sent in chat messages for further processing or storage.
  • Converting video formats on-the-fly to MP4 for compatibility or playback purposes.
  • Integrating chat media retrieval into automated workflows, such as archiving or analysis.

Example use case:

  • A user wants to download an image or video sent in a chat conversation and save it in Base64 format for embedding in reports or sending to other systems.

Properties

Name Meaning
Nome Da Instância The name of the instance to connect to the Evolution API service.
ID Da Mensagem The unique identifier of the chat message that contains the media to retrieve.
Converter Para 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. This output can be used directly in subsequent nodes for storage, transmission, or further processing.

If the media is a video and the "Converter Para MP4" property is set to true, the output will contain the media converted to MP4 format before encoding.

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

Dependencies

  • Requires an API key credential to authenticate with the Evolution API service.
  • The node expects the Evolution API endpoint to be accessible and properly configured.
  • No additional environment variables are explicitly required beyond the API authentication.

Troubleshooting

  • Operation not supported error: If the specified operation or resource is not recognized, ensure the correct resource ("chat-api") and operation ("get-media-base64") names are used.
  • Invalid message ID: If the message ID does not exist or does not contain media, the API may return an error or empty result. Verify the message ID correctness.
  • Conversion failures: If converting to MP4 fails, check if the media is a video and if the conversion feature is supported by the API.
  • Authentication errors: Ensure the API key credential is valid and has sufficient permissions to access chat media.

Links and References

Discussion