OpenWA icon

OpenWA

Interact with OpenWA WhatsApp API Gateway

Actions164

Message → Send Bulk

AI-generated

Summary

Send multiple WhatsApp messages in bulk from a specified session, with each message optionally being text or media (image, video, audio, document).

Inputs

  • Session Name or ID (required) — The ID of the WhatsApp session to send the bulk messages from, chosen from a list or specified via expression.
  • Messages (JSON) (required) — An array of up to 100 message objects, each specifying the target chat ID, message type (text or media), and content. Media messages support remote URLs or base64 encoded data with MIME type, and optional captions. Items can also specify variables, mentions, document filenames, or voice note flags (ptt). Identical messages to the same chat are collapsed by the server.
  • Batch ID — An optional unique identifier for the batch within the session; leave blank to let the server generate one.
  • Options — Settings for sending messages such as delay between sends (1000-60000 ms), whether to randomize delay by adding up to 2000 ms, and if sending should stop on error. Defaults are applied by the server if left empty.

Output shape

a single JSON object summarizing the batch send, including a potentially lower count of messages sent after collapsing duplicates

The output batch total may be lower than the number of items sent if the server collapses identical messages. Media content must not use binary data directly; only remote URLs or base64 with mimetype are accepted in the bulk array.

Examples

Example 1: Sending a batch of mixed text and image messages with a fixed delay and randomized timing

Provide session ID, array of messages each with chat ID, type and content (text or image URL/base64), optional batch ID, and delay/randomize options

Links

Discussion