Actions64
- Instance Actions
- Chat Actions
- Message Actions
- Group Actions
- Profile Actions
- Event Actions
- Integration Actions
Overview
The node named "Evolution API" allows interaction with the Evolution API service. Specifically, for the resource Chat and operation Get Media in Base64, it retrieves media content from a chat message by its ID and returns the media encoded as a Base64 string. This is useful when you want to programmatically access media files (such as images or videos) sent in chat messages and process or store them in a Base64 format.
A practical example would be automating the download of media attachments from chat conversations for archival or further processing without manually downloading files.
Properties
| Name | Meaning |
|---|---|
| Instance Name | The name of the Evolution API instance to connect to. |
| Message ID | The unique identifier of the chat message that contains the media to retrieve. |
| Convert to MP4 | A boolean option indicating whether to convert the retrieved video media into MP4 format. |
Output
The output is a JSON array where each item corresponds to the result of the media retrieval operation. The key data returned includes the media content encoded as a Base64 string. This allows easy embedding or transfer of media data without dealing with binary file handling.
If the media is a video and the "Convert to MP4" option is enabled, the output will contain the media converted to MP4 format encoded in Base64.
Dependencies
- Requires an active connection to the Evolution API service.
- Requires an API authentication token or API key credential configured in n8n to authorize requests to the Evolution API.
- The node depends on the Evolution API endpoint that supports fetching media by message ID and optionally converting videos to MP4.
Troubleshooting
- Unsupported operation error: If the node throws an error stating the operation is unsupported, verify that the resource is set to "Chat" and the operation to "Get Media in Base64".
- Invalid or missing credentials: Ensure the API key or authentication token for the Evolution API is correctly configured in n8n.
- Message ID not found: If the specified message ID does not exist or does not contain media, the node may return an empty result or an error.
- Conversion failures: If video conversion to MP4 fails, check if the media type is supported and the API service is operational.
Links and References
- Evolution API Documentation (official API reference)
- n8n documentation on creating custom nodes