Create a WhatsApp campaign
https://api.chat-data.com/ api/ v2/ whatsapp- campaigns/ whatsapp-campaignsCreates a campaign that sends one approved template to an audience from the chatbot's official WhatsApp integration, and starts it now or at schedule.at.
The audience is either a lead filter (the same filters as the dashboard builder) or a list of phone numbers. When the campaign starts, the audience is resolved once into one message per phone number. Numbers are excluded when they are invalid, blocked, opted out of marketing (marketing templates), US numbers on a marketing template, already sent a marketing template by this chatbot in the last 24 hours, or missing a variable value with no fallback.
mapping gives each slot of the template (named as in /whatsapp-templates, e.g. body[1], buttons[0][1]) a source: a lead field (name, first_name, email, phone), a custom lead attribute, or fixed text, with an optional fallback used when the lead's value is empty.
With replyMode: live_chat, a recipient's reply is handed to a human agent in Live chats instead of the AI (requires the live chat plan feature).
Request body
Sending 4 of 10 fieldschatbotIdstringnamestringtemplateobjectnamestringaudienceobjectOnly these fields are sent (application/json).