Outreach campaigns
An Outreach campaign is an automation workflow made from a list of steps, started on a CRM list of prospects. Each prospect it takes in gets one run of the workflow, going out from one of the campaign’s LinkedIn accounts (unipile.accounts.list). Reading needs outreach:read and changing outreach:write; the accounts a campaign sends from must be ones the caller may send from (their own, shared with them), or any with settings:write.
Campaigns
Section titled “Campaigns”| To | Operations |
|---|---|
| List them with their funnels, or get one with its sending accounts’ use today | GET /api/v1/outreach/campaigns, GET /api/v1/outreach/campaigns/{id} |
| The numbers across them, for a dashboard | GET /api/v1/outreach/campaigns/overview |
| Make one (from a template’s steps), change it, delete it with its workflow | POST /api/v1/outreach/campaigns, PATCH /api/v1/outreach/campaigns/{id}, DELETE /api/v1/outreach/campaigns/{id} |
| Start it, pause it, resume it | POST /api/v1/outreach/campaigns/{id}/start, POST /api/v1/outreach/campaigns/{id}/pause, POST /api/v1/outreach/campaigns/{id}/resume |
| Hand its workflow to the Automations editor | POST /api/v1/outreach/campaigns/{id}/open-in-automations |
template is post_engagers_video, connect_follow_up or connected_message. steps is a list in order, each with an id of your choosing:
kind |
Fields |
|---|---|
visit |
|
invite |
note (empty for none), acceptWithin { amount, unit }, withdraw |
wait |
amount, unit (minutes, hours, days) |
message |
text, inmail, subject |
email |
subject, body |
The steps after the invite run once the prospect connects, even in the middle of acceptWithin; someone connected already starts there. A campaign sends one connection request at most. Texts take merge tags: {{first_name}}, {{last_name}}, {{name}} (or {{full_name}}), {{company}}, {{headline}}, {{prospect.comment}}, {{post_url}}, {{my_first_name}}, {{video.link}} and {{video.thumbnail}}, each with an optional fallback after a bar for a prospect who has no value: {{company|your team}}. videoTemplateId names the video each prospect gets a page of, made just before the first step that links it. exits (linkedinReply, emailReply, booked) end a prospect’s run early; opting out always does. A campaign’s issues say what stops its steps from running; it can’t start with any.
Its workflow is written from the steps as they change: while it runs, prospects taken in afterwards get the new steps and those going keep theirs. After POST /api/v1/outreach/campaigns/{id}/open-in-automations, editedInAutomations is true and its steps are changed with the Automations operations instead.
Starting turns the workflow on and takes in the list’s prospects, up to 1,000 at a time (remaining says how many more there are). It answers how many it took in and, by reason, who it left out: in another running campaign, on the do-not-contact list, without a LinkedIn profile, or in it already. Pausing pauses the workflow and holds the campaign’s actions still in its accounts’ queues; resuming lets them go. A campaign with nobody left going is finished; adding prospects runs it again.
Prospects
Section titled “Prospects”| To | Operations |
|---|---|
| List them with where each run is and what it does next | GET /api/v1/outreach/campaigns/{id}/prospects |
| Take more in, or take some out | POST /api/v1/outreach/campaigns/{id}/prospects, POST /api/v1/outreach/campaigns/{id}/prospects/remove |
| Preview the messages for one of them | GET /api/v1/outreach/campaigns/{id}/preview/contacts, GET /api/v1/outreach/campaigns/{id}/preview |
A prospect’s status is active (going), completed, exited (a reply, a booking, an opt-out), failed or removed. next is what their run does next: a LinkedIn action (kind: "linkedin", action, at, held while the campaign is paused), a wait (until), their video page being made. The funnel times (visitedAt, invitedAt, connectedAt, messagedAt, repliedAt, watchedAt, bookedAt) are when they first got that far.
In other workflows
Section titled “In other workflows”The steps are Automations nodes any workflow can use, with an account picked on the node: Visit LinkedIn profile, Send a connection request, Send a LinkedIn message and Withdraw connection request, and the trigger LinkedIn request accepted (also a goal and an exit: “Connects on LinkedIn”). A campaign’s own trigger, Enrolled in a campaign, gives each run campaign, account, prospect and contact.