SocialMate icon

SocialMate

Control WhatsApp from n8n or an AI agent: send & read messages, look up contacts, manage groups, download media, queue paced batches of personalised messages, and fetch conversation memory (Get AI Context) — all through your self-hosted SocialMate server.

Media → Download File

AI-generated

Summary

Downloads a media item’s decrypted file bytes for use in later workflow steps. The item must already be mirrored locally; otherwise the request fails, and you can use Force Download and retry after it finishes.

Inputs

  • Account Name or ID — Select the WhatsApp account, or leave blank to auto-select when the API key is bound to one account. A key with access to multiple accounts requires a selection.
  • Media ID (required) — The media item’s ID, from Media: Get Many or a media.discovered trigger event.
  • Put Output File in Field (required) — Binary output field name; defaults to data.

Output shape

A single item with media metadata in JSON and the downloaded file in the specified binary field.

The download only succeeds when the media item is already downloaded locally; otherwise it fails with a 409. Use Force Download, wait until the item’s state is downloaded, then retry.

Links

Discussion