Actions114
- Instance Actions
- Message Actions
- Group Actions
- Chat Actions
- Profile Actions
- Event Actions
- Integration Actions
- Call Actions
- Label Actions
- OpenAI Actions
- N8N Integration Actions
- EvoAI Actions
- Template Actions
- Business Actions
Chat → Get Media in Base64
AI-generatedOverview
This node operation retrieves media content from a chat message by its message ID and converts the media into a Base64 encoded string. It supports an option to convert video media into MP4 format before encoding. This is useful for scenarios where media needs to be processed or transferred in a text-based format, such as embedding images or videos in JSON payloads or sending media through systems that only support text data.
Use Case Examples
- Extracting an image or video from a chat message and embedding it as Base64 in a database or another API call.
- Converting video media to MP4 format and encoding it to Base64 for compatibility with systems that require MP4 videos in text form.
Properties
| Name | Meaning |
|---|---|
| Instance Name | The name of the chat instance to connect to and retrieve the media from. |
| Message ID | The unique identifier of the chat message that contains 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 to Base64. |
Output
JSON
base64Data- The Base64 encoded string of the retrieved media content.
Dependencies
- Requires an API key credential to authenticate with the Evolution API service.
Troubleshooting
- Ensure the provided Instance Name and Message ID are correct and correspond to existing chat data.
- If the media is a video and conversion to MP4 is enabled, verify that the media format is supported for conversion.
- Common errors include unsupported operation errors if the resource or operation names are incorrect, or authentication errors if the API key credential is missing or invalid.