Skip to main content

campaigns.create

Author Create a drip campaign from a built-in template. It is created as a DRAFT and contacts nobody until campaigns.start is called — creating and starting are separate decisions on purpose. The audience is chosen by tags, so the usual flow is run_search, then profiles.tag, then create a campaign targeting that tag. Template message nodes are created EMPTY and awaiting content — call campaigns.status to list them, then campaigns.set_message for each. campaigns.start refuses until they are filled. Audience is chosen by tags: tags to include, excludeTags to skip, and excludeContacted to avoid anyone another campaign already contacted. Set keepEnrolling for a LIVE campaign that keeps taking in anyone newly tagged, capped by dailyEnrollLimit per day. Chaining campaigns: end campaign 1 with a Tag step (e.g. “stage-2”) and make campaign 2 live with tags [“stage-2”] — people move on as they finish campaign 1. IMPORTANT: ‘message_blast’ and ‘re_engagement’ send a direct message before any connection request, so they only work on people the user is ALREADY connected to (1st degree). For 2nd or 3rd degree prospects choose a template that sends a connection request first — ‘warm_outreach’, ‘connection_followup’ and ‘sales_outreach’ all do. Check degree with linkedin.get_member_distance if unsure.

campaigns.delete

Author Delete a campaign permanently. This cannot be undone and there is no archive — the campaign, its flow and its per-prospect progress all go. Refuses with CAMPAIGN_RUNNING while the campaign is active: stop it with campaigns.stop first, so halting live outreach is never a side effect of tidying up. Tell the user what will be lost before calling this; the response reports how many prospects had already been contacted. Contacts nobody on LinkedIn.

campaigns.get

Author Read one campaign back in full: its audience, its flow, and the exact text of every message, comment and connection note in it. Use this before campaigns.start to show the user what the campaign will actually say — campaigns.status reports content only for nodes that are still EMPTY, so it cannot answer that for a finished campaign. Text comes back verbatim and unrendered, with {{firstName}} variables and [[ai:Name::prompt]] blocks exactly as stored, because a sample resolved for one prospect hides what everyone else receives. Each message reports its character count against the platform limit, and each AI block is checked: valid: false with problem: "missing-label" means the block has no “Name::” and will be silently dropped at send time, leaving a gap in the message. For a connection note, willSend: false means the note is stored but useTemplate is not set, so LinkedIn will never see it. Touches nothing and contacts nobody.

campaigns.list

Author List the user’s Linkedroid campaigns with their status and prospect counts. No inputs.

campaigns.list_node_types

Author The catalogue of campaign flow nodes: what each one does, what data it needs, how many inputs it takes and which output ports it has. Use this when you want a sequence no built-in template covers — read the catalogue, build a flow, then install it with campaigns.set_flow. For the usual sequences prefer campaigns.create with a template, which is already laid out and proven. Takes no arguments and touches nothing. No inputs.

campaigns.set_flow

Author Replace a DRAFT campaign’s flow with one you built. Validates the graph first and refuses anything that would fail silently — an unknown node type, an invented port, two edges out of one port, no start node, an edge to a node that does not exist. Returns warnings for nodes that are unreachable, and lists message nodes still needing text. Draft campaigns only: a running campaign tracks each prospect against a node id, so replacing its flow would strand them. Fields you omit from a node’s data take their documented defaults.

campaigns.set_message

Author Set the text of a message, comment, or connection-request note in a drip campaign. Templates are created with these EMPTY. A campaign cannot start until every message node has content; a connection note is optional, but for 2nd-degree prospects it is the first thing they see, so it usually matters most. Call campaigns.status to list nodes and see which are empty. Connection notes are capped at 300 characters by LinkedIn. Content is one string mixing three things: literal text, {{variable}} (firstName, lastName, company, location), and AI prompts written as [[ai:Name::prompt text]]. The “Name::” label is REQUIRED — an AI prompt without it is silently discarded and the text ends up empty. Example: “Hi {{firstName}}, [[ai:Intro::one warm line referencing their work at {{company}}, under 200 characters]]“

campaigns.set_schedule

Author Set the hours campaigns are allowed to act, or switch the schedule off. campaigns.status reports schedule.enabled: false, which means actions fire at whatever hour a campaign is started — including overnight, which is one of the more visible signs that outreach is automated. Until now that could be diagnosed and not fixed. Pass days with a window per weekday: dayIndex 0 is Sunday through 6 for Saturday, hours are whole numbers 0-23 in the user’s local time, and endHour must be after startHour (overnight windows are not supported). A weekday you leave out is unrestricted; set enabled: false on a day to block it entirely. Business hours on weekdays only is the usual choice. Changing this affects every campaign, not one, so confirm with the user first. Contacts nobody.

campaigns.stats

Author Progress for one campaign, or across all of them when campaignId is omitted: how many prospects have been contacted, how many failed, how many remain, and whether it is running. When called with a campaignId for a drip campaign it also returns outcomes: how many invitations and messages actually went out, how many were accepted and replied to, the rates for each, and a per-node breakdown including which way every branch sent people — which is what scores an ab_split. A rate over zero attempts is null, not 0%: nobody has been asked yet is a different answer from nobody said yes. outcomes is null for message campaigns, which keep no per-prospect history to derive results from.

campaigns.status

Author Whether each campaign is actually sending right now, and if not, why. Returns progress plus a blockedBy reason: COMPLETED, NO_PROSPECTS, PAUSED, or OUTSIDE_SCHEDULE. Use this before starting or stopping anything — a campaign can be ‘active’ and still send nothing because it is outside its scheduled hours, in which case starting it again achieves nothing and it will resume on its own. Also returns needsContent: message nodes with no text, which block the campaign from starting. Returns audience with the include/exclude tags actually configured — the audience itself is only resolved when the campaign starts.

campaigns.stop

Author Pause a running campaign. Prospects already part-way through keep their position and resume where they left off when it is started again. This does not cancel or delete anything.

campaigns.update

Author Rename a campaign, change which tagged prospects it targets, or switch it to or from LIVE (keepEnrolling, dailyEnrollLimit). The sequence itself cannot be rewired here — changing the flow mid-run would strand prospects on steps that no longer exist.

campaigns.start

Act — needs your approval Start or resume a drip campaign so it begins contacting the prospects queued in it. A LIVE campaign (keepEnrolling) may be started with nobody queued yet, or restarted after it has worked through everyone — it takes in people as they are tagged. This is the moment a campaign starts sending, so it needs the user’s approval like any other outbound action — building the campaign does not. Execution still obeys the user’s own schedule, daily safety limits and per-step delays — starting a campaign does not send everything at once. Fails with INCOMPLETE_CAMPAIGN if any message node is still empty — fill them with campaigns.set_message first.