lemlist

Add leads to campaigns and manage cold outreach in lemlist.

MarketingAPI key12 actionsAll integrations

On this page
  1. Connect
  2. Call it from a workflow
  3. Actions (12)
  4. addLeadToACampaign
  5. markLeadFromAllCampaignAsInterested
  6. markLeadFromAllCampaignsAsNotInterested
  7. markLeadFromOneCampaignAsInterested
  8. markLeadFromOneCampaignAsNotInterested
  9. pauseLeadFromAllOrSpecificCampaigns
  10. removeLeadFromACampaign
  11. removeLeadFromUnsubscribeList
  12. resumeLeadFromAllOrSpecificCampaigns
  13. searchLead
  14. unsubscribeALead
  15. updateLeadFromCampaign
  16. Details

Connect

Auth type: API key (secret_text). Pass the provider's API key or token as the connection's credential. It is sealed at rest and only opened on the server when an action runs.

  • From your agent: integrations {action: "connect", piece, credentials, env} stores the credentials for dev, prod or all. Answers name the fields, never the values.
  • Or set the integration's project secrets with the secrets tool (SLACK_BOT_TOKEN, DISCORD_WEBHOOK_URL, TELEGRAM_BOT_TOKEN, TWILIO_ACCOUNT_SID and TWILIO_AUTH_TOKEN …): a call uses the connection, else those secrets. integrations {action: "catalog", piece} lists which ones work.
  • Try one action now with integrations {action: "call", piece, piece_action, input}. It really sends.

Call it from a workflow

step.ctx.integrations.invoke("lemlist", action, input) resolves with the provider's answer and rejects when lemlist isn't connected or refuses. Wrap it in step.run so a retry sends once. See step.ctx. Its actions run through the integration runner, which the server's operator turns on: integrations {action: "catalog", piece: "lemlist"} says whether yours can call it.

Workflow
// workflows/notify.ts: call lemlist when a booking is confirmed
import { on } from "@appbricx/workflows";

export const tellLemlist = on.transition("booking", "status", "confirmed", async (_event, step) => {
  // Recorded once: a retry doesn't send it twice. Rejects when lemlist isn't connected.
  const output = await step.run("lemlist", () =>
    step.ctx.integrations.invoke("lemlist", "addLeadToACampaign", {
      "campaignId": "<campaignId>",
      "email": "<lead email>"
    }),
  );
  step.ctx.log("lemlist answered", output);
});
Try it from your agent
{
  "name": "integrations",
  "arguments": {
    "project_id": "<project-id>",
    "action": "call",
    "piece": "lemlist",
    "piece_action": "addLeadToACampaign",
    "input": {
      "campaignId": "<campaignId>",
      "email": "<lead email>"
    },
    "env": "dev"
  }
}
From another backend (connector proxy)
curl -X POST "$APP_ORIGIN/__appbricx/connector-proxy/lemlist/addLeadToACampaign" \
  -H "Authorization: Bearer $APP_KEY" \
  -H "content-type: application/json" \
  -d '{"props":{"campaignId":"<campaignId>","email":"<lead email>"}}'

Actions

addLeadToACampaign

Add Lead To A Campaign. Adds a lead to a specific campaign with optional enrichment and lead details.

InputTypeDescription
campaignIdrequiredid (picked from your account)Select a campaign
emailrequiredtextThe email of the lead to add
firstNameoptionaltextFirst Name
lastNameoptionaltextLast Name
pictureoptionaltextPicture URL
phoneoptionaltextPhone
linkedinUrloptionaltextLinkedIn URL
companyNameoptionaltextCompany Name
companyDomainoptionaltextCompany Domain
icebreakeroptionallong textIcebreaker
jobTitleoptionaltextJob Title
deduplicateoptionalbooleanAvoid adding the lead if it already exists in any campaign
linkedinEnrichmentoptionalbooleanRun LinkedIn enrichment for this lead
findEmailoptionalbooleanTry to find a verified email for this lead
verifyEmailoptionalbooleanVerify the lead’s email using debounce
findPhoneoptionalbooleanTry to find a phone number for this lead

markLeadFromAllCampaignAsInterested

Mark Lead From All Campaign as Interested. Mark a lead as “interested” across all campaigns.

InputTypeDescription
emailrequiredtextThe email of the lead to mark as interested.

markLeadFromAllCampaignsAsNotInterested

Mark Lead From All Campaigns as Not Interested. Mark a lead as “not interested” across all campaigns.

InputTypeDescription
emailrequiredtextThe email of the lead to mark as not interested.

markLeadFromOneCampaignAsInterested

Mark Lead From One Campaign as Interested. Mark a lead in a campaign as interested.

InputTypeDescription
campaignIdrequiredid (picked from your account)Select a campaign
emailrequiredtextThe email of the lead to mark as interested.

markLeadFromOneCampaignAsNotInterested

Mark Lead From One Campaign as Not Interested. Mark a lead in a campaign as not interested.

InputTypeDescription
campaignIdrequiredid (picked from your account)Select a campaign
emailrequiredtextThe email of the lead to mark as not interested.

pauseLeadFromAllOrSpecificCampaigns

Pause Lead From All or Specific Campaigns. Pause a lead’s outreach across all or specific campaigns.

InputTypeDescription
campaignIdoptionalid (picked from your account)Select a campaign (optional)
emailrequiredtextThe email of the lead to pause.

removeLeadFromACampaign

Remove Lead from A Campaign. removes a lead from a specific campaign.

InputTypeDescription
campaignIdrequiredid (picked from your account)Select a campaign
emailrequiredtextThe email of the lead to remove.

removeLeadFromUnsubscribeList

Remove Lead From Unsubscribe List. Remove a lead from “unsubscribe” list.

InputTypeDescription
emailrequiredtextThe email of the lead to remove from the unsubscribe list.

resumeLeadFromAllOrSpecificCampaigns

Resume Lead From All or Specific Campaigns. Resume a lead’s outreach across all or specific campaigns.

InputTypeDescription
campaignIdoptionalid (picked from your account)Select a campaign (optional)
emailrequiredtextThe email of the lead to resume.

searchLead

Search Lead. Look up a lead by email and campaign.

InputTypeDescription
campaignIdoptionalid (picked from your account)Select a campaign (optional)
emailrequiredtextThe email of the lead to look up

unsubscribeALead

Unsubscribe a Lead. Unsubscribe a lead from a campaign.

InputTypeDescription
campaignIdrequiredid (picked from your account)Select a campaign
emailrequiredtextThe email of the lead to unsubscribe.

updateLeadFromCampaign

Update Lead From Campaign. Updates a lead in a specific campaign.

InputTypeDescription
campaignIdrequiredid (picked from your account)Select a campaign
emailrequiredtextThe email of the lead to update.
firstNameoptionaltextFirst Name
lastNameoptionaltextLast Name
pictureoptionaltextPicture URL
phoneoptionaltextPhone
linkedinUrloptionaltextLinkedIn URL
companyNameoptionaltextCompany Name
companyDomainoptionaltextCompany Domain
icebreakeroptionallong textIcebreaker
jobTitleoptionaltextJob Title

Details

Id
lemlist
Category
Marketing
Tags
email, outreach, cold-email, sales
Package
@activepieces/piece-lemlist@0.1.3
Runs
Through the integration runner