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). Paste the API key (or token) from the provider's settings into the connect dialog. It is encrypted at rest and only decrypted on the server when an action runs.
- In the editor: Backend panel, Integrations tab, then Connect. This connects it for the project.
- For every project in a workspace: Workspace settings, Integrations.
- Owners and admins choose which integrations members may connect in the admin panel (Integrations tab), and can attach their own OAuth app there.
Call it from a workflow
Pass the action name and its input. The call resolves with { success, output, error? }; a missing connection resolves with success false and the reason. See ctx.integrations.invoke and ctx.integrations.call.
// .workflow.js (native ctx)
export async function run(ctx) {
const res = await ctx.integrations.invoke("lemlist", "addLeadToACampaign", {
"campaignId": "<campaignId>",
"email": "<lead email>"
});
if (!res.success) throw new Error(res.error);
ctx.log.info("lemlist answered", { output: res.output });
}// defineWorkflow module (@app/sdk ctx)
import { defineWorkflow } from "@app/sdk";
export default defineWorkflow({
id: "lemlist-addleadtoacampaign",
name: "lemlist: Add Lead To A Campaign",
description: "Calls lemlist when a row is created.",
trigger: { type: "entity_event", entity: "tickets", event: "created" },
async run(ctx, event) {
const res = await ctx.integrations.call("lemlist", {
"action": "addLeadToACampaign",
"campaignId": "<campaignId>",
"email": "<lead email>"
}) as { success: boolean; error?: string };
if (!res.success) throw new Error(res.error);
},
});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
addLeadToACampaignin catalog
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 |
markLeadFromAllCampaignAsInterestedin catalog
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. |
markLeadFromAllCampaignsAsNotInterestedin catalog
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. |
markLeadFromOneCampaignAsInterestedin catalog
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. |
markLeadFromOneCampaignAsNotInterestedin catalog
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. |
pauseLeadFromAllOrSpecificCampaignsin catalog
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- Tier
- Community