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 supports converting video media to MP4 format.

Common scenarios include:

  • Downloading media files sent in chat messages for further processing or storage.
  • Converting received video media into MP4 format for compatibility or playback purposes.
  • Integrating chat media retrieval into automated workflows, such as archiving or analysis.

Example use case:

  • Automatically fetch an image or video sent in a chat conversation, convert it if needed, and upload it to cloud storage or attach it to a ticketing system.

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 corresponds to the result of the media retrieval operation. The key output is the media content encoded as a Base64 string within the JSON data.

If the media is a video and the conversion option is enabled, the output will contain the media converted to MP4 format, also encoded in Base64.

No binary data output is explicitly indicated; all media content is returned as Base64-encoded strings inside the JSON output.

Dependencies

  • Requires an API key credential to authenticate with the Evolution API service.
  • The node uses the base URL https://doc.evolution-api.com/api-reference for API requests.
  • No additional external dependencies are indicated beyond the configured API authentication.

Troubleshooting

  • Operation not supported error: If you select an unsupported operation or resource combination, the node throws an error stating the operation is not supported. Ensure you select valid resource-operation pairs.
  • Missing required parameters: The node requires the instance name and message ID. Omitting these will cause errors.
  • API authentication failures: Make sure the API key credential is correctly configured and has sufficient permissions.
  • Media conversion issues: If converting to MP4 fails, verify the media type is convertible and the API supports the conversion.

Links and References

Discussion