Actions64
- Instance Actions
- Message Actions
- Group Actions
- Profile Actions
- Event Actions
- Integration Actions
- Chat Actions
Overview
This node interacts with the Evolution API to perform various operations based on the selected resource and operation. Specifically, for the 'Chat' resource and 'Get Media In Base64' operation, it retrieves media content from a chat message by its ID and returns the media encoded in Base64 format. It also supports an option to convert video media to MP4 format before encoding. This node is useful for workflows that need to process or analyze media files from chat messages, such as downloading images or videos for further processing or storage.
Use Case Examples
- Retrieve an image from a chat message by its ID and use the Base64 data to embed it in a report.
- Download a video from a chat message, convert it to MP4 format, and then upload it to a video hosting service.
Properties
| Name | Meaning |
|---|---|
| Instance Name | The name of the instance to connect to the Evolution API for retrieving chat media. |
| Message ID | The unique identifier of the chat message containing the media to be retrieved. |
| Convert To MP4 | A boolean flag indicating whether to convert the retrieved video media to MP4 format before encoding it in Base64. |
Output
JSON
base64Data- The Base64 encoded string of the media content retrieved from the chat message.mediaType- The MIME type of the media content (e.g., image/jpeg, video/mp4).messageId- The ID of the message from which the media was retrieved.
Dependencies
- Requires an API key credential for authenticating with the Evolution API.
Troubleshooting
- Ensure the provided Instance Name and Message ID are correct and correspond to existing resources in the Evolution API.
- If the media is a video and conversion to MP4 is enabled, verify that the conversion process completes successfully; otherwise, the output may be empty or invalid.
- Common errors include authentication failures due to invalid or missing API credentials, and unsupported media types that cannot be converted or encoded.