Skip to Content
SendCrew

Build a campaign from Claude

Describe who to reach and what to say; the agent finds leads, writes the sequence, builds a draft for you to review, and launches it only when you say so.

Campaigns run every lead of some lead lists through a sequence (view profile, connection request, messages after they accept, withdraw if they don't), spread over your senders. The agent and the dashboard drive the same engine, and the same safety rules apply to both: daily and weekly caps, warm-up, working hours, the blacklist, and never contacting anyone twice from your workspace.

The flow, with the prompts

Connect SendCrew to Claude first (Install). Then, in a chat:

You sayThe agent calls
"What can you do?"Lists its tools by job: senders, leads, campaigns, inbox.
"Find founders of UK marketing agencies with 1–10 people, first 25. Save them to a list."create_lead_list, then search_leads with source: "linkedin" (through your own account, free) or "database" (credits; it shows the estimate first) and list_id.
"Find and verify their emails, tell me the cost first."estimate_enrichment, and enrich_leads with your approved maximum only after you agree.
"Write a sequence: a connection note under 200 characters, a first message that doesn't pitch, one follow-up."list_campaign_templates for a starting point, then writes the steps.
"Create it as a draft, don't start it."create_campaign (always a draft). Returns the dashboard link to review it.
"Show me what Alex actually gets."preview_campaign renders each message for real leads: the A/B version they get, fallbacks, empty variables.
"Make the follow-up shorter."update_campaign_step
"Launch it."launch_campaign without confirm: a summary and a confirm_token. The agent shows you the summary and asks.
"Yes, launch it."launch_campaign with confirm: true and the token.
"How is it doing? Rewrite the weakest message."get_campaign_stats (per step and A/B version), then update_campaign_step.
"Any replies? Tag the interested ones."check_inbox with campaign, tag_thread
"Pause it."pause_campaign (and resume_campaign later)

Launching needs you

launch_campaign is the only campaign tool that reaches LinkedIn, and it takes two calls with you in between:

  1. Without confirm, nothing starts. It returns the summary (leads, senders, the sequence in plain lines, schedule, forecast, warnings, the first three leads with their actual messages), any blockers, and a confirm_token.
  2. With confirm: true and that confirm_token, it launches. The token is tied to the campaign as summarised: if anything changes (a step, the senders, the leads), the call is refused with CONFLICT and the agent has to show you the new summary.

You can always launch from the dashboard instead: every campaign tool returns a dashboard_url.

The sequence format

create_campaign, update_campaign and preview_campaign take steps as a flat list. Each step follows the one listed before it, or the step named in after (a key you gave it). Steps after a condition say which branch they're on.

[
  { "key": "view", "type": "view_profile" },
  { "key": "invite", "type": "invite", "wait_days": 1,
    "versions": [
      { "text": "Hi {{firstName | there}}, I work with small UK agencies on outreach. Good to connect." },
      { "text": "Hi {{firstName | there}}, fellow agency person here. Keen to know more founders in the UK." }
    ] },
  { "key": "accepted", "type": "if_accepted", "within_days": 14 },
  { "after": "accepted", "branch": "yes", "type": "message", "wait_hours": 4,
    "text": "Thanks for connecting, {{firstName}}! How is {{company}} finding new clients at the moment?",
    "fallback": "Thanks for connecting! How are you finding new clients at the moment?" },
  { "type": "message", "wait_days": 3, "text": "Quick one: does {{company | the agency}} do any outbound today?" },
  { "after": "accepted", "branch": "no", "type": "withdraw" }
]
StepWhat it doesWhere it can go
view_profile, follow, like_postLight touchesAnywhere
inviteConnection request, optional note (200 characters on free accounts, 300 on Premium)Once, before they're connected
if_acceptedWaits up to within_days for the accept; yes / no branchesAfter an invite
if_connectedAlready a connection? yes / noBefore any invite
if_has_emailThe lead has an email? yes / noAnywhere
messageMessage a 1st-degree connectionUnder if_accepted or if_connected → yes
inmailInMail with subject and text (Premium or Sales Navigator senders)Anywhere
withdrawWithdraw an unaccepted requestUnder if_accepted → no
endStopAnywhere
  • Waits: wait_days and wait_hours (added together). Default: 1 day for actions, none for the first step and conditions.
  • Text: text for one version, or versions for A/B/C tests (leads are split evenly). Variables: {{firstName}}, {{lastName}}, {{company}}, {{title}}, {{location}}, {{senderFirstName}}, any custom column of the list, with an inline fallback {{firstName | there}}. A step's fallback text is used when a variable is empty for a lead, or when an invite note is too long for a free sender.
  • Replies end automation: a lead who replies leaves the sequence, whatever step they're on.
  • Validation: get_campaign and every write return issues (errors block launch, warnings don't) and launch_blockers. Every write takes dry_run: true to check without saving.

Editing

  • get_campaign returns the steps in the same format, with each step's step_id. To change one message use update_campaign_step. To restructure, send the whole list to update_campaign, passing existing step_ids as key to keep those steps (their stats, and the leads waiting on them).
  • In a running campaign edits apply to leads that haven't reached the step yet; steps leads are waiting on can't be removed, and senders can be added but not removed.
  • pause_campaign cancels queued actions and holds every lead where it is; resume_campaign carries on and enrolls leads added to its lists since.

Reference

list_campaign_templates

GET /api/v1/campaign_templates · read

Starting sequences for create_campaign(template): each with its steps in the create_campaign format and a one-line-per-step outline. Texts are empty: write them for the user's offer.

create_campaign

POST /api/v1/campaigns · write

Create a campaign as a draft: lead lists, senders, the sequence and the schedule. Always a draft; nothing is sent until launch_campaign with the user's confirmation (or Launch in the dashboard). steps is a flat list: each step follows the one before it, or the step named in `after` (a key you give a step); steps after a condition (if_accepted, if_connected, if_has_email) need branch yes/no. Messages only reach 1st-degree connections, so put them under if_accepted→yes or if_connected→yes. Texts take variables like {{firstName | there}} and A/B versions. Returns the campaign with step ids, validation issues, launch blockers and the dashboard link to review it. Campaigns run every lead of their lists through the sequence, spread over the senders, inside the same server-side safety layer as direct writes (caps, warm-up, working hours, blacklist, never contacting anyone twice). dry_run returns what would be created and its issues without saving.

ParameterTypeDescription
namestring
lead_list_ids?arrayLists whose leads the campaign contacts (create_lead_list + add_leads / search_leads).
exclude_list_ids?arrayLeads in these lists are skipped.
sender_ids?arraySenders to spread leads over (list_senders). Each lead sticks to the sender that first touches it.
template?stringStart from a template (list_campaign_templates). Ignored when steps are given.
steps?arrayThe sequence. Omitted: the template, or a starter sequence with empty texts to fill in.
schedule?objectWhen steps may run, in the campaign's time zone. Each sender's own working hours still apply on top.
new_leads_per_sender_per_day?integerHow many new leads each sender starts per day (default 15). Daily caps still apply.
dry_run?booleanCheck everything and return what would happen, without saving.

list_campaigns

GET /api/v1/campaigns · read

Campaigns in this workspace (optionally by status) with lead counts by state, senders, accept/reply outcomes and dashboard links.

ParameterType
status?string

get_campaign

GET /api/v1/campaigns/{campaign_id} · read

One campaign as you'd edit it: settings, steps (each with its step_id, in the format create_campaign and update_campaign take), a plain outline, validation issues, launch blockers, senders with today's budgets, the forecast, the variables its lists offer, and the dashboard link.

ParameterTypeDescription
campaign_idstringFrom create_campaign or list_campaigns

update_campaign

POST /api/v1/campaigns/{campaign_id} · write

Change a campaign's name, lists, exclusions, senders, schedule, daily new leads, or replace its whole sequence (steps, same format as create_campaign). To keep a step (and its stats and the leads on it), pass its step_id from get_campaign as the step's key. Running campaigns: edits apply to leads that haven't reached the step yet; senders can be added, not removed. To change one message use update_campaign_step. dry_run validates without saving.

ParameterTypeDescription
campaign_idstringFrom create_campaign or list_campaigns
name?string
lead_list_ids?array
exclude_list_ids?array
sender_ids?arrayRunning campaigns: senders can be added, not removed.
steps?arrayReplaces the whole sequence. Keep existing steps by passing their step_id (from get_campaign) as key; in a running campaign, steps leads are on can't be removed.
schedule?objectFields you pass replace the current ones; the rest stay.
new_leads_per_sender_per_day?integer
dry_run?booleanCheck everything and return what would happen, without saving.

update_campaign_step

POST /api/v1/campaigns/{campaign_id}/steps/{step_id} · write

Change one step of a campaign: its text (one version), A/B versions, fallback, wait, or an Accepted? step's days. Use it to rewrite the weakest message after get_campaign_stats. In a running campaign it applies to leads that haven't reached the step. dry_run shows the step and its issues without saving.

ParameterTypeDescription
campaign_idstringFrom create_campaign or list_campaigns
step_idstringFrom get_campaign steps[].step_id
text?stringReplace the step's text with one version (drops A/B versions).
subject?stringInMail subject
versions?arrayReplace the A/B versions (keep a version's id to keep its stats).
fallback?objectUsed when a variable is empty for a lead (or an invite note is too long for a free sender).
wait_days?number
wait_hours?number
within_days?integerif_accepted only
dry_run?booleanCheck everything and return what would happen, without saving.

preview_campaign

POST /api/v1/campaigns/{campaign_id}/preview · read

Render a campaign's messages for real leads from its lists, exactly as they'd be sent: the A/B version or fallback each lead gets, variables that are empty for them, invite notes too long for free senders. One lead (lead_id), one step (step_id), or the first few; pass steps to preview an unsaved sequence.

ParameterTypeDescription
campaign_idstringFrom create_campaign or list_campaigns
lead_id?stringOne lead from the campaign's lists (list_leads); omitted = the first few.
step_id?stringOnly this step
limit?integer
steps?arrayPreview an unsaved sequence (same format as update_campaign) instead of the saved one.

launch_campaign

POST /api/v1/campaigns/{campaign_id}/launch · write

Start a draft campaign: its leads begin receiving the sequence on LinkedIn. Two calls, with the user in between. First call without confirm: returns the launch summary (leads, senders, sequence, schedule, forecast, the first leads' actual messages, blockers) and a confirm_token; nothing starts. Show the summary to the user. Only after they explicitly say to launch, call again with confirm: true and the confirm_token. The token goes stale if the campaign changes. Never confirm on your own. Campaigns run every lead of their lists through the sequence, spread over the senders, inside the same server-side safety layer as direct writes (caps, warm-up, working hours, blacklist, never contacting anyone twice).

ParameterTypeDescription
campaign_idstringFrom create_campaign or list_campaigns
confirm?booleanfalse (default): only return the launch summary and a confirm_token. true: launch; needs confirm_token.
confirm_token?stringFrom the summary call. Stale once the campaign changes.
dry_run?booleanCheck everything and return what would happen, without saving.

pause_campaign

POST /api/v1/campaigns/{campaign_id}/pause · write

Pause a running campaign: its queued actions are cancelled and no lead moves until resume_campaign. Leads keep their place. dry_run says whether it can be paused.

ParameterTypeDescription
campaign_idstringFrom create_campaign or list_campaigns
dry_run?booleanCheck everything and return what would happen, without saving.

resume_campaign

POST /api/v1/campaigns/{campaign_id}/resume · write

Resume a paused campaign: leads continue where they were and new leads in its lists are enrolled. dry_run says whether it can be resumed.

ParameterTypeDescription
campaign_idstringFrom create_campaign or list_campaigns
dry_run?booleanCheck everything and return what would happen, without saving.

get_campaign_stats

GET /api/v1/campaigns/{campaign_id}/stats · read

How a campaign is doing: leads by state, totals (invited, accepted, messaged, replied, rates) and per step and A/B version: people reached, accepted (invites), replied, with rates, plus leads waiting and queued per step. Use it to find the weakest message and rewrite it with update_campaign_step.

ParameterTypeDescription
campaign_idstringFrom create_campaign or list_campaigns