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 { createPiece, PieceCategory } from '@activepieces/pieces-framework';
import { createCustomApiCallAction } from '@activepieces/pieces-common';
import { twentyAuth } from './lib/auth';
import { twentyClient } from './lib/common/client';
import { createContactAction } from './lib/actions/create-contact';
import { createCompanyAction } from './lib/actions/create-company';
import { createOpportunityAction } from './lib/actions/create-opportunity';
import { findPersonAction } from './lib/actions/find-person';
import { findCompanyAction } from './lib/actions/find-company';
import { updatePersonAction } from './lib/actions/update-person';
import { updateCompanyAction } from './lib/actions/update-company';
import { twentyAiActions } from './lib/actions/ai';
import { newPersonTrigger } from './lib/triggers/new-person';
import { newCompanyTrigger } from './lib/triggers/new-company';
export { twentyAuth };
export const twenty = createPiece({
displayName: 'Twenty',
description: 'Open-source CRM platform.',
auth: twentyAuth,
minimumSupportedRelease: '0.88.2',
logoUrl: 'https://cdn.activepieces.com/pieces/twenty.png',
categories: [PieceCategory.SALES_AND_CRM],
authors: ['Akash5908'],
actions: [
createContactAction,
createCompanyAction,
createOpportunityAction,
findPersonAction,
findCompanyAction,
updatePersonAction,
updateCompanyAction,
...twentyAiActions,
createCustomApiCallAction({
baseUrl: (auth) => (auth ? twentyClient.baseUrl({ auth }) : ''),
auth: twentyAuth,
authMapping: async (auth) => ({
Authorization: `Bearer ${auth.props.api_key}`,
}),
}),
],
triggers: [newPersonTrigger, newCompanyTrigger],
});