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 before encoding.

Common scenarios include:

  • Extracting media files (images, videos) sent in chat messages for further processing or storage.
  • Converting video formats to MP4 to ensure compatibility with other systems.
  • Automating workflows that require downloading and handling chat media content programmatically.

Example use case:

  • A user wants to download a video sent in a chat, convert it to MP4, and then upload it to a cloud storage service.

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 containing 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 uploading, saving, 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 into MP4 format before encoding.

No binary data output is explicitly mentioned; 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 to be accessible and properly configured.
  • No additional external dependencies are indicated in the source code.

Troubleshooting

  • Operation not supported error: If you select an unsupported operation or resource, the node throws an error stating the operation is not supported. Ensure you use the exact resource "chat-api" and operation "get-media-base64".
  • Invalid or missing parameters: Make sure the "Nome Da Instância" and "ID Da Mensagem" fields are correctly filled; otherwise, the API call may fail.
  • Media conversion issues: If converting to MP4 fails, verify that the media type supports conversion and that the API service supports this feature.
  • Authentication errors: Confirm that the API key credential is valid and has sufficient permissions.

Links and References

Discussion