/claude-outreach:outreach-campaignfrom claude-outreach
Creates and launches an Emelia email or LinkedIn campaign: loads contacts with custom variables, sets cadence/sending window/accounts, runs a pre-flight checklist, and starts the campaign after user confirmation. Writes campaign.json with real identifiers.
Ships in claude-outreach. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Turns the files produced by the earlier steps into a live Emelia campaign: a list that holds the contacts, a campaign that holds the sequence, the two wired together, the cadence set, and the launch done only after you say yes in plain words.
It records every real identifier in outreach/campaign.json so the next steps
(outreach-replies, outreach-audit) can find the campaign without asking you again.
Run it when the list is verified and the copy is written, as step 9 of a full run. It calls the deliverability gate first and stops if the answer is BLOCKED.
Use a different skill when you want to design the sequence rather than create it
(outreach-sequence), write or fix the copy (outreach-write), add contacts to a
campaign that is already running (come back here, section 3, the list is the way in), or
read what happened after the launch (outreach-audit).
outreach/deliverability.md. Read the ## Verdict line first. If it is missing,
run outreach-deliverability now. If it says BLOCKED, stop and show the fix list.outreach/leads.csv. One row per contact, verified. Must carry at least email
for an email campaign, or linkedinUrlProfile for a LinkedIn campaign. If the
verification column is missing, stop: sending to an unverified list is a refusal.outreach/sequence.md. The copy, step by step, with the variables.outreach/campaign.json. The sequence spec written by outreach-sequence. If it
does not exist, build it here from sequence.md and confirm it with the user.EMELIA_API_KEY, or the Emelia MCP server. Without either, produce every file and
the exact calls it would have made, and say plainly that nothing was created.grep -A2 '^## Verdict' outreach/deliverability.md
BLOCKED means stop. Not "warn and continue". Show the blockers and the fix list, and offer to re-run the audit once they are fixed.
READY WITH LIMITS means continue with the daily cap that file states, and carry that number into the cadence in section 6 rather than the one the user asked for.
Contacts do not live in a campaign. They live in a list, and a list is attached to one or more campaigns. Get this right and the rest of the product makes sense.
Read the existing lists first, then create one if you need it:
curl -s https://api.emelia.io/lists/list -H "Authorization: $EMELIA_API_KEY"
curl -s -X POST https://api.emelia.io/lists/list \
-H "Authorization: $EMELIA_API_KEY" -H "Content-Type: application/json" \
-d '{"name":"Q4 SaaS founders"}'
The create returns {"success": true, "listId": "...", "name": "..."}. Keep the campaign
name and the list name identical, it saves an hour later. That listId is the same id
the campaign routes take, there is no import step between the two.
Read the columns of the lists you did not build. Every list in the GET above carries
a columnPreferences array, and that array is the list of variables the copy can use. A
key that starts with custom is a custom variable: strip that prefix and lowercase the
next letter to get the name the message uses, so customIcebreaker is
{{icebreaker}}. A list that already carries message columns has been written for a
previous campaign, under this repository's names (subject_line, message,
message_2...) or under older ones (email1message and the like). Always write this
repository's names and point the steps at exactly those: a column a step does not name is
never read, and a step that names a column the contacts do not carry renders empty with
no error. Read the columns first, so you know which of the two you are looking at.
Never reuse a list that already feeds another running campaign unless that is what the user asked for: every contact in it would enter the new campaign too.
One call carries up to 100 contacts. With MCP it is add_contacts_to_list_bulk with
{ listId, contacts: [...], updateIfExists: true }, the same route underneath:
curl -s -X POST "https://api.emelia.io/lists/list/<listId>/contacts/batch?updateIfExists=true" \
-H "Authorization: $EMELIA_API_KEY" -H "Content-Type: application/json" \
-d '{"contacts":[
{"firstName":"Claire","lastName":"Fontaine","email":"[email protected]",
"companyName":"Nexora","companyDomain":"nexora.fr",
"linkedinUrlProfile":"https://www.linkedin.com/in/clairefontaine",
"icebreaker":"The move to Postgres 16 went live last month."}
]}'
Prénom lands in firstName, Ville in
city, Poste in jobTitle, Secteur in industry, Société in companyName,
Site Web in websiteUrl, Domaine in companyDomain. A prefix or a suffix of a
field name can match as well;id becomes a custom variable without its value being looked at;phone. An unknown key whose value looks like one of those never becomes
a custom variable;createdCustomVariables (below) and write the copy
with that name. A declared variable whose name is already a clean identifier
(a letter, then letters, digits or _) keeps it.firstName, lastName, fullName, email,
secondaryEmail, phone, mobilePhone, jobTitle, gender, age, birthDate,
language, profilePictureUrl, linkedinUrlProfile, twitterUrl, country,
region, city, postalCode, address, timezone, seniority, department,
jobStartDate, yearsOfExperience, education, skills, bio. On the company:
companyName, companyDomain, companyEmail, websiteUrl, logoUrl, industry,
companySize, companyType, country, region, city, postalCode, address,
timezone, employeeCount, foundedYear, annualRevenue, linkedinCompanyUrl,
twitterCompanyUrl, notes, tags. Accepted on import does not mean usable in a
message: section 5 lists the ones a variable resolves.greeting and every carrier the steps will name: subject_line, message,
message_2, subject_line_3, message_3, message_4, plus li_message,
li_message_2... on LinkedIn. With MCP it is create_custom_variable with
{ technicalName, schema: "lead", displayName }. Over REST, POST /lists/custom-variable with
{"technicalName": "company_siren", "schema": "lead", "displayName": "SIREN"}, once per
variable (schema is lead or company). It answers 201 when it creates the
variable and 422 when it already exists, so call it on every run; a 422 also comes back
when the name is a standard field, which means you did not need a custom variable. A
declared name keeps its underscores. GET /lists/custom-variable/check with
?technicalName=company_siren&schema=lead says whether one exists.outreach/leads.csv is in the mapping table of
outreach-leads, section 0: the standard ones under their
Emelia name (first_name as firstName, phone as phone and never mobilePhone,
or the list shows zero phones and deduplication ignores them), everything else as a
custom variable you declared. Spell the keys exactly as the copy spells the variables:
{{firstName}}, {{icebreaker}}, {{company_siren}}.JEAN or
MARIE CLAIRE, and "Bonjour JEAN" ruins an email. Normalise first_name and
last_name before this load, with the rule in the column contract of
outreach-leads.?updateIfExists=true, a query parameter and never a body key, turns a duplicate into
an update. Without it, a contact already in the list is left as it is and reported as a
duplicate, not re-created.created, duplicates, updated and failed counts plus a per
row result, indexed on the position in the array you sent, so each result maps back to
its row. It also returns createdCustomVariables, where technicalName is the name to
put in the copy. Read the failed rows and report them. Never say "1,180 contacts
loaded" when 41 rows failed on a malformed address.linkedinUrlProfile. Send it under that exact name rather
than counting on an alias or on value sniffing, which only fills a field still empty.
When the profile lands anywhere else, every LinkedIn branch of the campaign finds an
empty profile and never fires, and nothing raises an error.GET /lists/list/<listId>/rows?page=1&pageSize=50 returns the company nested under
company and the custom variables in a customFields array. pageSize caps at 100.There is also a single contact route, POST /advanced/lists/contacts with
{"id":"<listId>","contact":{...}}. Use it to add one row to a list that already feeds a
running campaign, never to load a file: at one call per contact it burns the rate limit of
the plan for nothing. Three traps on that one, all of which fail a row rather than the
batch:
linkedin.com/sales/lead/...) is converted to a
linkedin.com/in/... URL when it can be. Anything else that is not a
linkedin.com/in/ URL is rejected.Pace the loop. Rate limits are per key per minute: 30 without a subscription, 100 on Start, 300 on Grow, 1000 on Scale. A 1,200 row list is 1,200 REST calls, so on Start that is 12 minutes of sending at a steady rate. With MCP it is 12 calls.
A list attached to a running campaign feeds it continuously. Add a contact to that list tomorrow and the contact enters the campaign tomorrow, at step 1, without touching the campaign. That is how you keep a campaign alive: you add to the list, never to the campaign.
The consequences, all of which surprise people the first time:
message
gets an empty email, and nothing warns you. So once the campaign runs, load each
contact with all its messages in the same call, never the contact first and the
messages afterwards. If you cannot, pause the campaign (pause_campaign, or
POST /advanced/campaigns/{id}/pause) or detach the list before loading, and start
again once every row is complete. Pausing deletes the pending actions, conditions and
manual tasks; they are created again when the contacts reach those steps after the
restart.update_contact, or a batch with updateIfExists=true) is copied to the campaigns
that use the list asynchronously, and a list you just attached takes a moment to show
up as recipients (recipients.processing is true meanwhile). Before a launch, read the
campaign side back (section 7), not only the list.POST /advanced/campaign/contacts with { "id": "<campaignId>", "contact": {...} }
does exist and pushes one contact straight into a campaign. Use it only for a one off
addition: those contacts are not in a reusable list, so you cannot re-target them
later without rebuilding them.Say this out loud the first time you create a campaign for someone. It is the single thing that makes the rest programmable.
Every campaign, whatever its channels:
curl -s -X POST https://api.emelia.io/advanced/campaigns \
-H "Authorization: $EMELIA_API_KEY" -H "Content-Type: application/json" \
-d '{"name":"Q4 SaaS founders"}'
# {"success":true,"campaignId":"6612f0a9b1c2d3e4f5a6b7c8"}
Email only, LinkedIn only or both, it is this route. A LinkedIn only campaign is an
advanced campaign whose tree has no email step, for example the pure-linkedin or the
linkedin-premium-or-sales-navigator template of outreach-sequence, pushed in
section 5. A sequence of four plain emails is an advanced campaign too. With the MCP
server, create_campaign with { name } calls this same route and creates the same
advanced campaign.
Never create a campaign with the old platform routes, POST /emails/campaigns or
POST /linkedin/campaigns. They still work, and what they create lives on the old
platform. If the user already runs a campaign there, read and manage it with the legacy
routes listed in the dispatcher, and suggest moving it to an advanced campaign built
from the matching template.
The campaign is created empty, with a default schedule and empty steps. name is
the only field that endpoint takes, but everything else is set right after, by API.
PATCH /advanced/campaigns/{campaignId}/steps with the tree wrapped in an object:
{"steps": { ... }}, not an array. Read the campaign back first with
GET /advanced/campaigns/{campaignId} so you change what you mean to change, then push,
then read it back again and compare it to outreach/campaign.json.
The tree is a linked structure, not a list: it starts at a START node and each node
carries the next one, with yes and no branches on a condition. The five shipped
templates in outreach-sequence are the reference for what a valid tree looks like.
Steps, recipients and identities are replaced whole. Settings are merged. On the
first three there is no partial update: what you send becomes the block, and what you
leave out is gone. Sending only the step you wanted to change deletes the rest of the
sequence. Sending one list in lists detaches all the others, and one identity drops the
others. So the only correct shape for those three is read, modify, send back:
GET /advanced/campaigns/{id} the whole object
change the one field, in the object you just read
PATCH /advanced/campaigns/{id}/steps send the entire tree back
Settings work the other way, verified in the product on 29 September 2026: the fields you send are merged into the current schedule, and a field you leave out keeps its value. Nothing is reset to a default. Section 6 lists the fields that call still requires every time.
Step and version ids are MongoDB ObjectIds: 24 lowercase hex characters, for example
66f2b4c19e7a3d5b8c0e1f24. Never a UUID. Omit _id on a new tree and the server
generates a real one for every step and every version; the only _id you write by hand
is "START" on the root. If you have to write one, generate it, one per step and per
version: crypto.randomBytes(12).toString('hex') in Node, secrets.token_hex(12) in
Python. The API saves a UUID or a label such as "e1" without a word, and the campaign
breaks once it runs: an email or an invitation on that step never goes out and its
contacts pile up there, a LinkedIn message goes out again at every pass, and the
conditions after it wait forever. outreach-sequence, section 2, has the whole rule and
the repair for a campaign already built that way, and the pre-flight in section 7 blocks
on it.
On a campaign that has already sent something, keep the _id of every step and every
version you are not changing: activities, per version statistics and each contact's
position in the sequence hang off those ids, and new ids restart people mid sequence. A
step you add goes in without an _id, or with one generated as above.
And a campaign that is RUNNING refuses every one of these calls with
You must pause your campaign before updating it: the steps, the settings, the
identities, the recipients and even the name. Pause, patch, start again, and keep the
_id of every step you did not change.
What goes in an email step. It depends on the mode in the header of
outreach/sequence.md. In Mode A the subject and the body are the carrier variables, and
nothing else:
subject: {{subject_line}}
body: <p>{{message}}</p><p></p><p>{{signature}}</p>
A follow up written per contact carries its own variable the same way: {{message_2}}
with an empty subject to stay in the thread, {{subject_line_3}} and {{message_3}} for
the new thread of step 3, {{message_4}}: the same names as the columns of
outreach/leads.csv, letter for letter. A shared follow up, and every step of Mode B,
carries the written text of sequence.md turned into <p> paragraphs, opening on
<p>{{greeting}}</p>, with its small variables where the copy puts them, then
{{signature}}. Never Hi {{firstName}}, typed in a step: on a contact with no first
name it sends "Hi ,", and {{greeting}} is there for that.
The pitfalls of a value sent through a variable, each checked against the sending engine:
\n\n inside a value into
</p><p></p><p> and \n into </p><p>, so <p>{{message}}</p> gives clean
paragraphs, and a variable glued to other text in the same <p> breaks the paragraph
around it.&, < and > in a body value, never in a subject. The value is pasted into
the HTML as it is, so a raw < can swallow the rest of the email; the subject is plain
text, so R&D there would show as typed. And a subject stays on one line: a line
break in a subject value comes out as </p><p> in the subject.{ or a } in a value is read as a tag or
a spin and part of the sentence disappears. scripts/first-messages.py merge removes
them, and the pipe too.{{signature}} in the step before it substitutes the variables, and unwraps it when it
stands alone as <p>{{signature}}</p>; a {{signature}} inside a value is substituted
later, as a variable no contact carries, and renders empty.Re: in front.From step 2 the opt out link is appended, as a real anchor:
<p></p><p><a target="_blank" rel="noopener noreferrer" href="{{unsubscribe_link}}">Se désabonner</a></p>
The body is HTML. Paragraphs are <p>, an empty line is <p></p>, and a \n typed in
the body renders as nothing, which turns the whole email into one block.
Inside a variable's value it is the opposite: a \n becomes a paragraph break. The
sending engine converts \n\n to </p><p></p><p> and \n to </p><p> when it
substitutes a value. That is exactly why the carrier pattern works: you write the message
into message as plain text with ordinary line breaks, and it comes out as
paragraphs. Write HTML in the body, plain text with \n in the variable, and never the
other way round.
Variables are double braces, {{firstName}}. A name that does not resolve renders
empty, silently, with no error, so the campaign sends "Bonjour ," rather than failing.
Double braces take no filter and no default: {{ firstName | default: "" }} does not
work. A default is written in Liquid, which runs after the double braces are substituted,
with {# and #} as its output tag and the usual {% %} tags. On a custom variable it
works everywhere: {# icebreaker | default: "..." #} and
{% if icebreaker %}...{% endif %}. On a standard field (firstName, lastName,
companyName, jobTitle...) or a company field, it depends on the version of the sending
engine: recent versions read the field, older ones read it as empty, which makes
{# firstName | default: "there" #} say "there" to everyone. Until you have seen it
render correctly in a test email, take the route that works in both cases: copy the value
into a custom variable you declared and put the Liquid on that one, or branch with a
CONDITION on $firstName with IS_EMPTY (details in outreach-personalize,
section 4). A malformed Liquid tag makes the engine delete every Liquid block of the
message without a word, so preview each one in a test email. Guaranteeing the data is
still the better practice: every variable a step uses should be filled on every contact
of the list, which is what the pre-flight below checks.
Only a fixed set of contact fields resolve at the root: firstName, lastName,
fullName, email, secondaryEmail, phone, mobilePhone, jobTitle, seniority,
department, gender, age, language, linkedinUrlProfile, twitterUrl, country,
region, city, postalCode, address, timezone, yearsOfExperience, education,
bio and companyName. Resolution then falls through to your custom variables, then to
the linked company, where companyCity and companyCountry reach the company's own
fields since the bare names belong to the contact. A field that exists on the contact but
is not in that list, birthDate or skills for instance, renders empty in a message
even though the API accepted it on import.
The shapes Emelia uses:
stepType is one of START, EMAIL, CONNECTION, MESSAGE, INMAIL, VISIT,
LIKE, TASK, CONDITION, END_OF_CAMPAIGN. The LinkedIn ones carry no LINKEDIN_
prefix, and there is no WAIT step: waiting is the delay of the next step.
FOLLOW, AUDIO and API_CALL are accepted when you save the sequence, but nothing
runs them and the step is never marked as done: never use them. A LinkedIn voice note
is a MESSAGE step, see outreach-sequence, section 2.delay is { "amount": 3, "unit": "DAYS" }, and unit is DAYS, HOURS or
MINUTES. The delay is counted from the previous step, not from the start.versions, one per A/B variant, each with subject, message
and disabled.CONDITION step branches on a field with an operator among EQUAL, GREATER,
LOWER, CONTAINS, IS_EMPTY, DOES_NOT_CONTAIN, DOES_NOT_EQUAL, IS_NOT_EMPTY.
The field is either an activity (ACCEPTED, BOUNCED, ...) or a contact field written
with a leading $ ($email, $linkedinUrlProfile). Anything else, {{email}} for
instance, is read as an unknown activity and answers no for every contact, with no
error. outreach-sequence, section 3, has both families.Four rules Emelia enforces when you press Launch, so check them now rather than there:
outreach-deliverability for why it should not.And one rule nothing enforces: every version of a LinkedIn MESSAGE step is sent, one
after the other, as separate messages. Several versions there are not an A/B test: one
version per LinkedIn step, always.
Variables, exactly as the engine resolves them:
{{firstName}}, {{lastName}}, {{fullName}}, {{email}}, {{phone}},
{{jobTitle}}, {{companyName}}, {{city}}, {{country}}, {{linkedinUrlProfile}}
and the rest of the contact fields, plus every custom key you loaded in section 2.{{unsubscribe_link}} renders the opt out URL and feeds the List-Unsubscribe header.
Put it from step 2 onwards, not on step 1: the first touch stays as short as
possible. Note the trade off, the List-Unsubscribe header is only set when the
variable is in that step's body, so step 1 goes out without it.{{SENDER}} is not resolved by the sending engine and renders empty. Write your own
name in the copy instead.city is used only for the
contacts whose own city is empty.Three more calls, all by API:
PATCH /advanced/campaigns/{id}/settings with {"settings": { ... }}. The fields you
send are merged into the current schedule and the ones you leave out keep their value.
Four rules still apply, verified on 29 September 2026: trackLinks, trackOpens and
blacklistUnsub are required booleans, and the call fails without them, so send
them even when you are not changing them; start and end are read on every call, so
send them too (HH:MM, start before end); dailyEmailLimit below dailyEmailAdded is
refused; and a RUNNING campaign refuses any update until you pause it. A name in
that object renames the campaign, like PATCH /advanced/campaigns/{id}/name with
{"name": "..."}.PATCH /advanced/campaigns/{id}/recipients with {"lists": [...], "excludedLists": [...]} at the top level of the body. lists is required even when empty, and both
arrays replace what was there.PATCH /advanced/campaigns/{id}/identities with {"identities": [...]}, each entry
carrying a name and at least one of email or linkedin, whose values are the
provider ids, not the addresses.The settings fields, with the values the product accepts:
| Setting | Accepted | What to set for cold outreach |
|---|---|---|
name | text | Renames the campaign |
dailyEmailAdded / dailyEmailLimit | 1 to 500 | The number from the deliverability ramp, per mailbox. Not 500. dailyEmailLimit at or above dailyEmailAdded, or the call is refused |
dailyLinkedinAdded | 1 to 80 | 40 maximum when the sequence contains a connection request, 80 otherwise. Emelia rejects the launch above that. |
days | 0 to 6, Monday is 0 | Monday to Friday only, [0, 1, 2, 3, 4] |
start / end | HH:MM | The recipient's working hours, not yours |
timeZone | IANA name | The recipient's zone |
trackOpens | boolean | Off. Apple already broke the number. |
trackLinks | boolean | Off on a cold first touch |
blacklistUnsub | boolean | On. An unsubscribe click blacklists the address account wide. |
ignoreAutoReplies | boolean | On. Out of office answers stop counting as replies and stop stopping the sequence. |
excludeAlreadyMessaged | boolean | On, unless you deliberately want a second campaign to reach the same people |
eventToStop | list of events | At minimum the reply events, so a person who answers stops receiving follow ups. A listed event stops every later action of that contact, LinkedIn included, so add BOUNCED only when no condition in the tree branches on BOUNCED: in smart-multi-channel it would kill the LinkedIn fallback of the bounced contacts |
bcc | address | Your CRM dropbox if you have one |
Sending accounts are called identities: one email mailbox, optionally paired with a LinkedIn account. Attach as many as the ramp plan requires. Every identity must have an email provider attached when the campaign has an email step, and a campaign with a LinkedIn step needs either one shared LinkedIn account or one per identity.
GET /email-providers lists the mailboxes. The address is in senderEmail, not email,
and the id you attach is _id. Skip any entry whose disabled or disconnected is
true, and read customDomain.status: OK means that mailbox has its own tracking
domain, which is what makes the opt out link and the click tracking work on its sends.
Never attach every mailbox the account holds. An agency account, and any account that has ever run a campaign for someone else, carries several sending domains belonging to different senders. Attaching all of them sends this campaign's cold email from a stranger's domain and burns a reputation that is not yours to spend. Filter to the domains that belong to this campaign's sender, list the addresses back to the user, and get a yes before you patch. The same account can legitimately hold the same address more than once, so deduplicate on the id.
An empty identities array is accepted with a 200 and leaves the campaign unable to
send. So is an array built from a field name that does not exist, which is the same
thing with extra steps. Read the campaign back after patching and count the identities.
Get the real identifiers rather than guessing them:
| What you need | Where it comes from |
|---|---|
| Email mailbox id | GET /email-providers, field _id on each provider |
| LinkedIn account id | GET /linkedin-scrappers/authes, field _id, only entries whose status is valid |
| Tracking domain status | GET /domains, a domain counts only when its status is OK |
outreach-deliverability already collects all three when it runs, so read its output
before calling these again. The LinkedIn response also carries a live session token:
read the id and the status, and never print or store the rest.
Then PATCH /advanced/campaigns/{id}/identities with {"identities": [...]}, where
each entry carries a name and at least one of email or linkedin.
Recipients: attach the list from section 1. Confirm the contact count Emelia shows matches the rows you loaded. A campaign is capped at 30,000 recipients.
Signed in with OAuth, the shell holds no key: none of the curl calls above can run, and
neither can scripts/preflight-campaign.py. Every route of this skill has an MCP tool,
and the build is the same, in the same order. Tell the user you are building through the
MCP server, then:
list_lists, then create_list { name } if the list does not exist yet. Name it like
the campaign.create_custom_variable { technicalName, schema: "lead", displayName } for every
custom variable the steps will name, carriers included (check_custom_variable says
whether one exists). A 422 means it is already there.add_contacts_to_list_bulk { listId, contacts, updateIfExists: true }, 100 contacts
per call, each with every column the steps need, messages included. Report the
created, duplicates, updated and failed counts, and read the names in
createdCustomVariables.create_campaign { name }. Keep the id it returns.get_campaign_sequence_guide once, then get_campaign { campaignId } to read the
default tree, then update_campaign_steps { campaignId, steps } with the whole tree:
no _id anywhere except "START" on the root.update_campaign_settings { campaignId, settings }, with the fields and rules of
section 6: trackLinks, trackOpens, blacklistUnsub, start and end in every
call.list_email_providers, and list_linkedin_accounts when the sequence has a LinkedIn
step. Show the addresses you picked, get a yes, then
update_campaign_identities { campaignId, identities: [{ name, email, linkedin }] },
where email and linkedin are ids, not addresses.update_campaign_recipients { campaignId, lists: [listId] }. Attaching a list takes in
the contacts it already holds, so the list can be filled before or after it is
attached, as long as the campaign is not running and every contact carries its
messages.send_campaign_test_email { campaignId, stepId, versionId, email }, once per email
step and per version.start_campaign { campaignId },
then get_campaign again to read RUNNING.pause_campaign, rename_campaign, schedule_campaign_start and
list_campaign_contacts cover the rest. Steps, identities and settings can only change
while the campaign is not RUNNING: pause first.
Run the mechanical half first, against the campaign as Emelia now holds it, not against your files. With the key:
python3 scripts/preflight-campaign.py <campaignId>
It reads the campaign back, walks the tree including the branches, and checks what a
200 response will not tell you: an identity is attached, a list is attached and holds
contacts, every step _id is 24 lowercase hex characters and appears once in the tree,
no body is empty or missing its <p> paragraphs, the first email has a
subject, no filter sits inside double braces, {{signature}} is lowercase, no condition
tests a field the engine cannot read, and every {{variable}} any step uses, email and
LinkedIn, resolves on every contact. That last one is the check that matters. It
reads all the contacts of the campaign, page after page, with the custom values the
engine will actually send, and all the rows of the attached lists for the standard and
company fields that listing does not return. It then tells you a variable is empty on 25
of 1,139 contacts, which is 25 emails with a hole in them and no error anywhere.
A carrier is blocking. A step whose body is one variable and nothing else (once
{{signature}}, the opt out anchor and the tags are set aside) is a carrier, which is
Mode A. A carrier empty on a single contact is an empty email or an empty LinkedIn
message for that contact, so the script blocks, and so do you: write those rows or
remove those contacts before the launch, no exception. The same goes for a subject made
of one variable.
It also warns when a LinkedIn message step carries several versions (they all go out,
one after another, which is not an A/B test), when a body uses Liquid, which you then
preview, when Liquid reads a standard or company field (see section 5), and when
eventToStop holds BOUNCED while a condition branches on it. A column hidden in the
list table of the app is missing from the API rows, so a variable empty on every row may
be hidden rather than empty: the script says so. It exits non zero when something
blocks.
Without a key, the same pre-flight with the MCP tools. Signed in with OAuth, the script cannot run, so do its work yourself, in this order, and report it the same way:
get_campaign { campaignId }. Check the identities, the attached lists, every step
and version _id (24 lowercase hex characters, each once, "START" on the root
only), every body (not empty, <p> paragraphs, {{signature}} lowercase, an opt out
anchor from step 2 on), the subject of the first email, no | or default: inside
double braces, and every condition field (an activity, or a field written with $).{{name}} of every version of every step, email and LinkedIn, and mark
the carriers as above.list_campaign_contacts { campaignId, page: 0, perPage: 1000 }, then page: 1,
page: 2... until you hold count contacts. page is zero based. Each contact
carries its custom variables in custom, and firstName, lastName, email,
phone and linkedinUrlProfile at the top. Count, for each variable, the contacts
where it is missing or blank. All of them, never a sample.jobTitle, companyName,
city...) and the company fields, get_list_contacts { listId, page: 1, pageSize: 100 }
on each attached list, page after page until total.count is 0 while the
lists hold contacts, the recipients are still being set up: wait a minute and read
again.What the test email proves, and what it does not.
POST /advanced/campaigns/{id}/test-email, or send_campaign_test_email with MCP, takes
exactly this body, the ids coming from GET /advanced/campaigns/{id}:
{ "stepId": "<_id of the email step>", "versionId": "<_id of the version>", "email": "[email protected]" }
It sends one version of one email step, to that address, from one of the campaign identities, with the variables of a contact picked at random in the campaign. You do not choose the contact. So it proves the layout, the signature, the links and that the variables resolve on that one contact, and nothing about the others: that is what the count above is for. Send one per email step and per version, only to an address of the user, since it lands in a real inbox.
Then the half a script cannot do:
| Check | How | Pass condition |
|---|---|---|
| Offer approved | outreach/offer.md and the header of outreach/sequence.md | the user said yes to the sender block and the why of each target before any message was written: a false sentence in them is in every message |
| Deliverability | ## Verdict in outreach/deliverability.md | READY, or READY WITH LIMITS and the cadence set to that cap |
| List verified | the verification column in outreach/leads.csv | every row verified, invalid rows removed |
| Unsubscribe | grep the copy | {{unsubscribe_link}} present from step 2 onwards, as a link and not a bare variable |
| Variables resolved | the count on every campaign contact, above | 0 blanks, or a fallback written into the copy. In Mode A, 0 blanks on every carrier, without exception |
| Test email | one per email step and version, to the user's own address | received, read on a phone, signature and links working, the random contact it used reads right |
| Subject on step 1 | GET /advanced/campaigns/{id} | not empty |
| Body is HTML | GET /advanced/campaigns/{id} | every step body contains <p>, and no raw \n |
| Variable syntax | GET /advanced/campaigns/{id} | variables as {{name}}, with no pipe and no default: inside the double braces. A {# #} or {% %} block on a standard field was seen rendered correctly in a test email, or moved onto a custom variable |
| Carrier columns | the campaign contacts, above | every subject_line, message, message_2... the steps reference is filled on every contact |
| Greeting | one rendered sample | the message opens with a greeting, not with the first sentence |
| Subscription | Emelia account | active, the product refuses to start a campaign without one |
| Identities | GET /advanced/campaigns/{id} | at least one, none disconnected or expired |
| Recipients | get_campaign | above 0, at most 30,000, and at least one contact reachable on each channel the sequence uses |
| Schedule | GET /advanced/campaigns/{id} | set, with days and hours |
A blank variable is the most common way a good campaign embarrasses someone. Count them
per variable and show the count. If {{icebreaker}} is empty on 34 rows, either write
those 34 or cut them from this campaign.
Show the summary and stop:
Campaign Q4 SaaS founders (6612f0a9b1c2d3e4f5a6b7c8)
List Q4 SaaS founders (65f1a2b3c4d5e6f7a8b9c0d1), 1,139 contacts loaded, 41 rejected
Sequence 3 steps (2 emails, 1 LinkedIn visit), 4 days end to end
Mailboxes [email protected], [email protected]
Cadence 20 per mailbox per day, Mon to Fri, 09:00 to 17:00 Europe/Paris
First send tomorrow 09:00
Ends around 2026-04-24
Tracking opens off, links off, unsubscribe link present in both email steps
Launch? This sends real email to 1,139 people.
Wait for an explicit yes. Not "ok next", not silence. Then start it with
POST /advanced/campaigns/{id}/start, which takes no body, or let the user press Launch
in the app if they would rather do it themselves. Either way, read it back with
GET /advanced/campaigns/{id} (or get_campaign) and check that status is RUNNING.
If it is not, read the error, fix the cause and ask again before a second start. Then
update outreach/campaign.json with the real identifiers before you report back.
outreach/campaign.json, enriched in place. The emelia block is what the later skills
read.
{
"name": "Q4 SaaS founders",
"channel": "email",
"emelia": {
"campaignId": "6612f0a9b1c2d3e4f5a6b7c8",
"listId": "65f1a2b3c4d5e6f7a8b9c0d1",
"status": "RUNNING",
"startedAt": "2026-03-13T08:00:00.000Z",
"identities": ["[email protected]", "[email protected]"]
},
"contacts": { "loaded": 1139, "duplicates": 12, "failed": 41, "source": "outreach/leads.csv" },
"schedule": {
"dailyEmailAdded": 20,
"days": [0, 1, 2, 3, 4],
"start": "09:00",
"end": "17:00",
"timeZone": "Europe/Paris",
"trackOpens": false,
"trackLinks": false,
"blacklistUnsub": true,
"ignoreAutoReplies": true
},
"steps": [
{ "stepType": "EMAIL", "delay": { "amount": 0, "unit": "DAYS" },
"versions": [{ "subject": "{{subject_line}}", "message": "<p>{{message}}</p><p></p><p>{{signature}}</p>" }] },
{ "stepType": "EMAIL", "delay": { "amount": 3, "unit": "DAYS" },
"versions": [{ "subject": "", "message": "<p>{{greeting}}</p><p></p><p>...</p><p></p><p>{{signature}}</p><p></p><p><a href=\"{{unsubscribe_link}}\">Unsubscribe</a></p>" }] },
{ "stepType": "VISIT", "delay": { "amount": 1, "unit": "DAYS" }, "versions": [] }
],
"preflight": {
"deliverability": "READY WITH LIMITS",
"listVerified": true,
"blankVariables": { "greeting": 0, "subject_line": 0, "message": 0 },
"testEmailSentTo": "[email protected]",
"confirmedBy": "user, 2026-03-12T18:41:00Z"
}
}
campaignId and listId are real values returned by the API, never placeholders.contacts.failed and contacts.duplicates.status: "DRAFT".recipients.processing is true while it does. Wait and read
get_campaign again before doing anything else.email. Check one contact with
get_list_contacts using { listId, email: "..." } and fix the keys, then reload./failed-activities, or a contact receives the same LinkedIn message again. A step
_id is a UUID, a label or uppercase hex instead of 24 lowercase hex characters. The
pre-flight names the step; pause and repair the tree as outreach-sequence, section 2,
says. Starting the campaign again changes nothing.This skill does not write the copy and does not judge whether the sequence is any good.
It creates the campaign, pushes the steps, the settings, the list and the sending
accounts, and starts it, all through the API, but it cannot connect a mailbox or a
LinkedIn account and it cannot take out the subscription a start requires: those happen
in the Emelia app, and the skill says so when one of them is missing. It never creates a
campaign on the old platform. It does not verify email addresses (outreach-verify
does) and does not design the A/B test (outreach-sequence does). It will not launch on
a BLOCKED verdict, on an unverified list, or without an explicit yes, and no phrasing of
the request changes that.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub emelia-io/claude-outreach --plugin claude-outreach17 skills in this plugin
/outreachUniversal B2B outreach skill. Define an ICP, build and clean a lead list, find and verify professional emails and mobile numbers, write and personalize a multichannel sequence, check deliverability, launch the campaign, handle replies, and read the results. Works with the Emelia MCP server or REST API, the Basile API for French B2B data, or a plain CSV. Triggers on: outreach, cold email, prospecting, lead list, lead generation, email finder, email verification, phone finder, sequence, campaign, follow-up, deliverability, warmup, SDR, ICP, personalization, reply handling./outreach-auditAudits the content of the emails in an outreach sequence, step by step, and says what is costing replies. Reads outreach/sequence.md or a live campaign pulled from the Emelia API, then checks nine things: one ask per email, the links that dilute it, whether the question can be answered with a thumb, length against a rendered line count, attachments, images, HTML weight, the signature, spam trigger words and hollow jargon. Gives a verdict per step, a verdict for the sequence and one priority fix. Writes outreach/audit.md. Triggers on: audit, audit my emails, review my copy, check my sequence, why no replies, is this email too long, too many links, one CTA, call to action, spam words, my email looks like a newsletter, attachment, signature, HTML email, review campaign copy, roast my cold email./outreach-deliverabilityAudits the sending setup before a campaign goes out: SPF, DKIM, DMARC and MX records read with dig, domain and tracking domain age, warmup state per mailbox, blacklist and health flags from Emelia, safe daily volume per mailbox and a week by week ramp plan, mailbox rotation, and the content patterns that push a cold email into spam. Returns one verdict, READY, READY WITH LIMITS or BLOCKED, with the exact list of things to fix, and writes outreach/deliverability.md. This skill is a gate: it is expected to say no. Triggers on: deliverability, spam, SPF, DKIM, DMARC, DNS, warmup, warm up, sender reputation, bounce, blacklist, inbox placement, landing in spam, daily limit, sending volume, ramp up, tracking domain, mailbox rotation, email health./outreach-enrichThe full enrichment waterfall on a lead list: filter first, find the missing emails, verify only the addresses that came from somewhere other than Emelia's finder, find mobile numbers only where they are worth 50 credits, then decide row by row who is sendable, who is on hold and who is dropped. Ends by routing the rows to separate destinations, one list per destination: addresses found go to the email campaign list, rows with no address but a valid LinkedIn profile URL are proposed as a separate LinkedIn campaign, and the rest is set aside and counted. Never pushes a whole enriched base into a single Emelia list. Runs under a credit budget fixed before the first call and stops when it is reached. Writes outreach/enrichment.json with every counter and updates outreach/leads.csv without losing a single original column, then fills the custom fields your sequence needs. Triggers on: enrich, enrichment, enrich my list, waterfall, find and verify, clean and enrich, contact data, credits budget, how much will this cost, prepare my list, custom fields, route the list, split the list, push to Emelia, LinkedIn campaign for the rest./outreach-filterClean and segment a lead list before a single credit is spent on it. Deduplicates by email, by company domain and by LinkedIn profile, handling the awkward cases (subdomains, plus aliases, apostrophes and accents in names, Sales Navigator URLs that never string match a public profile), excludes existing customers, competitors and blacklisted addresses using find_contact and the Emelia blacklist endpoints, drops generic mailboxes such as contact@ and info@ and the junior roles that cannot buy, checks that geography and headcount match the ICP, and splits what survives into segments that each deserve a different message. Reads outreach/leads.csv and outreach/icp.json, writes a smaller leads.csv plus a report of every row removed and why. Triggers on: filter, clean the list, dedupe, deduplicate, duplicates, remove customers, exclusion list, blacklist, suppression list, generic emails, contact@, role address, segment the list, segmentation, list hygiene, data quality, before enrichment./outreach-find-emailFind professional email addresses for the people on a lead list, one at a time or in bulk, with Emelia's email finder. Runs the three attempt fallback cascade that recovers the rows a single lookup misses: the domain first, then the company name, then the trade name. States the credit cost before spending anything, polls each job to completion, and records what was found, what was not and which attempt won in outreach/enrichment.json and outreach/leads.csv. What the finder returns is already verified and goes straight into a campaign, so it never needs a second pass through the verifier. Never guesses an address pattern and calls it found. Triggers on: find email, email finder, find emails, find the email of, email address, email lookup, email enrichment, enrich emails, missing emails, bulk email finder, retry the finder, email not found, get emails for my list.Other plugins' skills for the same job