# bharathmrr/agentic-ai-workflow-dragai-edition- architecture

> Architecture diagram of the GitHub repository bharathmrr/agentic-ai-workflow-dragai-edition-, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-20). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/bharathmrr/agentic-ai-workflow-dragai-edition-
- Repository: https://github.com/bharathmrr/agentic-ai-workflow-dragai-edition-

## Overview

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: [`frontend/src/pages/WorkflowPage.jsx`](https://github.com/bharathmrr/agentic-ai-workflow-dragai-edition-/blob/main/frontend/src/pages/WorkflowPage.jsx) (Workflow Editor), [`backend/app/main.py`](https://github.com/bharathmrr/agentic-ai-workflow-dragai-edition-/blob/main/backend/app/main.py) (FastAPI Application), [`backend/app/routes/workflow_routes.py`](https://github.com/bharathmrr/agentic-ai-workflow-dragai-edition-/blob/main/backend/app/routes/workflow_routes.py) (Workflow Routes), [`backend/app/routes/ml_routes.py`](https://github.com/bharathmrr/agentic-ai-workflow-dragai-edition-/blob/main/backend/app/routes/ml_routes.py) (ML Routes)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_authoring["Workflow Authoring"]
  node_home["Home Dashboard<br/>[Home.jsx]"]
  node_workflowui["Workflow Editor<br/>[WorkflowPage.jsx]"]
  node_canvas["Workflow Canvas<br/>[WorkflowCanvas.jsx]"]
  node_inspector["Node Inspector<br/>[NodeInspector.jsx]"]
  node_sidebar["Node Sidebar<br/>[Sidebar.jsx]"]
  node_output["Execution Output<br/>[OutputPanel.jsx]"]
  node_store["Workflow Store<br/>[workflowStore.js]"]
  node_client["Workflow API Client<br/>[workflowService.js]"]
end

subgraph group_api["Backend API"]
  node_apiapp["FastAPI Application<br/>[main.py]"]
  node_workflowroutes["Workflow Routes<br/>[workflow_routes.py]"]
  node_mlroutes["ML Routes<br/>[ml_routes.py]"]
  node_agentroutes["Agent Routes<br/>[agent_routes.py]"]
  node_modelroutes["Model Routes<br/>[model_routes.py]"]
  node_toolroutes["Tool Routes<br/>[tool_routes.py]"]
  node_deploymentroutes["Deployment Routes"]
end

subgraph group_execution["Workflow Execution"]
  node_workflowservice["Workflow Service"]
  node_nodeprocessor["Node Processor<br/>[node_processor.py]"]
end

subgraph group_ai["AI and Tools"]
  node_agentservice["Agent Service<br/>[agent_service.py]"]
  node_modelservice["Model Service<br/>[model_service.py]"]
  node_mlservice["ML Service<br/>[ml_service.py]"]
  node_dlservice["Deep Learning<br/>[dl_service.py]"]
  node_embeddingservice["Embedding Service"]
  node_toolservice["Tool Service<br/>[tool_service.py]"]
  node_mcp["MCP Integration<br/>[mcp_integration.py]"]
  node_deploymentservice["Deployment Service"]
end

subgraph group_processors["Workflow Nodes"]
  node_nodebase["Node Processor Base<br/>[base_node.py]"]
  node_agentnode["Agent Node<br/>[ai_agent_node.py]"]
  node_modelnode["AI Model Node<br/>[ai_model_node.py]"]
  node_docnode["Document Loader"]
  node_splitnode["Text Splitter"]
  node_embednode["Embedding Node"]
  node_vectordbnode[("Vector Database")]
  node_retrievernode["Retriever Node<br/>[retriever_node.py]"]
end

node_user(("Workflow User"))

node_user -->|"opens"| node_home
node_user -->|"edits workflow"| node_workflowui
node_workflowui -->|"renders"| node_canvas
node_workflowui -->|"renders"| node_inspector
node_workflowui -->|"renders"| node_sidebar
node_workflowui -->|"renders"| node_output
node_workflowui -->|"uses"| node_store
node_workflowui -->|"calls"| node_client
node_client -->|"HTTP requests"| node_workflowroutes
node_apiapp -->|"mounts"| node_workflowroutes
node_apiapp -->|"mounts"| node_mlroutes
node_apiapp -->|"mounts"| node_agentroutes
node_apiapp -->|"mounts"| node_modelroutes
node_apiapp -->|"mounts"| node_toolroutes
node_apiapp -->|"mounts"| node_deploymentroutes
node_workflowroutes -->|"delegates to"| node_workflowservice
node_workflowroutes -->|"validates with"| node_nodeprocessor
node_workflowservice -->|"uses"| node_nodeprocessor
node_mlroutes -->|"predicts with"| node_mlservice
node_mlroutes -->|"fallback prediction"| node_dlservice
node_agentroutes -->|"delegates to"| node_agentservice
node_agentroutes -->|"creates client"| node_mcp
node_modelroutes -->|"delegates to"| node_modelservice
node_toolroutes -->|"delegates to"| node_toolservice
node_deploymentroutes -->|"delegates to"| node_deploymentservice
node_embednode -->|"inherits"| node_nodebase
node_vectordbnode -->|"inherits"| node_nodebase
node_retrievernode -->|"inherits"| node_nodebase
node_embednode -.->|"embeddings feed store"| node_vectordbnode

click node_home "https://github.com/bharathmrr/agentic-ai-workflow-dragai-edition-/blob/main/frontend/src/pages/Home.jsx"
click node_workflowui "https://github.com/bharathmrr/agentic-ai-workflow-dragai-edition-/blob/main/frontend/src/pages/WorkflowPage.jsx"
click node_canvas "https://github.com/bharathmrr/agentic-ai-workflow-dragai-edition-/blob/main/frontend/src/components/WorkflowCanvas.jsx"
click node_inspector "https://github.com/bharathmrr/agentic-ai-workflow-dragai-edition-/blob/main/frontend/src/components/NodeInspector.jsx"
click node_sidebar "https://github.com/bharathmrr/agentic-ai-workflow-dragai-edition-/blob/main/frontend/src/components/Sidebar.jsx"
click node_output "https://github.com/bharathmrr/agentic-ai-workflow-dragai-edition-/blob/main/frontend/src/components/OutputPanel.jsx"
click node_store "https://github.com/bharathmrr/agentic-ai-workflow-dragai-edition-/blob/main/frontend/src/utils/workflowStore.js"
click node_client "https://github.com/bharathmrr/agentic-ai-workflow-dragai-edition-/blob/main/frontend/src/services/workflowService.js"
click node_apiapp "https://github.com/bharathmrr/agentic-ai-workflow-dragai-edition-/blob/main/backend/app/main.py"
click node_workflowroutes "https://github.com/bharathmrr/agentic-ai-workflow-dragai-edition-/blob/main/backend/app/routes/workflow_routes.py"
click node_mlroutes "https://github.com/bharathmrr/agentic-ai-workflow-dragai-edition-/blob/main/backend/app/routes/ml_routes.py"
click node_agentroutes "https://github.com/bharathmrr/agentic-ai-workflow-dragai-edition-/blob/main/backend/app/routes/agent_routes.py"
click node_modelroutes "https://github.com/bharathmrr/agentic-ai-workflow-dragai-edition-/blob/main/backend/app/routes/model_routes.py"
click node_toolroutes "https://github.com/bharathmrr/agentic-ai-workflow-dragai-edition-/blob/main/backend/app/routes/tool_routes.py"
click node_deploymentroutes "https://github.com/bharathmrr/agentic-ai-workflow-dragai-edition-/blob/main/backend/app/routes/deployment_routes.py"
click node_workflowservice "https://github.com/bharathmrr/agentic-ai-workflow-dragai-edition-/blob/main/backend/app/services/workflow_service.py"
click node_nodeprocessor "https://github.com/bharathmrr/agentic-ai-workflow-dragai-edition-/blob/main/backend/app/services/node_processor.py"
click node_agentservice "https://github.com/bharathmrr/agentic-ai-workflow-dragai-edition-/blob/main/backend/app/services/agent_service.py"
click node_modelservice "https://github.com/bharathmrr/agentic-ai-workflow-dragai-edition-/blob/main/backend/app/services/model_service.py"
click node_mlservice "https://github.com/bharathmrr/agentic-ai-workflow-dragai-edition-/blob/main/backend/app/services/ml_service.py"
click node_dlservice "https://github.com/bharathmrr/agentic-ai-workflow-dragai-edition-/blob/main/backend/app/services/dl_service.py"
click node_embeddingservice "https://github.com/bharathmrr/agentic-ai-workflow-dragai-edition-/blob/main/backend/app/services/embedding_service.py"
click node_toolservice "https://github.com/bharathmrr/agentic-ai-workflow-dragai-edition-/blob/main/backend/app/services/tool_service.py"
click node_mcp "https://github.com/bharathmrr/agentic-ai-workflow-dragai-edition-/blob/main/backend/app/utils/mcp_integration.py"
click node_deploymentservice "https://github.com/bharathmrr/agentic-ai-workflow-dragai-edition-/blob/main/backend/app/services/deployment_service.py"
click node_nodebase "https://github.com/bharathmrr/agentic-ai-workflow-dragai-edition-/blob/main/backend/nodes/base_node.py"
click node_agentnode "https://github.com/bharathmrr/agentic-ai-workflow-dragai-edition-/blob/main/backend/nodes/ai_agent_node.py"
click node_modelnode "https://github.com/bharathmrr/agentic-ai-workflow-dragai-edition-/blob/main/backend/nodes/ai_model_node.py"
click node_docnode "https://github.com/bharathmrr/agentic-ai-workflow-dragai-edition-/blob/main/backend/nodes/document_loader_node.py"
click node_splitnode "https://github.com/bharathmrr/agentic-ai-workflow-dragai-edition-/blob/main/backend/nodes/text_splitter_node.py"
click node_embednode "https://github.com/bharathmrr/agentic-ai-workflow-dragai-edition-/blob/main/backend/nodes/embedding_ai_node.py"
click node_vectordbnode "https://github.com/bharathmrr/agentic-ai-workflow-dragai-edition-/blob/main/backend/nodes/vector_database_node.py"
click node_retrievernode "https://github.com/bharathmrr/agentic-ai-workflow-dragai-edition-/blob/main/backend/nodes/retriever_node.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_home,node_workflowui,node_canvas,node_inspector,node_sidebar,node_output,node_store,node_client,node_user toneBlue
class node_apiapp,node_workflowroutes,node_mlroutes,node_agentroutes,node_modelroutes,node_toolroutes,node_deploymentroutes toneAmber
class node_workflowservice,node_nodeprocessor toneMint
class node_agentservice,node_modelservice,node_mlservice,node_dlservice,node_embeddingservice,node_toolservice,node_mcp,node_deploymentservice toneRose
class node_nodebase,node_agentnode,node_modelnode,node_docnode,node_splitnode,node_embednode,node_vectordbnode,node_retrievernode toneIndigo
```

## Components

### Workflow Authoring

- [Home Dashboard](https://github.com/bharathmrr/agentic-ai-workflow-dragai-edition-/blob/main/frontend/src/pages/Home.jsx): `frontend/src/pages/Home.jsx`
- [Workflow Editor](https://github.com/bharathmrr/agentic-ai-workflow-dragai-edition-/blob/main/frontend/src/pages/WorkflowPage.jsx): `frontend/src/pages/WorkflowPage.jsx`
- [Workflow Canvas](https://github.com/bharathmrr/agentic-ai-workflow-dragai-edition-/blob/main/frontend/src/components/WorkflowCanvas.jsx): `frontend/src/components/WorkflowCanvas.jsx`
- [Node Inspector](https://github.com/bharathmrr/agentic-ai-workflow-dragai-edition-/blob/main/frontend/src/components/NodeInspector.jsx): `frontend/src/components/NodeInspector.jsx`
- [Node Sidebar](https://github.com/bharathmrr/agentic-ai-workflow-dragai-edition-/blob/main/frontend/src/components/Sidebar.jsx): `frontend/src/components/Sidebar.jsx`
- [Execution Output](https://github.com/bharathmrr/agentic-ai-workflow-dragai-edition-/blob/main/frontend/src/components/OutputPanel.jsx): `frontend/src/components/OutputPanel.jsx`
- [Workflow Store](https://github.com/bharathmrr/agentic-ai-workflow-dragai-edition-/blob/main/frontend/src/utils/workflowStore.js): `frontend/src/utils/workflowStore.js`
- [Workflow API Client](https://github.com/bharathmrr/agentic-ai-workflow-dragai-edition-/blob/main/frontend/src/services/workflowService.js): `frontend/src/services/workflowService.js`

### Backend API

- [FastAPI Application](https://github.com/bharathmrr/agentic-ai-workflow-dragai-edition-/blob/main/backend/app/main.py): `backend/app/main.py`
- [Workflow Routes](https://github.com/bharathmrr/agentic-ai-workflow-dragai-edition-/blob/main/backend/app/routes/workflow_routes.py): `backend/app/routes/workflow_routes.py`
- [ML Routes](https://github.com/bharathmrr/agentic-ai-workflow-dragai-edition-/blob/main/backend/app/routes/ml_routes.py): `backend/app/routes/ml_routes.py`
- [Agent Routes](https://github.com/bharathmrr/agentic-ai-workflow-dragai-edition-/blob/main/backend/app/routes/agent_routes.py): `backend/app/routes/agent_routes.py`
- [Model Routes](https://github.com/bharathmrr/agentic-ai-workflow-dragai-edition-/blob/main/backend/app/routes/model_routes.py): `backend/app/routes/model_routes.py`
- [Tool Routes](https://github.com/bharathmrr/agentic-ai-workflow-dragai-edition-/blob/main/backend/app/routes/tool_routes.py): `backend/app/routes/tool_routes.py`
- [Deployment Routes](https://github.com/bharathmrr/agentic-ai-workflow-dragai-edition-/blob/main/backend/app/routes/deployment_routes.py): `backend/app/routes/deployment_routes.py`

### Workflow Execution

- [Workflow Service](https://github.com/bharathmrr/agentic-ai-workflow-dragai-edition-/blob/main/backend/app/services/workflow_service.py): `backend/app/services/workflow_service.py`
- [Node Processor](https://github.com/bharathmrr/agentic-ai-workflow-dragai-edition-/blob/main/backend/app/services/node_processor.py): `backend/app/services/node_processor.py`

### AI and Tools

- [Agent Service](https://github.com/bharathmrr/agentic-ai-workflow-dragai-edition-/blob/main/backend/app/services/agent_service.py): `backend/app/services/agent_service.py`
- [Model Service](https://github.com/bharathmrr/agentic-ai-workflow-dragai-edition-/blob/main/backend/app/services/model_service.py): `backend/app/services/model_service.py`
- [ML Service](https://github.com/bharathmrr/agentic-ai-workflow-dragai-edition-/blob/main/backend/app/services/ml_service.py): `backend/app/services/ml_service.py`
- [Deep Learning](https://github.com/bharathmrr/agentic-ai-workflow-dragai-edition-/blob/main/backend/app/services/dl_service.py): `backend/app/services/dl_service.py`
- [Embedding Service](https://github.com/bharathmrr/agentic-ai-workflow-dragai-edition-/blob/main/backend/app/services/embedding_service.py): `backend/app/services/embedding_service.py`
- [Tool Service](https://github.com/bharathmrr/agentic-ai-workflow-dragai-edition-/blob/main/backend/app/services/tool_service.py): `backend/app/services/tool_service.py`
- [MCP Integration](https://github.com/bharathmrr/agentic-ai-workflow-dragai-edition-/blob/main/backend/app/utils/mcp_integration.py): `backend/app/utils/mcp_integration.py`
- [Deployment Service](https://github.com/bharathmrr/agentic-ai-workflow-dragai-edition-/blob/main/backend/app/services/deployment_service.py): `backend/app/services/deployment_service.py`

### Workflow Nodes

- [Node Processor Base](https://github.com/bharathmrr/agentic-ai-workflow-dragai-edition-/blob/main/backend/nodes/base_node.py): `backend/nodes/base_node.py`
- [Agent Node](https://github.com/bharathmrr/agentic-ai-workflow-dragai-edition-/blob/main/backend/nodes/ai_agent_node.py): `backend/nodes/ai_agent_node.py`
- [AI Model Node](https://github.com/bharathmrr/agentic-ai-workflow-dragai-edition-/blob/main/backend/nodes/ai_model_node.py): `backend/nodes/ai_model_node.py`
- [Document Loader](https://github.com/bharathmrr/agentic-ai-workflow-dragai-edition-/blob/main/backend/nodes/document_loader_node.py): `backend/nodes/document_loader_node.py`
- [Text Splitter](https://github.com/bharathmrr/agentic-ai-workflow-dragai-edition-/blob/main/backend/nodes/text_splitter_node.py): `backend/nodes/text_splitter_node.py`
- [Embedding Node](https://github.com/bharathmrr/agentic-ai-workflow-dragai-edition-/blob/main/backend/nodes/embedding_ai_node.py): `backend/nodes/embedding_ai_node.py`
- [Vector Database](https://github.com/bharathmrr/agentic-ai-workflow-dragai-edition-/blob/main/backend/nodes/vector_database_node.py): `backend/nodes/vector_database_node.py`
- [Retriever Node](https://github.com/bharathmrr/agentic-ai-workflow-dragai-edition-/blob/main/backend/nodes/retriever_node.py): `backend/nodes/retriever_node.py`

### Other components

- **Workflow User**

## Connections

- Workflow User → Home Dashboard: opens
- Workflow User → Workflow Editor: edits workflow
- Workflow Editor → Workflow Canvas: renders (evidence: `frontend/src/pages/WorkflowPage.jsx`)
- Workflow Editor → Node Inspector: renders (evidence: `frontend/src/pages/WorkflowPage.jsx`)
- Workflow Editor → Node Sidebar: renders (evidence: `frontend/src/pages/WorkflowPage.jsx`)
- Workflow Editor → Execution Output: renders (evidence: `frontend/src/pages/WorkflowPage.jsx`)
- Workflow Editor → Workflow Store: uses (evidence: `frontend/src/pages/WorkflowPage.jsx`)
- Workflow Editor → Workflow API Client: calls (evidence: `frontend/src/pages/WorkflowPage.jsx`)
- Workflow API Client → Workflow Routes: HTTP requests (evidence: `frontend/src/services/workflowService.js`)
- FastAPI Application → Workflow Routes: mounts (evidence: `backend/app/main.py`)
- FastAPI Application → ML Routes: mounts (evidence: `backend/app/main.py`)
- FastAPI Application → Agent Routes: mounts (evidence: `backend/app/main.py`)
- FastAPI Application → Model Routes: mounts (evidence: `backend/app/main.py`)
- FastAPI Application → Tool Routes: mounts (evidence: `backend/app/main.py`)
- FastAPI Application → Deployment Routes: mounts (evidence: `backend/app/main.py`)
- Workflow Routes → Workflow Service: delegates to (evidence: `backend/app/routes/workflow_routes.py`)
- Workflow Routes → Node Processor: validates with (evidence: `backend/app/routes/workflow_routes.py`)
- Workflow Service → Node Processor: uses (evidence: `backend/app/services/workflow_service.py`)
- ML Routes → ML Service: predicts with (evidence: `backend/app/routes/ml_routes.py`)
- ML Routes → Deep Learning: fallback prediction (evidence: `backend/app/routes/ml_routes.py`)
- Agent Routes → Agent Service: delegates to (evidence: `backend/app/routes/agent_routes.py`)
- Agent Routes → MCP Integration: creates client (evidence: `backend/app/routes/agent_routes.py`)
- Model Routes → Model Service: delegates to (evidence: `backend/app/routes/model_routes.py`)
- Tool Routes → Tool Service: delegates to (evidence: `backend/app/routes/tool_routes.py`)
- Deployment Routes → Deployment Service: delegates to (evidence: `backend/app/routes/deployment_routes.py`)
- Embedding Node → Node Processor Base: inherits (evidence: `backend/nodes/embedding_ai_node.py`)
- Vector Database → Node Processor Base: inherits (evidence: `backend/nodes/vector_database_node.py`)
- Retriever Node → Node Processor Base: inherits (evidence: `backend/nodes/retriever_node.py`)
- Embedding Node → Vector Database: embeddings feed store
