AACFlow

Lemlist

Manage outreach activities, leads, and send emails via Lemlist

Usage Instructions

Integrate Lemlist into your workflow. Retrieve campaign activities and replies, get lead information, and send emails through the Lemlist inbox.

Tools

lemlist_get_activities

Retrieves campaign activities and steps performed, including email opens, clicks, replies, and other events.

Input

ParameterTypeRequiredDescription
apiKeystringYesNo description
typestringNoFilter by activity type (e.g., emailOpened, emailClicked, emailReplied, paused)
campaignIdstringNoFilter by campaign ID (e.g., "cam_abc123def456")
leadIdstringNoFilter by lead ID (e.g., "lea_abc123def456")
isFirstbooleanNoNo description
limitnumberNoNo description
offsetnumberNoNo description

Output

ParameterTypeDescription
activitiesarrayList of activities
_idstringActivity ID
typestringActivity type
leadIdstringAssociated lead ID
campaignIdstringCampaign ID
sequenceIdstringSequence ID
stepIdstringStep ID
createdAtstringWhen the activity occurred
countnumberNumber of activities returned

lemlist_get_lead

Input

ParameterTypeRequiredDescription
apiKeystringYesNo description
leadIdentifierstringYesLead email address (e.g., "john@example.com") or lead ID (e.g., "lea_abc123def456")

Output

ParameterTypeDescription
_idstringLead ID
emailstringLead email address
firstNamestringLead first name
lastNamestringLead last name
companyNamestringCompany name
jobTitlestringJob title
companyDomainstringCompany domain
isPausedbooleanWhether the lead is paused
campaignIdstringCampaign ID the lead belongs to
contactIdstringContact ID
emailStatusstringEmail deliverability status

lemlist_send_email

Input

ParameterTypeRequiredDescription
apiKeystringYesNo description
sendUserIdstringYesIdentifier for the user sending the message (e.g., "usr_abc123def456")
sendUserEmailstringYesEmail address of the sender (e.g., "sales@company.com")
sendUserMailboxIdstringYesMailbox identifier for the sender (e.g., "mbx_abc123def456")
contactIdstringYesRecipient contact identifier (e.g., "con_abc123def456")
leadIdstringYesAssociated lead identifier (e.g., "lea_abc123def456")
subjectstringYesNo description
messagestringYesNo description
ccjsonNoNo description

Output

ParameterTypeDescription
okbooleanWhether the email was sent successfully

On this page

Start building today
Trusted by over 100,000 builders.
The SaaS platform to build AI agents and run your agentic workforce.
Get started