Create campaign
create_campaignCreate a new campaign in LinkedNav. Returns the campaign ID. Supports "outreach" (LinkedIn connection requests + follow-ups; add leads with add_lead_to_campaign) and "message" (send a direct message to each recipient — either a fixed template OR, with messageMode "ai", AI-generated at send time from a prompt + the recipient's live profile / recent posts / prior conversation; add recipients with add_message_targets). Message campaigns have two IMMUTABLE send modes: "regular" (a DM to your existing 1st-degree connections) or "inmail" (a Sales Navigator InMail to ANY profile — Pro only; recipients are Sales Nav lead URLs, or regular /in/ profile URLs when every sending account is a managed session). AI mode and follow-ups are Pro-only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| goal | No | Outreach only: campaign goal description (e.g. "Book a demo") | |
| name | Yes | Campaign name | |
| goalLink | No | Outreach only: URL for the campaign goal (e.g. calendar link) | |
| promptId | No | Message campaigns: REQUIRED — the prompt AI-generated messages are written from (list them with get_prompts). Ignored for outreach campaigns (attach their prompt with update_campaign). | |
| sendMode | No | Message campaigns only, IMMUTABLE after creation: "regular" (DM to 1st-degree connections) or "inmail" (Sales Navigator InMail to any profile — Pro only). | regular |
| followUps | No | Message campaigns (REGULAR DM) only, Pro only: the reply-gated follow-up sequence (Message 2 + Message 3). Ignored for InMail; enabling it without Pro errors. | |
| attachments | No | Message campaigns only: files sent with Message 1 (image/PDF/voice/video). Only live-session LinkedIn accounts can attach files. URLs must come from LinkedNav uploads — any other host is dropped. | |
| messageMode | No | Message campaigns: "template" (default) sends messageTemplate verbatim; "ai" generates Message 1 (and, for InMail, the subject) at send time from the prompt's First follow-up (Follow-up tab; campaign Message N always follows the prompt's Follow-up N) + its Context + the AI setup + the recipient's live profile / prior conversation (Pro only). AI mode needs a promptId and makes messageTemplate/inMailSubject optional. | |
| sendsPerDay | No | Max sends per day. InMail message campaigns cap at 500/day; outreach and regular message campaigns cap at 100/day (values above are clamped). Message default 10 in the wizard, but this tool defaults to 20. Higher volumes raise LinkedIn account risk. | |
| campaignType | No | "outreach" (default: connection requests + follow-ups) or "message" (fixed templated message). | outreach |
| inMailSubject | No | InMail-mode message campaigns only: the InMail subject line (supports {{firstName}} etc.). Required before a template-mode inmail campaign can send; AI mode generates the subject. | |
| messageTemplate | No | Message campaigns, template mode: the fixed message body sent to each recipient (supports {{firstName}} etc.). Required before a template-mode campaign can send; optional/ignored when messageMode is "ai". | |
| messageAiContext | No | Message campaigns, AI mode only: optional guidance for Message 1 — highest priority, followed over the prompt where they conflict. | |
| outreachLanguage | No | Outreach only: language for AI-generated messages | English |
| linkedinConnectionId | No | Message campaigns only: a single LinkedIn account to send from (shorthand for linkedinConnectionIds with one id). | |
| linkedinConnectionIds | No | Message campaigns only: the LinkedIn account(s) to send from (ids from get_linkedin_accounts). A REGULAR DM campaign uses exactly one account (only the first is kept — a connection belongs to one account); an INMAIL campaign can round-robin several accounts, and each should have a Sales Navigator seat (get_linkedin_accounts → salesNavigator.status). Can also be set later with update_campaign or activate_campaign. | |
| autoSwitchSalesNavContract | No | InMail message campaigns only: when a sender runs out of Sales Navigator InMail credits, automatically switch that LinkedIn account to another of its Sales Navigator contracts that still has credits and re-send (live-session accounts only; default false). Once a live-session sender has no credits left, Open Profiles still get a free InMail and people not checked yet get one free try; anyone else goes to another sender with credits or is marked failed "out of InMail credits" (retry them once credits renew). Check balances with get_inmail_credits. |