mailmoo_campaign_add_step
Add a step to a campaign's sequence
Adds one step to a campaign's sequence: message, connection_request, connection_request_with_note, inmail, email, wait, profile_visit, or move_to_campaign. THE CAMPAIGN MUST BE PAUSED. Get step ids from campaign_get_context or from this tool's result. afterStepId places it; leave it out to append to a sequence with no branches. When afterStepId is a condition, pass branch 'yes' or 'no' for the path the step starts. sendCondition sets when a message, InMail or email step sends (noReply: skip once they replied; always; noPrevMessages: skip when a conversation exists; notOpened: skip when they opened the last message; noPrevEmails for email), and stopIfSkipped ends the lead's sequence when it is skipped. Waits are in seconds (a day is 86400). move_to_campaign ends the lead's sequence and starts them in targetCampaign from its first step (anything already sent stays sent); it goes at the end of a path, nothing can be added after it, and the target cannot be this campaign or one that moves leads back here. The move happens right away, even when the target is turned off. Personalize with merge fields from campaign_get_context's mergeFields, e.g. {{First Name | ""}}. A message step can go as a voice note (voiceNote): ai speaks the content as a script in a cloned voice, prerecorded sends one recording from the library; list the choices with voice_notes_list and ask the user which, and whose voice, when they have not said. The step is checked before it is saved: unknown merge fields, a step a sender cannot perform (InMail needs Premium, an AI voice note needs a voice clone), or a connection note over the length limit are refused with the reason. The result lists the sequence, each message step's voice note, and readiness: what would still stop the campaign from starting. A connection request only works between two Is connected checks (IS_FIRST_LEVEL_CONN steps, which this tool cannot add): on the No path of one that decides at once, so people already connected skip the request, and followed by one that waits for the acceptance, with the messages on its Yes path. Templates have both, so build from one rather than from an empty sequence.
Effect: Write. See Effects.
Permissions: Read campaigns, Write campaigns.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
campaign | string | Yes | The campaign, by name or id. |
type | message, connection_request, connection_request_with_note, inmail, email, wait, profile_visit, move_to_campaign | Yes | |
afterStepId | string | No | Insert after this step. |
branch | yes, no | No | When afterStepId is a condition: which path to start. |
content | string | No | Message, note, InMail or email text. Required for those. |
subject | string | No | InMail or email subject. |
waitTimeSeconds | integer | No | Wait steps: how long, in seconds. |
targetCampaign | string | No | move_to_campaign steps: the campaign the lead starts next, by name or id. Required when adding one. |
sendCondition | noReply, always, noPrevMessages, notOpened, noPrevEmails | No | |
stopIfSkipped | boolean | No | |
emailThreading | replyToThread, newEmail | No | Email steps: reply in the earlier thread, or a new email. |
voiceNote | object | No | Message steps only. Ask the user which they want when it is not clear: a written message, an AI voice note (say whose voice: each sender's own clone, or one named clone), or a pre-recorded voice note (say which recording). With prerecorded, content is optional and is sent as text only if the recording cannot be loaded. |

