Green API Get Video
AI-generatedOverview
This node downloads and processes WhatsApp video messages using the Green API. It supports multiple input sources for the video data, including direct message ID and chat ID, a direct download URL, or data from a previous node. The node fetches the video file, optionally filters by video format and file size, and outputs the video as binary data along with metadata if requested. This is useful for workflows that need to retrieve and handle WhatsApp video messages for further processing or storage.
Use Case Examples
- Downloading a video from a WhatsApp message by specifying the message ID and chat ID.
- Downloading a video directly from a provided URL.
- Processing video data passed from a previous node in the workflow.
Properties
| Name | Meaning |
|---|---|
| Input Source | Source of the video message data, can be message ID, direct download URL, or previous node output. |
| Message ID | WhatsApp message ID containing the video, required if input source is messageId. |
| Chat ID | WhatsApp Chat ID where the message was sent, required if input source is messageId. |
| Download URL | Direct download URL for the video, required if input source is downloadUrl. |
| Message ID Field | Field name containing the message ID in previous node data, used if input source is previousNode. |
| Chat ID Field | Field name containing the chat ID in previous node data, used if input source is previousNode. |
| Download URL Field | Field name containing the download URL in previous node data, used if input source is previousNode. |
| Binary Property Name | Name of the binary property to store the video file. |
| Options | Additional options for processing the video, including metadata inclusion, custom filename, video format filtering, and max file size. |
Output
Binary
Contains the downloaded video file data stored under the specified binary property name.
JSON
success- Indicates if the video download and processing was successful.fileName- The filename of the downloaded video.fileSize- Size of the downloaded video file in bytes.mimeType- MIME type of the video file.videoType- Human-readable video format description.caption- Caption of the video message if available.metadata- Optional metadata about the video including message ID, chat ID, download URL, file size, MIME type, and download timestamp.originalData- Original input data from the previous node if input source was previousNode.
Dependencies
- Green API credentials (instance ID and API token) for authentication and access to WhatsApp message files.
Troubleshooting
- Error if neither download URL nor message ID with chat ID is provided: Ensure correct input source and required fields are set.
- File size exceeds max limit error: Adjust the max file size option or provide a smaller video.
- Video format filter excludes the video: Check the selected formats or leave empty to allow all formats.
- No file URL found for message error: Verify the message ID and chat ID are correct and the message contains a video.
- HTTP request failures: Check network connectivity and API credentials validity.