Baileys Instance icon

Baileys Instance

Use the wa-instance API built on Baileys 7

Batch → Preview Batch

AI-generated

Summary

Preview a text or media batch by sending its items to the backend for validation without sending messages. The response is returned as JSON output for each incoming n8n item.

Inputs

  • Batch Type (required) — Choose Text or Media to select the batch format.
  • Items (required) — For a text batch, add recipients and either one Text or a Text Sequence; optionally include a Client Ref for each item. Sequence entries with empty text are filtered out.
  • Preview Media Items (required) — For a media batch, add recipients and Media URL for each item. Audio Duration (Ms), Caption, Client Ref, File Name, and MIME Type are optional and omitted when empty or zero.

Output shape

A single JSON object per incoming n8n item, containing the backend preview response.

Posts the selected batch type and normalized items to the preview endpoint. It does not send messages. Text and media items are collected from their respective fixed collections; an empty collection produces an empty items array.

Links

Discussion