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 } from '@activepieces/pieces-framework';
import { senderAuth } from '../../auth';
import { senderAiProps } from '../../common/ai-props';
import { senderApi } from '../../common/api';
import { senderGetGroupOutputSchema } from '../../output-schemas';
export const senderGetGroupAction = createAction({
auth: senderAuth,
name: 'sender_get_group',
outputSchema: senderGetGroupOutputSchema,
displayName: 'Get Group',
description: 'Gets a group by ID.',
audience: 'ai',
classification: 'READ',
aiMetadata: {
description:
'Gets one subscriber group by ID, with its title and active, unsubscribed, bounced and phone subscriber counts.',
idempotent: true,
},
props: {
groupId: senderAiProps.groupId({ required: true }),
},
async run(context) {
return await senderApi.getGroup({ auth: context.auth, ...context.propsValue });
},
});