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 { zohoInvoiceAuth } from '../../../auth';
import { zohoInvoiceAiProps } from '../../../common/ai-props';
import { zohoInvoiceApi } from '../../../common/api';
import { zohoInvoiceMessageOutputSchema } from '../../../output-schemas';
export const activateProjectAction = createAction({
auth: zohoInvoiceAuth,
name: 'zoho_invoice_activate_project',
outputSchema: zohoInvoiceMessageOutputSchema,
displayName: 'Activate Project',
description: 'Marks a project as active.',
audience: 'ai',
classification: 'WRITE',
aiMetadata: {
description:
'Marks a project as active so time can be logged against it again. Use List Projects to find the ID. Repeating it leaves the project active.',
idempotent: true,
},
props: {
organizationId: zohoInvoiceAiProps.organizationId({ required: true }),
projectId: zohoInvoiceAiProps.projectId({ required: true }),
},
async run({ auth, propsValue }) {
return await zohoInvoiceApi.activateProject({
auth,
organizationId: propsValue.organizationId,
projectId: propsValue.projectId,
});
},
});