How manikantasai1724/agentflow works
AgentFlow is a web application for designing, generating, and running automation workflows. An operator signs in, builds or generates a workflow, saves it, and starts an execution; the server queues the run and its orchestrator plans, executes, validates, and recovers workflow steps. The client also exposes dashboard and execution views, account connections, and notifications. The graph follows only relationships visible in excerpts or the source index; several UI capabilities and backend subsystems are represented at their known directory or module level where implementation details were not sampled.
Main entry points: orchestrator.js Agent Orchestrator · api.ts API Client · workflowRoutes.js Workflow Routes · executionController.js Execution API
Components 27
Workflow Client
- Workflow Editor
client/src/pages/workflows/[id].js - Canvas and Palette
client/src/components - Workflow Store
client/src/store/workflowStore.ts - Auth Store
client/src/store/authStore.ts - API Client
client/src/utils/api.ts - Dashboard and Metrics
client/src/pages/dashboard.js - Execution Views
client/src/pages/executions.js
API and Accounts
- HTTP App and Routes
server/src/app.js - Authentication
server/src/controllers/authController.js - JWT Guard
server/src/middleware/auth.js - Account Connections
server/src/controllers/connectionController.js - Notifications
server/src/controllers/notificationController.js
Workflow Management
- Workflow Routes
server/src/routes/workflowRoutes.js - Workflow Service
server/src/controllers/workflowController.js - AI Generation
server/src/services/aiService.js
Execution Runtime
- Execution API
server/src/controllers/executionController.js - Execution Queue
server/src/services/queueService.js - Agent Orchestrator
server/src/agents/orchestrator.js - Workflow Planner
server/src/agents/planner.js - Node Execution
server/src/agents/execution.js - Output Validation
server/src/agents/validation.js - Failure Recovery
server/src/agents/recovery.js
Persistent State
- Workflow Records
server/src/models/Workflow.js - Execution Records
server/src/models/Execution.js - Execution Logs
server/src/models/ExecutionLog.js - Agent Memory
server/src/models/AgentMemory.js
Other components
- Operator
Connections 31
- Operator → Workflow Editor: designs workflow
client/src/pages/workflows/[id].js - Workflow Editor → Canvas and Palette: renders editor
client/src/pages/workflows/[id].js - Workflow Editor → Workflow Store: uses state
client/src/pages/workflows/[id].js - Workflow Store → API Client: calls API
client/src/store/workflowStore.ts - Auth Store → API Client: calls API
client/src/store/authStore.ts - Operator → Auth Store: signs in
- API Client → HTTP App and Routes: sends HTTP requests
- HTTP App and Routes → Workflow Routes: mounts routes
server/src/app.js - HTTP App and Routes → Authentication: mounts auth routes
server/src/app.js - Workflow Routes → JWT Guard: protects routes
server/src/routes/workflowRoutes.js - Workflow Routes → Workflow Service: dispatches requests
server/src/routes/workflowRoutes.js - Workflow Routes → Execution API: dispatches execution
server/src/routes/workflowRoutes.js - Workflow Service → Workflow Records: reads and writes
server/src/controllers/workflowController.js - Workflow Service → AI Generation: generates graph
server/src/controllers/workflowController.js - Execution API → Workflow Records: loads workflow
server/src/controllers/executionController.js - Execution API → Execution Records: creates execution
server/src/controllers/executionController.js - Execution API → Execution Queue: enqueues execution
server/src/controllers/executionController.js - Execution Queue → Agent Orchestrator: runs execution
server/src/services/queueService.js - Agent Orchestrator → Workflow Planner: plans steps
server/src/agents/orchestrator.js - Agent Orchestrator → Node Execution: executes steps
server/src/agents/orchestrator.js - Agent Orchestrator → Output Validation: validates outputs
server/src/agents/orchestrator.js - Agent Orchestrator → Failure Recovery: handles failures
server/src/agents/orchestrator.js - Agent Orchestrator → Execution Records: updates execution
server/src/agents/orchestrator.js - Agent Orchestrator → Workflow Records: loads workflow
server/src/agents/orchestrator.js - Agent Orchestrator → Agent Memory: stores context
server/src/agents/orchestrator.js - Agent Orchestrator → Notifications: creates alerts
server/src/agents/orchestrator.js - Dashboard and Metrics → API Client: fetches metrics
- Execution Views → API Client: fetches runs
- Operator → Account Connections: configures accounts
- Operator → Dashboard and Metrics: views status
- Operator → Execution Views: monitors runs