# sridhar2104/agentic-ai-automation architecture

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

- Interactive diagram: https://gitdiagram.com/sridhar2104/agentic-ai-automation
- Repository: https://github.com/sridhar2104/agentic-ai-automation

## Overview

This is an AI test-automation platform: users manage projects and requirements, generate and review scenarios and test cases, create Playwright scripts, execute them, and inspect results. FastAPI routes requests to workflow and execution services; a LangGraph multi-agent workflow handles generation and analysis, while a separate Playwright workspace runs browser automation. The README documents additional JIRA, RAG, accessibility, visual-regression, analytics, and governance capabilities. Some links reflect README-level documentation because their implementation was not sampled.

Main entry points: [`backend/agents`](https://github.com/sridhar2104/agentic-ai-automation/tree/main/backend/agents) (Agent Pipeline), [`backend/main.py`](https://github.com/sridhar2104/agentic-ai-automation/blob/main/backend/main.py) (FastAPI API), [`backend/playwrightt/lib/execution-engine.ts`](https://github.com/sridhar2104/agentic-ai-automation/blob/main/backend/playwrightt/lib/execution-engine.ts) (Playwright Workspace), [`backend/repository/project_repository.py`](https://github.com/sridhar2104/agentic-ai-automation/blob/main/backend/repository/project_repository.py) (Project Repository)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["User Experience"]
  node_frontend["Web Frontend<br/>[app.js]"]
  node_api["FastAPI API<br/>[main.py]"]
end

subgraph group_workflow["AI Workflow"]
  node_workflow_service["Workflow Service"]
  node_graph["LangGraph Workflow<br/>[workflow.py]"]
  node_agents["Agent Pipeline"]
  node_knowledge_agent["Knowledge Retrieval"]
  node_llm["LLM Providers<br/>[llm.py]"]
end

subgraph group_automation["Test Automation"]
  node_execution_service["Execution Service"]
  node_runner["Playwright Runner"]
  node_workspace["Playwright Workspace"]
  node_batch["Batch Execution"]
  node_analysis["Execution Analysis"]
  node_special_scans["Accessibility and Visual Scans"]
end

subgraph group_platform["Platform Services"]
  node_auth["Authentication and RBAC"]
  node_knowledge["Knowledge Base and RAG"]
  node_indexer["Knowledge Indexing"]
  node_jira["JIRA Integration<br/>[jira_service.py]"]
  node_settings["Application Settings<br/>[settings.py]"]
  node_project_config["Project Configuration"]
  node_agent_activity["Agent Activity<br/>[agent_activity.py]"]
end

subgraph group_data["Domain Data"]
  node_repository[("Project Repository")]
  node_database[("Database Configuration<br/>[db.py]")]
  node_db_models["Database Models<br/>[db_models.py]"]
  node_domain_models["Workflow and Domain Models"]
end

node_user(("User"))

node_user -->|"uses"| node_frontend
node_frontend -->|"sends requests"| node_api
node_api -->|"authorizes"| node_auth
node_api -->|"routes workflow"| node_workflow_service
node_api -->|"starts execution"| node_execution_service
node_workflow_service -->|"invokes"| node_graph
node_graph -->|"dispatches"| node_agents
node_agents -->|"requests generation"| node_llm
node_agents -->|"retrieves context"| node_knowledge_agent
node_knowledge_agent -->|"searches"| node_knowledge
node_knowledge -->|"indexes documents"| node_indexer
node_workflow_service -->|"reads and writes"| node_repository
node_execution_service -->|"runs tests"| node_runner
node_runner -.->|"dispatches runs"| node_workspace
node_workspace -->|"streams run status"| node_user
node_workspace -->|"posts run results"| node_api
node_workspace -->|"fetches credentials"| node_workspace
node_execution_service -.->|"queues batches"| node_batch
node_batch -->|"runs scripts"| node_runner
node_agents -->|"analyzes failures"| node_analysis
node_agents -->|"performs scans"| node_special_scans
node_agents -->|"syncs defects"| node_jira
node_api -->|"manages projects"| node_repository
node_repository -->|"uses configured store"| node_database
node_database -->|"configures ORM"| node_db_models
node_repository -->|"persists domain data"| node_domain_models
node_api -->|"configures projects"| node_project_config
node_agents -->|"records activity"| node_agent_activity
node_settings -->|"configures"| node_database

click node_frontend "https://github.com/sridhar2104/agentic-ai-automation/blob/main/frontend/js/app.js"
click node_api "https://github.com/sridhar2104/agentic-ai-automation/blob/main/backend/main.py"
click node_auth "https://github.com/sridhar2104/agentic-ai-automation/blob/main/backend/dependencies/auth_dependencies.py"
click node_workflow_service "https://github.com/sridhar2104/agentic-ai-automation/blob/main/backend/services/workflow_service.py"
click node_graph "https://github.com/sridhar2104/agentic-ai-automation/blob/main/backend/graph/workflow.py"
click node_agents "https://github.com/sridhar2104/agentic-ai-automation/tree/main/backend/agents"
click node_knowledge_agent "https://github.com/sridhar2104/agentic-ai-automation/blob/main/backend/agents/knowledge_retrieval_agent.py"
click node_llm "https://github.com/sridhar2104/agentic-ai-automation/blob/main/backend/services/llm.py"
click node_knowledge "https://github.com/sridhar2104/agentic-ai-automation/blob/main/backend/services/knowledge_service.py"
click node_indexer "https://github.com/sridhar2104/agentic-ai-automation/blob/main/backend/services/knowledge_indexer.py"
click node_execution_service "https://github.com/sridhar2104/agentic-ai-automation/blob/main/backend/services/execution_service.py"
click node_runner "https://github.com/sridhar2104/agentic-ai-automation/blob/main/backend/services/playwright_runner.py"
click node_workspace "https://github.com/sridhar2104/agentic-ai-automation/blob/main/backend/playwrightt/lib/execution-engine.ts"
click node_batch "https://github.com/sridhar2104/agentic-ai-automation/blob/main/backend/services/batch_queue_manager.py"
click node_analysis "https://github.com/sridhar2104/agentic-ai-automation/blob/main/backend/services/execution_analyzer.py"
click node_jira "https://github.com/sridhar2104/agentic-ai-automation/blob/main/backend/services/jira_service.py"
click node_special_scans "https://github.com/sridhar2104/agentic-ai-automation/tree/main/backend/services"
click node_repository "https://github.com/sridhar2104/agentic-ai-automation/blob/main/backend/repository/project_repository.py"
click node_database "https://github.com/sridhar2104/agentic-ai-automation/blob/main/backend/database/db.py"
click node_db_models "https://github.com/sridhar2104/agentic-ai-automation/blob/main/backend/database/db_models.py"
click node_domain_models "https://github.com/sridhar2104/agentic-ai-automation/tree/main/backend/models"
click node_settings "https://github.com/sridhar2104/agentic-ai-automation/blob/main/backend/config/settings.py"
click node_project_config "https://github.com/sridhar2104/agentic-ai-automation/blob/main/backend/services/project_configuration.py"
click node_agent_activity "https://github.com/sridhar2104/agentic-ai-automation/blob/main/backend/services/agent_activity.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_frontend,node_api,node_user toneBlue
class node_workflow_service,node_graph,node_agents,node_knowledge_agent,node_llm toneAmber
class node_execution_service,node_runner,node_workspace,node_batch,node_analysis,node_special_scans toneMint
class node_auth,node_knowledge,node_indexer,node_jira,node_settings,node_project_config,node_agent_activity toneRose
class node_repository,node_database,node_db_models,node_domain_models toneIndigo
```

## Components

### User Experience

- [Web Frontend](https://github.com/sridhar2104/agentic-ai-automation/blob/main/frontend/js/app.js): `frontend/js/app.js`
- [FastAPI API](https://github.com/sridhar2104/agentic-ai-automation/blob/main/backend/main.py): `backend/main.py`

### AI Workflow

- [Workflow Service](https://github.com/sridhar2104/agentic-ai-automation/blob/main/backend/services/workflow_service.py): `backend/services/workflow_service.py`
- [LangGraph Workflow](https://github.com/sridhar2104/agentic-ai-automation/blob/main/backend/graph/workflow.py): `backend/graph/workflow.py`
- [Agent Pipeline](https://github.com/sridhar2104/agentic-ai-automation/tree/main/backend/agents): `backend/agents`
- [Knowledge Retrieval](https://github.com/sridhar2104/agentic-ai-automation/blob/main/backend/agents/knowledge_retrieval_agent.py): `backend/agents/knowledge_retrieval_agent.py`
- [LLM Providers](https://github.com/sridhar2104/agentic-ai-automation/blob/main/backend/services/llm.py): `backend/services/llm.py`

### Test Automation

- [Execution Service](https://github.com/sridhar2104/agentic-ai-automation/blob/main/backend/services/execution_service.py): `backend/services/execution_service.py`
- [Playwright Runner](https://github.com/sridhar2104/agentic-ai-automation/blob/main/backend/services/playwright_runner.py): `backend/services/playwright_runner.py`
- [Playwright Workspace](https://github.com/sridhar2104/agentic-ai-automation/blob/main/backend/playwrightt/lib/execution-engine.ts): `backend/playwrightt/lib/execution-engine.ts`
- [Batch Execution](https://github.com/sridhar2104/agentic-ai-automation/blob/main/backend/services/batch_queue_manager.py): `backend/services/batch_queue_manager.py`
- [Execution Analysis](https://github.com/sridhar2104/agentic-ai-automation/blob/main/backend/services/execution_analyzer.py): `backend/services/execution_analyzer.py`
- [Accessibility and Visual Scans](https://github.com/sridhar2104/agentic-ai-automation/tree/main/backend/services): `backend/services`

### Platform Services

- [Authentication and RBAC](https://github.com/sridhar2104/agentic-ai-automation/blob/main/backend/dependencies/auth_dependencies.py): `backend/dependencies/auth_dependencies.py`
- [Knowledge Base and RAG](https://github.com/sridhar2104/agentic-ai-automation/blob/main/backend/services/knowledge_service.py): `backend/services/knowledge_service.py`
- [Knowledge Indexing](https://github.com/sridhar2104/agentic-ai-automation/blob/main/backend/services/knowledge_indexer.py): `backend/services/knowledge_indexer.py`
- [JIRA Integration](https://github.com/sridhar2104/agentic-ai-automation/blob/main/backend/services/jira_service.py): `backend/services/jira_service.py`
- [Application Settings](https://github.com/sridhar2104/agentic-ai-automation/blob/main/backend/config/settings.py): `backend/config/settings.py`
- [Project Configuration](https://github.com/sridhar2104/agentic-ai-automation/blob/main/backend/services/project_configuration.py): `backend/services/project_configuration.py`
- [Agent Activity](https://github.com/sridhar2104/agentic-ai-automation/blob/main/backend/services/agent_activity.py): `backend/services/agent_activity.py`

### Domain Data

- [Project Repository](https://github.com/sridhar2104/agentic-ai-automation/blob/main/backend/repository/project_repository.py): `backend/repository/project_repository.py`
- [Database Configuration](https://github.com/sridhar2104/agentic-ai-automation/blob/main/backend/database/db.py): `backend/database/db.py`
- [Database Models](https://github.com/sridhar2104/agentic-ai-automation/blob/main/backend/database/db_models.py): `backend/database/db_models.py`
- [Workflow and Domain Models](https://github.com/sridhar2104/agentic-ai-automation/tree/main/backend/models): `backend/models`

### Other components

- **User**

## Connections

- User → Web Frontend: uses (evidence: `README.md`)
- Web Frontend → FastAPI API: sends requests (evidence: `README.md`)
- FastAPI API → Authentication and RBAC: authorizes (evidence: `backend/main.py`)
- FastAPI API → Workflow Service: routes workflow (evidence: `backend/main.py`)
- FastAPI API → Execution Service: starts execution (evidence: `backend/main.py`)
- Workflow Service → LangGraph Workflow: invokes (evidence: `README.md`)
- LangGraph Workflow → Agent Pipeline: dispatches (evidence: `README.md`)
- Agent Pipeline → LLM Providers: requests generation (evidence: `README.md`)
- Agent Pipeline → Knowledge Retrieval: retrieves context (evidence: `backend/agents/knowledge_retrieval_agent.py`)
- Knowledge Retrieval → Knowledge Base and RAG: searches (evidence: `backend/agents/knowledge_retrieval_agent.py`)
- Knowledge Base and RAG → Knowledge Indexing: indexes documents (evidence: `backend/services/knowledge_service.py`)
- Workflow Service → Project Repository: reads and writes (evidence: `backend/main.py`)
- Execution Service → Playwright Runner: runs tests (evidence: `README.md`)
- Playwright Runner → Playwright Workspace: dispatches runs
- Playwright Workspace → User: streams run status (evidence: `README.md`)
- Playwright Workspace → FastAPI API: posts run results (evidence: `backend/playwrightt/lib/execution-engine.ts`)
- Playwright Workspace → Playwright Workspace: fetches credentials (evidence: `backend/playwrightt/lib/execution-engine.ts`)
- Execution Service → Batch Execution: queues batches
- Batch Execution → Playwright Runner: runs scripts (evidence: `backend/services/batch_queue_manager.py`)
- Agent Pipeline → Execution Analysis: analyzes failures (evidence: `README.md`)
- Agent Pipeline → Accessibility and Visual Scans: performs scans (evidence: `README.md`)
- Agent Pipeline → JIRA Integration: syncs defects (evidence: `README.md`)
- FastAPI API → Project Repository: manages projects (evidence: `backend/main.py`)
- Project Repository → Database Configuration: uses configured store (evidence: `backend/repository/project_repository.py`)
- Database Configuration → Database Models: configures ORM (evidence: `backend/database/db_models.py`)
- Project Repository → Workflow and Domain Models: persists domain data (evidence: `backend/repository/project_repository.py`)
- FastAPI API → Project Configuration: configures projects (evidence: `backend/main.py`)
- Agent Pipeline → Agent Activity: records activity (evidence: `backend/agents/base.py`)
- Application Settings → Database Configuration: configures (evidence: `backend/database/db.py`)
