Skip to content

Tool

create_campaign

Create campaign

SurfacesChat agentMCPCLI

Create a COMPLETE email campaign (newsletter) draft in one call: audience (and optional segment), subject, body, sender identity (from/reply-to), a PROPOSED send time, and a short rationale for your choices. The draft lands in the campaign builder for human review — it never sends or schedules itself. Use list_audiences / list_segments first to resolve ids by name, and get_send_readiness('broadcast') before creating.

CLI: tinbox create-campaign

Parameters

NameTypeRequiredDescription
audienceIdstringyesThe audience to send to (resolve by name via list_audiences).
segmentIdstringnoOptional saved/static segment within the audience (resolve by name via list_segments).
titlestringnoInternal title for the campaign.
subjectstringyesEmail subject line.
contentstringyesEmail body content (markdown or HTML).
fromNamestringnoSender name (defaults to audience setting).
fromEmailstringnoSender email (defaults to audience setting).
replyTostringnoReply-to address (defaults to audience setting).
previewTextstringnoInbox preview text (the line under the subject).
proposedSendAtintegernoPROPOSED send time (Unix ms). Stored on the draft only — a human must approve and schedule before anything sends.
rationalestringnoOne short paragraph on the choices made (which audience/segment and why, the proposed schedule and why). Shown to the reviewer in the builder's proposed-by banner.

Example

json
{
  "audienceId": "aud_…",
  "subject": "<subject>",
  "content": "<content>"
}