How bharathmrr/agentic-ai-workflow-dragai-edition- works
DragAI is a visual AI workflow platform: users assemble and configure node graphs, save and execute them, then inspect execution status and results. The graph separates the React authoring experience, API orchestration, workflow execution, and AI/model/tool capabilities. The README documents broader ML, RAG, database, and deployment features; where their implementation was not sampled, nodes use supported directory paths and uncertain connections are omitted. Evidence for the runtime links is limited to the supplied excerpts and SOURCE INDEX references.
Main entry points: WorkflowPage.jsx Workflow Editor · main.py FastAPI Application · workflow_routes.py Workflow Routes · ml_routes.py ML Routes
Components 34
Workflow Authoring
- Home Dashboard
frontend/src/pages/Home.jsx - Workflow Editor
frontend/src/pages/WorkflowPage.jsx - Workflow Canvas
frontend/src/components/WorkflowCanvas.jsx - Node Inspector
frontend/src/components/NodeInspector.jsx - Node Sidebar
frontend/src/components/Sidebar.jsx - Execution Output
frontend/src/components/OutputPanel.jsx - Workflow Store
frontend/src/utils/workflowStore.js - Workflow API Client
frontend/src/services/workflowService.js
Backend API
- FastAPI Application
backend/app/main.py - Workflow Routes
backend/app/routes/workflow_routes.py - ML Routes
backend/app/routes/ml_routes.py - Agent Routes
backend/app/routes/agent_routes.py - Model Routes
backend/app/routes/model_routes.py - Tool Routes
backend/app/routes/tool_routes.py - Deployment Routes
backend/app/routes/deployment_routes.py
Workflow Execution
- Workflow Service
backend/app/services/workflow_service.py - Node Processor
backend/app/services/node_processor.py
AI and Tools
- Agent Service
backend/app/services/agent_service.py - Model Service
backend/app/services/model_service.py - ML Service
backend/app/services/ml_service.py - Deep Learning
backend/app/services/dl_service.py - Embedding Service
backend/app/services/embedding_service.py - Tool Service
backend/app/services/tool_service.py - MCP Integration
backend/app/utils/mcp_integration.py - Deployment Service
backend/app/services/deployment_service.py
Workflow Nodes
- Node Processor Base
backend/nodes/base_node.py - Agent Node
backend/nodes/ai_agent_node.py - AI Model Node
backend/nodes/ai_model_node.py - Document Loader
backend/nodes/document_loader_node.py - Text Splitter
backend/nodes/text_splitter_node.py - Embedding Node
backend/nodes/embedding_ai_node.py - Vector Database
backend/nodes/vector_database_node.py - Retriever Node
backend/nodes/retriever_node.py
Other components
- Workflow User
Connections 29
- Workflow User → Home Dashboard: opens
- Workflow User → Workflow Editor: edits workflow
- Workflow Editor → Workflow Canvas: renders
frontend/src/pages/WorkflowPage.jsx - Workflow Editor → Node Inspector: renders
frontend/src/pages/WorkflowPage.jsx - Workflow Editor → Node Sidebar: renders
frontend/src/pages/WorkflowPage.jsx - Workflow Editor → Execution Output: renders
frontend/src/pages/WorkflowPage.jsx - Workflow Editor → Workflow Store: uses
frontend/src/pages/WorkflowPage.jsx - Workflow Editor → Workflow API Client: calls
frontend/src/pages/WorkflowPage.jsx - Workflow API Client → Workflow Routes: HTTP requests
frontend/src/services/workflowService.js - FastAPI Application → Workflow Routes: mounts
backend/app/main.py - FastAPI Application → ML Routes: mounts
backend/app/main.py - FastAPI Application → Agent Routes: mounts
backend/app/main.py - FastAPI Application → Model Routes: mounts
backend/app/main.py - FastAPI Application → Tool Routes: mounts
backend/app/main.py - FastAPI Application → Deployment Routes: mounts
backend/app/main.py - Workflow Routes → Workflow Service: delegates to
backend/app/routes/workflow_routes.py - Workflow Routes → Node Processor: validates with
backend/app/routes/workflow_routes.py - Workflow Service → Node Processor: uses
backend/app/services/workflow_service.py - ML Routes → ML Service: predicts with
backend/app/routes/ml_routes.py - ML Routes → Deep Learning: fallback prediction
backend/app/routes/ml_routes.py - Agent Routes → Agent Service: delegates to
backend/app/routes/agent_routes.py - Agent Routes → MCP Integration: creates client
backend/app/routes/agent_routes.py - Model Routes → Model Service: delegates to
backend/app/routes/model_routes.py - Tool Routes → Tool Service: delegates to
backend/app/routes/tool_routes.py - Deployment Routes → Deployment Service: delegates to
backend/app/routes/deployment_routes.py - Embedding Node → Node Processor Base: inherits
backend/nodes/embedding_ai_node.py - Vector Database → Node Processor Base: inherits
backend/nodes/vector_database_node.py - Retriever Node → Node Processor Base: inherits
backend/nodes/retriever_node.py - Embedding Node → Vector Database: embeddings feed store