lemlist
Add leads to campaigns and manage cold outreach in lemlist.
On this page
- Connect
- Call it from a workflow
- Actions (12)
- addLeadToACampaign
- markLeadFromAllCampaignAsInterested
- markLeadFromAllCampaignsAsNotInterested
- markLeadFromOneCampaignAsInterested
- markLeadFromOneCampaignAsNotInterested
- pauseLeadFromAllOrSpecificCampaigns
- removeLeadFromACampaign
- removeLeadFromUnsubscribeList
- resumeLeadFromAllOrSpecificCampaigns
- searchLead
- unsubscribeALead
- updateLeadFromCampaign
- 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.
// 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);
});{
"name": "integrations",
"arguments": {
"project_id": "<project-id>",
"action": "call",
"piece": "lemlist",
"piece_action": "addLeadToACampaign",
"input": {
"campaignId": "<campaignId>",
"email": "<lead email>"
},
"env": "dev"
}
}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.
| Input | Type | Description |
|---|---|---|
campaignIdrequired | id (picked from your account) | Select a campaign |
emailrequired | text | The email of the lead to add |
firstNameoptional | text | First Name |
lastNameoptional | text | Last Name |
pictureoptional | text | Picture URL |
phoneoptional | text | Phone |
linkedinUrloptional | text | LinkedIn URL |
companyNameoptional | text | Company Name |
companyDomainoptional | text | Company Domain |
icebreakeroptional | long text | Icebreaker |
jobTitleoptional | text | Job Title |
deduplicateoptional | boolean | Avoid adding the lead if it already exists in any campaign |
linkedinEnrichmentoptional | boolean | Run LinkedIn enrichment for this lead |
findEmailoptional | boolean | Try to find a verified email for this lead |
verifyEmailoptional | boolean | Verify the lead’s email using debounce |
findPhoneoptional | boolean | Try to find a phone number for this lead |
markLeadFromAllCampaignAsInterested
Mark Lead From All Campaign as Interested. Mark a lead as “interested” across all campaigns.
| Input | Type | Description |
|---|---|---|
emailrequired | text | The 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.
| Input | Type | Description |
|---|---|---|
emailrequired | text | The 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.
| Input | Type | Description |
|---|---|---|
campaignIdrequired | id (picked from your account) | Select a campaign |
emailrequired | text | The 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.
| Input | Type | Description |
|---|---|---|
campaignIdrequired | id (picked from your account) | Select a campaign |
emailrequired | text | The 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.
| Input | Type | Description |
|---|---|---|
campaignIdoptional | id (picked from your account) | Select a campaign (optional) |
emailrequired | text | The email of the lead to pause. |
removeLeadFromACampaign
Remove Lead from A Campaign. removes a lead from a specific campaign.
| Input | Type | Description |
|---|---|---|
campaignIdrequired | id (picked from your account) | Select a campaign |
emailrequired | text | The email of the lead to remove. |
removeLeadFromUnsubscribeList
Remove Lead From Unsubscribe List. Remove a lead from “unsubscribe” list.
| Input | Type | Description |
|---|---|---|
emailrequired | text | The 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.
| Input | Type | Description |
|---|---|---|
campaignIdoptional | id (picked from your account) | Select a campaign (optional) |
emailrequired | text | The email of the lead to resume. |
searchLead
Search Lead. Look up a lead by email and campaign.
| Input | Type | Description |
|---|---|---|
campaignIdoptional | id (picked from your account) | Select a campaign (optional) |
emailrequired | text | The email of the lead to look up |
unsubscribeALead
Unsubscribe a Lead. Unsubscribe a lead from a campaign.
| Input | Type | Description |
|---|---|---|
campaignIdrequired | id (picked from your account) | Select a campaign |
emailrequired | text | The email of the lead to unsubscribe. |
updateLeadFromCampaign
Update Lead From Campaign. Updates a lead in a specific campaign.
| Input | Type | Description |
|---|---|---|
campaignIdrequired | id (picked from your account) | Select a campaign |
emailrequired | text | The email of the lead to update. |
firstNameoptional | text | First Name |
lastNameoptional | text | Last Name |
pictureoptional | text | Picture URL |
phoneoptional | text | Phone |
linkedinUrloptional | text | LinkedIn URL |
companyNameoptional | text | Company Name |
companyDomainoptional | text | Company Domain |
icebreakeroptional | long text | Icebreaker |
jobTitleoptional | text | Job Title |
Details
- Id
lemlist- Category
- Marketing
- Tags
- email, outreach, cold-email, sales
- Package
@activepieces/piece-lemlist@0.1.3- Runs
- Through the integration runner