Evolution API icon

Evolution API

Interact with Evolution API

Overview

This node, named "Evolution API," allows users to interact with the Evolution API service. Specifically, for the Chat resource and the Obter Mídia Em Base64 (Get Media in Base64) operation, 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 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.
  • Integrating chat media retrieval into automated workflows, such as archiving or analysis pipelines.

Example use case: Automatically download and convert a video sent in a chat message to MP4, then store it encoded in Base64 for transmission or database storage.

Properties

Name Meaning
Nome Da Instância The name of the instance to connect to.
ID Da Mensagem The ID of the chat message that contains the media to retrieve.
Converter Para MP4 Whether to convert the retrieved video media to MP4 format before encoding to Base64.

Output

The node outputs a JSON array containing the media data encoded as a Base64 string. The exact structure depends on the implementation of the operation function but typically includes fields such as:

  • The Base64-encoded media content.
  • Metadata about the media (e.g., filename, MIME type).
  • Possibly an indication if the media was converted to MP4.

If the media is binary (video, image, audio), the Base64 encoding allows safe transport within JSON.

Dependencies

  • Requires an API key credential to authenticate with the Evolution API service.
  • The node expects the Evolution API endpoint to be reachable at https://doc.evolution-api.com/api-reference.
  • No additional external dependencies are indicated in the provided code.

Troubleshooting

  • Operation not supported error: If you select an unsupported operation or resource, the node will throw an error indicating the operation is not supported. Ensure the resource is set to "chat-api" and operation to "get-media-base64".
  • Missing or invalid credentials: The node requires valid API authentication; errors related to authorization indicate issues with the configured API key.
  • Invalid message ID: Providing a wrong or non-existent message ID may result in errors or empty responses.
  • Conversion failures: If converting video to MP4 fails, verify the media format and conversion support.

Links and References

Discussion