MCP

campaign/post_sequences_by_id

Tool: create

Create a new sequence within a campaign.

A sequence is a conditional branch containing followup emails, entered when its trigger rule matches. The six condition* fields below are that one rule — set and read them together (schemas/sequence explains how they compose). After creating a sequence, add followups via sequence/post_followups_by_id. Returns the created sequence on 201.

List the campaign's sequences before creating one (campaign/get_sequences_by_id). A campaign created in the web app already holds one, named 1; a campaign created through these operations holds none. Add your followups to the existing sequence rather than a second one — and a campaign holds at most 10 sequences in total.

Arguments

name type req notes
id integer Campaign ID — the object's campaignId

Body

field type req constraints description
name string ≤64 chars Sequence name
shortName string ≤8 chars Short name for reporting/UI
conditionReply string one of: All, Opened, NotOpened, NotReplied, Replied, RepliedInterested, RepliedNotInterested, RepliedNeutral, RepliedMaybeLater, Converted, NotConverted, Won, MeetingBooked, MeetingCompleted Reply-based trigger. Omitted, it defaults to NotReplied — follow-ups go only to prospects who have not replied. All (every prospect, including those who already replied) is never the default; set it only on an explicit request to keep emailing repliers
conditionAction string one of: Opened, Clicked, Bounced, Unsubscribed, Converted, Replied Action-based trigger
conditionOperator string one of: GreaterThanOrEqual, LessThanOrEqual, Equal, NotEqual, GreaterThan, LessThan Comparison operator
conditionTimes integer 0–100 How many times the conditionReply/conditionAction condition must be met, compared via conditionOperator — a threshold, not an open/click/reply count
conditionExtra boolean Apply additional condition
conditionNegate boolean Negate condition logic

Response

201 — Created sequence; object: see schemas/sequence. Deltas: conditionNegate may be absent from this single-item response.

Errors: 400, 401, 404, 406, 409, 415, 422, 429, 500 — shared schema: schemas/errors.

Invoke

Call create with name: "campaign/post_sequences_by_id".