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 { generateText } from './lib/actions/generate-text';
import { cohereAuth } from './lib/auth';
import { createCustomApiCallAction } from '@activepieces/pieces-common';
export const cohere = createPiece({
displayName: 'Cohere',
description: 'Generate text using Cohere AI language models',
auth: cohereAuth,
minimumSupportedRelease: '0.30.0',
logoUrl:
'https://cdn.activepieces.com/pieces/cohere.png',
authors: ['AhmadTash'],
actions: [generateText,
createCustomApiCallAction({
auth: cohereAuth,
baseUrl: () => 'https://api.cohere.com/v2',
authMapping: async (auth) => {
return {
Authorization: `Bearer ${auth!.secret_text}`,
};
},
})
],
triggers: [],
});