Create and schedule an immediate outreach campaign to many leads at once. Returns the matched audience count. Sending starts immediately and reaches every matched customer on their channel; the messages cannot be recalled. immediate_outreach_preview_audience reports the same audience count without creating or sending anything.
namestringrequired
Campaign name.
client_sourcestringrequired
Audience source: withChats, allClients, or withoutChats.
outreach_channelsarrayrequired
Channels to send through, format ChannelType__AssistantID (e.g. WhatsAppBusiness__14071). See list_channels.
schedule_modestringrequired
When to send: now (runs in ~3 min) or later (requires schedule_run_at).
schedule_run_atstringoptional
ISO datetime for a scheduled send (required when schedule_mode is later).
instructionsstringoptional
AI prompt for generating the outreach message (when use_custom_message is false).
custom_messagestringoptional
Static message to send (used when use_custom_message is true).
use_custom_messagebooleanoptional
If true, send custom_message directly; if false, generate with AI from instructions.
statusesarrayoptional
Filter audience by funnel statuses.
include_no_statusbooleanoptional
Include clients with no funnel status.
labelsarrayoptional
Filter audience by labels.
labels_operatorstringoptional
Label filter logic: or (any) or and (all).
include_no_labelsbooleanoptional
Include clients with no labels.
has_phone_numberbooleanoptional
Only include clients with a phone number.
has_emailbooleanoptional
Only include clients with an email.
last_active_cutoff_daysnumberoptional
Activity window in days (for the withChats source).
audience_limitnumberoptional
Max number of recipients (0 = unlimited).
send_delay_secondsnumberoptional
Delay between messages in seconds (default 7).