AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
TypeScript ai-agentai-agent-toolsai-agentsai-agents-frameworkmcpmcp-servermcp-toolsmcpsn8n-alternativeno-code-automationworkflowworkflow-automationworkflows
import { createAction, Property } from '@activepieces/pieces-framework';
import { lemlistAuth } from '../common/constants';
import { campaignsDropdown } from '../common/props';
import { lemlistLeads } from '../common/requests';
import { lemlistSchemas } from '../common/schemas';
export const markLeadFromOneCampaignAsNotInterested = createAction({
auth: lemlistAuth,
name: 'markLeadFromOneCampaignAsNotInterested',
classification: 'WRITE',
displayName: 'Mark Lead From One Campaign as Not Interested',
description: 'Mark a lead in a campaign as not interested.',
audience: 'human',
aiMetadata: {
description:
'Sets the "not interested" status on a lead in one Lemlist campaign, identified by campaign and lead email. Idempotent.',
idempotent: true,
},
props: {
campaignId: campaignsDropdown({ refreshers: ['auth'] }),
email: Property.ShortText({
displayName: 'Lead Email',
description: 'The email of the lead to mark as not interested.',
required: true,
}),
},
outputSchema: lemlistSchemas.lead,
async run({ auth, propsValue }) {
return lemlistLeads.setInterestInCampaign({
apiKey: auth.secret_text,
campaignId: propsValue.campaignId,
lead: propsValue.email,
interested: false,
});
},
});