Bailey (WhatsApp) icon

Bailey (WhatsApp)

Interact with WhatsApp via Baileys WebSocket API

Actions122

Message → Send Document

AI-generated

Summary

Send a document to a WhatsApp contact or group by JID, using a URL or an incoming binary property. The operation passes the file, filename, and MIME type to WhatsApp and returns the send result.

Inputs

  • Recipient JID (required) — WhatsApp JID for the recipient, such as a contact JID ending in @s.whatsapp.net or a group JID ending in @g.us.
  • Media URL or Binary Property (required) — An HTTP(S) URL for the document, or the name of an incoming binary property containing it.
  • Caption — An optional caption is shown in the UI, but the operation does not read or send it.
  • Filename — Document filename; defaults to "file" when left empty.
  • MIME Type — Document MIME type; defaults to "application/octet-stream" when left empty.

Output shape

A single n8n item whose JSON contains the WhatsApp send result, or an empty object if no result is returned.

The operation calls WhatsApp's sendMessage with document content, filename, and MIME type. URL sources are passed as URLs; otherwise, the named binary property is read from the incoming item.

Links

Discussion