GoFlow WhatsApp icon

GoFlow WhatsApp

Send messages, media, mentions, typing indicator and read receipts via GoFlow WhatsApp

Send Media

AI-generated

Summary

Send a media message (image, video, audio, or document) to a specified WhatsApp recipient or group via GoFlow WhatsApp API, using either a public URL or a binary file from a previous node.

Inputs

  • API Key Override — Optional per-item API key to use instead of the credential key, enabling one workflow for multiple numbers.
  • To (required) — Recipient's phone number (e.g., 77009876543) or group ID (e.g., ...@g.us), usually the chat_id from an incoming message.
  • Media Source (required) — Source of the media file to send, either a publicly accessible URL or a binary file from a previous node encoded as base64.
  • Media URL (required) — Direct public link to the media file (required if Media Source is URL).
  • Binary Property (required) — Name of the binary property containing the file (default 'data'), required if Media Source is binary.
  • Media Type (required) — Type of the media file being sent: image, video, audio, or document.
  • Caption — Optional caption text to accompany the media (valid for image, video, and document types).
  • File Name — Document file name; if sending binary and left empty, the file name is extracted from the binary data.

Output shape

a list of response objects from the GoFlow WhatsApp API, each paired with the input item that triggered it

Each output item contains the JSON response of the API call to send the media message. If sending binary data, the file is base64-encoded before sending. Errors are returned per-item if 'continue on fail' is enabled.

Examples

Example 1: Send an image from a public URL with a caption to a WhatsApp group

Set 'To' to group's chat ID, 'Media Source' to 'url', provide 'Media URL', set 'Media Type' to 'image', and optionally set 'Caption'.

Example 2: Send a PDF document from a previous binary node to a individual number

Set 'To' to the recipient's phone number, 'Media Source' to 'binary', specify 'Binary Property' matching the previous node's output, set 'Media Type' to 'document', and optionally specify 'File Name'.

Links

Discussion