Actions28
- Message Actions
- Chat Actions
- Contact Actions
- Session Actions
- Media Actions
- Storage Actions
- Webhook Actions
- Ticket Actions
Media → Download
AI-generatedSummary
Downloads a media file by ID from a WAOtomatis session and writes it to a binary property on the output item, along with basic metadata.
Inputs
- Session (required) — The WAOtomatis session (connected WhatsApp number) to download from. Pick from a searchable list or enter an ID. Throws an error if none is selected.
- Media ID (required) — ID of the media to download, e.g. from an inbound message payload or an upload result.
- Put Output In Field (required) — Name of the binary field that receives the file. Defaults to "data".
- File Name — Optional file name to set on the downloaded binary. If empty, the name is left to n8n's default.
Output shape
One item per input item. The json holds { mediaId, mimeType, size }, and the file is in the binary field you named.
mimeType comes from the response Content-Type header and falls back to application/octet-stream. size is the byte length. The request is GET /v1/sessions/{sessionId}/media/{mediaId}. API errors are raised as NodeApiError. With Continue On Fail enabled, a failed item returns json.error instead.
Examples
Example 1: Save an image a customer sent over WhatsApp.
Session: your number; Media ID: {{$json.media.id}} from the inbound webhook; Put Output In Field: data.
Example 2: Download a document under a fixed name for later upload to cloud storage.
Media ID from the previous node; Put Output In Field: file; File Name: invoice.pdf.
