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 { zagomailAuth } from '../auth';
import { createAction } from '@activepieces/pieces-framework';
import { zagoMailApiService } from '../common/request';
import { campaignUid } from '../common/props';
export const getCampaignDetails = createAction({
auth: zagomailAuth,
name: 'getCampaignDetails',
displayName: 'Get Campaign',
description: 'Gets the details of a campaign.',
audience: 'both',
aiMetadata: { description: 'Retrieves the details of a single Zagomail email campaign identified by its campaign UID. Use to inspect a campaign configuration or status. Read-only and idempotent.', idempotent: true },
props: {
campaignUid: campaignUid,
},
async run({propsValue, auth}) {
const campaignUid = propsValue.campaignUid;
return await zagoMailApiService.getCampaignDetails(auth.secret_text, campaignUid)
},
});