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 } from '@activepieces/pieces-framework';
import { greenptAuth } from './lib/common/auth';
import { chatCompletion } from './lib/actions/chat-completion';
import { createEmbeddings } from './lib/actions/create-embeddings';
import { transcribeAudio } from './lib/actions/transcribe-audio';
import { createCustomApiCallAction } from '@activepieces/pieces-common';
import { PieceCategory } from '@activepieces/pieces-framework';
export const greenpt = createPiece({
displayName: 'GreenPT',
description:
'GreenPT is a green AI and privacy friendly GPT-powered chat platform',
auth: greenptAuth,
minimumSupportedRelease: '0.36.1',
logoUrl: 'https://cdn.activepieces.com/pieces/greenpt.png',
authors: ['sanket-a11y'],
categories: [PieceCategory.ARTIFICIAL_INTELLIGENCE],
actions: [
chatCompletion,
createEmbeddings,
transcribeAudio,
createCustomApiCallAction({
auth: greenptAuth,
baseUrl: () => `https://api.greenpt.ai/v1`,
authMapping: async (auth) => {
return {
Authorization: `Bearer ${auth.secret_text}`,
};
},
}),
],
triggers: [],
});