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 { FlowActionType, flowStructureUtil, FlowTriggerType, FlowVersion, Step } from '@activepieces/shared'
export const flowSteps = {
code: (flowVersion: FlowVersion): Step[] =>
flowStructureUtil.getAllSteps(flowVersion.trigger)
.filter((step) => step.type === FlowActionType.CODE),
piece: (flowVersion: FlowVersion): Step[] =>
flowStructureUtil.getAllSteps(flowVersion.trigger)
.filter((step) => step.type === FlowActionType.PIECE || step.type === FlowTriggerType.PIECE),
}