Mandala

WhatsApp

Send WhatsApp messages via the Cloud API (text, interactive, media, location, contacts, reaction, raw)

WhatsApp is a globally popular messaging platform for personal and business communication.

This block integrates the WhatsApp Cloud API to let your workflows send:

  • Text messages
  • Interactive messages (lists / buttons)
  • Media (image, video, audio, document, sticker)
  • Location
  • Contacts
  • Reactions
  • Raw payloads (advanced, send any supported WhatsApp payload)

For interactive menus and rich ordering experiences, use Interactive or Raw (advanced) modes. For future or niche message types, raw payload remains the escape hatch.

Usage

  1. Provide your WhatsApp Business Phone Number ID and Access Token.
  2. Select a Mode.
  3. Fill the fields shown for that mode (the UI reveals only what’s needed).
  4. Run the block to send the message.

The block will normalize inputs (e.g., phone formatting) and construct the correct payload. For JSON editors, paste valid JSON.


Inputs

Required Auth

FieldTypeRequiredNotes
phoneNumberIdstringYesWhatsApp Business Phone Number ID
accessTokenstringYesWhatsApp Cloud API Access Token
phoneNumberstringYesRecipient phone in E.164 (e.g., +911234567890)

Routing

FieldTypeRequiredValues
modestringNotext (default), interactive, raw, image, video, audio, document, sticker, location, contacts, reaction

Per-mode Fields

Text

FieldTypeRequiredNotes
messagestringYes (when mode="text")Message body

Interactive (List / Buttons)

FieldTypeRequiredNotes
interactivejsonYes (when mode="interactive")JSON for list or button interactive types. Titles/descriptions are trimmed to WhatsApp limits; lists capped to 10 rows, buttons to 3.

Raw (Advanced)

FieldTypeRequiredNotes
rawPayloadjsonNoAny valid WhatsApp payload. If the envelope is missing, it’s added automatically.

Media

ModeExtra FieldsRequired
imagemedia.link (url), media.caption?Yes
videomedia.link, media.caption?Yes
audiomedia.linkYes
documentmedia.link, media.caption?, media.filename?Yes
stickermedia.linkYes

Location

FieldTypeRequiredNotes
location.latitudenumberYesDecimal degrees
location.longitudenumberYesDecimal degrees
location.namestringNoOptional POI name
location.addressstringNoOptional address

Contacts

FieldTypeRequiredNotes
contactsjsonYes (when mode="contacts")Cloud API contacts array (passed through).

Reaction

FieldTypeRequiredNotes
reaction.message_idstringYesTarget WhatsApp message ID (wamid...)
reaction.emojistringYesSingle emoji

Examples

Text

{
  "mode": "text",
  "phoneNumber": "+911234567890",
  "message": "Hello from Mandala 👋"
}
WhatsApp