# abimanyu2515/agentic-ai-automation architecture

> Architecture diagram of the GitHub repository abimanyu2515/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/abimanyu2515/agentic-ai-automation
- Repository: https://github.com/abimanyu2515/agentic-ai-automation

## Overview

This is an AI-powered test automation platform. Users create a project, ingest requirements, generate and review scenarios and test cases, generate Playwright scripts, execute them, and inspect analyzed results. The LangGraph workflow and shared state coordinate distinct domain stages; FastAPI exposes the product, while repositories persist project and execution data. The README documents JIRA, knowledge retrieval, accessibility, visual regression, and analytics capabilities. Some links reflect documented behavior because their implementation excerpts were not provided.

Main entry points: [`backend/graph/workflow.py`](https://github.com/abimanyu2515/agentic-ai-automation/blob/main/backend/graph/workflow.py) (LangGraph workflow), [`backend/main.py`](https://github.com/abimanyu2515/agentic-ai-automation/blob/main/backend/main.py) (FastAPI API), [`backend/playwrightt/lib/execution-engine.ts`](https://github.com/abimanyu2515/agentic-ai-automation/blob/main/backend/playwrightt/lib/execution-engine.ts) (Playwright workspace), [`backend/repository/project_repository.py`](https://github.com/abimanyu2515/agentic-ai-automation/blob/main/backend/repository/project_repository.py) (Project repository)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_api_ui["Product interface"]
  node_frontend["Web dashboard<br/>[app.js]"]
  node_api["FastAPI API<br/>[main.py]"]
end

subgraph group_workflow["Test workflow"]
  node_workflow_service["Workflow service"]
  node_graph["LangGraph workflow<br/>[workflow.py]"]
  node_state["Workflow state<br/>[state.py]"]
  node_requirements["Requirement ingestion<br/>[requirement.py]"]
  node_scenarios["Scenario generation<br/>[scenario_agent.py]"]
  node_test_cases["Test case generation"]
  node_review["Human review"]
  node_script_generation["Script generation"]
  node_knowledge["Knowledge retrieval"]
end

subgraph group_execution["Execution and analysis"]
  node_execution_service["Execution service"]
  node_runner["Playwright runner"]
  node_workspace["Playwright workspace"]
  node_analysis["Execution analysis"]
  node_results["Execution results"]
  node_accessibility["Accessibility scans"]
  node_visual["Visual regression"]
end

subgraph group_platform["Data and integrations"]
  node_knowledge_service["Knowledge service"]
  node_jira["JIRA integration<br/>[jira_service.py]"]
  node_reports["Reports and analytics<br/>[report_service.py]"]
  node_repository[("Project repository")]
  node_postgres_repository[("PostgreSQL repository")]
end

node_user(("User"))

node_user -->|"uses"| node_frontend
node_frontend -->|"sends requests"| node_api
node_api -->|"invokes"| node_workflow_service
node_workflow_service -->|"invokes workflow"| node_graph
node_graph -->|"updates"| node_state
node_graph -->|"processes"| node_requirements
node_graph -->|"routes to"| node_scenarios
node_graph -->|"routes to"| node_test_cases
node_graph -->|"gates approval"| node_review
node_graph -->|"routes to"| node_script_generation
node_graph -.->|"routes to"| node_knowledge
node_knowledge -->|"searches"| node_knowledge_service
node_knowledge_service -->|"reads records"| node_repository
node_api -->|"starts execution"| node_execution_service
node_execution_service -->|"runs tests"| node_runner
node_runner -.->|"dispatches"| node_workspace
node_workspace -->|"posts run events"| node_api
node_workspace -.->|"produces results"| node_results
node_graph -.->|"analyzes failures"| node_analysis
node_analysis -.->|"annotates"| node_results
node_api -.->|"starts scans"| node_accessibility
node_api -.->|"starts scans"| node_visual
node_api -.->|"syncs issues"| node_jira
node_api -.->|"serves reports"| node_reports
node_api -->|"reads and writes"| node_repository
node_repository -->|"supports PostgreSQL"| node_postgres_repository

click node_frontend "https://github.com/abimanyu2515/agentic-ai-automation/blob/main/frontend/js/app.js"
click node_api "https://github.com/abimanyu2515/agentic-ai-automation/blob/main/backend/main.py"
click node_workflow_service "https://github.com/abimanyu2515/agentic-ai-automation/blob/main/backend/services/workflow_service.py"
click node_graph "https://github.com/abimanyu2515/agentic-ai-automation/blob/main/backend/graph/workflow.py"
click node_state "https://github.com/abimanyu2515/agentic-ai-automation/blob/main/backend/models/state.py"
click node_requirements "https://github.com/abimanyu2515/agentic-ai-automation/blob/main/backend/models/requirement.py"
click node_scenarios "https://github.com/abimanyu2515/agentic-ai-automation/blob/main/backend/agents/scenario_agent.py"
click node_test_cases "https://github.com/abimanyu2515/agentic-ai-automation/blob/main/backend/agents/qa_story_analyzer_agent.py"
click node_review "https://github.com/abimanyu2515/agentic-ai-automation/blob/main/backend/agents/human_approval_agent.py"
click node_script_generation "https://github.com/abimanyu2515/agentic-ai-automation/blob/main/backend/agents/script_generator_agent.py"
click node_knowledge "https://github.com/abimanyu2515/agentic-ai-automation/blob/main/backend/agents/knowledge_retrieval_agent.py"
click node_knowledge_service "https://github.com/abimanyu2515/agentic-ai-automation/blob/main/backend/services/knowledge_service.py"
click node_execution_service "https://github.com/abimanyu2515/agentic-ai-automation/blob/main/backend/services/execution_service.py"
click node_runner "https://github.com/abimanyu2515/agentic-ai-automation/blob/main/backend/services/playwright_runner.py"
click node_workspace "https://github.com/abimanyu2515/agentic-ai-automation/blob/main/backend/playwrightt/lib/execution-engine.ts"
click node_analysis "https://github.com/abimanyu2515/agentic-ai-automation/blob/main/backend/services/execution_analyzer.py"
click node_results "https://github.com/abimanyu2515/agentic-ai-automation/blob/main/backend/models/execution_result.py"
click node_accessibility "https://github.com/abimanyu2515/agentic-ai-automation/blob/main/backend/services/accessibility_scan_service.py"
click node_visual "https://github.com/abimanyu2515/agentic-ai-automation/blob/main/backend/services/visual_regression_service.py"
click node_jira "https://github.com/abimanyu2515/agentic-ai-automation/blob/main/backend/services/jira_service.py"
click node_reports "https://github.com/abimanyu2515/agentic-ai-automation/blob/main/backend/services/report_service.py"
click node_repository "https://github.com/abimanyu2515/agentic-ai-automation/blob/main/backend/repository/project_repository.py"
click node_postgres_repository "https://github.com/abimanyu2515/agentic-ai-automation/blob/main/backend/repository/postgres_project_repository.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_state,node_requirements,node_scenarios,node_test_cases,node_review,node_script_generation,node_knowledge toneAmber
class node_execution_service,node_runner,node_workspace,node_analysis,node_results,node_accessibility,node_visual toneMint
class node_knowledge_service,node_jira,node_reports,node_repository,node_postgres_repository toneRose
```

## Components

### Product interface

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

### Test workflow

- [Workflow service](https://github.com/abimanyu2515/agentic-ai-automation/blob/main/backend/services/workflow_service.py): `backend/services/workflow_service.py`
- [LangGraph workflow](https://github.com/abimanyu2515/agentic-ai-automation/blob/main/backend/graph/workflow.py): `backend/graph/workflow.py`
- [Workflow state](https://github.com/abimanyu2515/agentic-ai-automation/blob/main/backend/models/state.py): `backend/models/state.py`
- [Requirement ingestion](https://github.com/abimanyu2515/agentic-ai-automation/blob/main/backend/models/requirement.py): `backend/models/requirement.py`
- [Scenario generation](https://github.com/abimanyu2515/agentic-ai-automation/blob/main/backend/agents/scenario_agent.py): `backend/agents/scenario_agent.py`
- [Test case generation](https://github.com/abimanyu2515/agentic-ai-automation/blob/main/backend/agents/qa_story_analyzer_agent.py): `backend/agents/qa_story_analyzer_agent.py`
- [Human review](https://github.com/abimanyu2515/agentic-ai-automation/blob/main/backend/agents/human_approval_agent.py): `backend/agents/human_approval_agent.py`
- [Script generation](https://github.com/abimanyu2515/agentic-ai-automation/blob/main/backend/agents/script_generator_agent.py): `backend/agents/script_generator_agent.py`
- [Knowledge retrieval](https://github.com/abimanyu2515/agentic-ai-automation/blob/main/backend/agents/knowledge_retrieval_agent.py): `backend/agents/knowledge_retrieval_agent.py`

### Execution and analysis

- [Execution service](https://github.com/abimanyu2515/agentic-ai-automation/blob/main/backend/services/execution_service.py): `backend/services/execution_service.py`
- [Playwright runner](https://github.com/abimanyu2515/agentic-ai-automation/blob/main/backend/services/playwright_runner.py): `backend/services/playwright_runner.py`
- [Playwright workspace](https://github.com/abimanyu2515/agentic-ai-automation/blob/main/backend/playwrightt/lib/execution-engine.ts): `backend/playwrightt/lib/execution-engine.ts`
- [Execution analysis](https://github.com/abimanyu2515/agentic-ai-automation/blob/main/backend/services/execution_analyzer.py): `backend/services/execution_analyzer.py`
- [Execution results](https://github.com/abimanyu2515/agentic-ai-automation/blob/main/backend/models/execution_result.py): `backend/models/execution_result.py`
- [Accessibility scans](https://github.com/abimanyu2515/agentic-ai-automation/blob/main/backend/services/accessibility_scan_service.py): `backend/services/accessibility_scan_service.py`
- [Visual regression](https://github.com/abimanyu2515/agentic-ai-automation/blob/main/backend/services/visual_regression_service.py): `backend/services/visual_regression_service.py`

### Data and integrations

- [Knowledge service](https://github.com/abimanyu2515/agentic-ai-automation/blob/main/backend/services/knowledge_service.py): `backend/services/knowledge_service.py`
- [JIRA integration](https://github.com/abimanyu2515/agentic-ai-automation/blob/main/backend/services/jira_service.py): `backend/services/jira_service.py`
- [Reports and analytics](https://github.com/abimanyu2515/agentic-ai-automation/blob/main/backend/services/report_service.py): `backend/services/report_service.py`
- [Project repository](https://github.com/abimanyu2515/agentic-ai-automation/blob/main/backend/repository/project_repository.py): `backend/repository/project_repository.py`
- [PostgreSQL repository](https://github.com/abimanyu2515/agentic-ai-automation/blob/main/backend/repository/postgres_project_repository.py): `backend/repository/postgres_project_repository.py`

### Other components

- **User**

## Connections

- User → Web dashboard: uses (evidence: `README.md`)
- Web dashboard → FastAPI API: sends requests (evidence: `README.md`)
- FastAPI API → Workflow service: invokes (evidence: `backend/main.py`)
- Workflow service → LangGraph workflow: invokes workflow (evidence: `README.md`)
- LangGraph workflow → Workflow state: updates (evidence: `README.md`)
- LangGraph workflow → Requirement ingestion: processes (evidence: `README.md`)
- LangGraph workflow → Scenario generation: routes to (evidence: `README.md`)
- LangGraph workflow → Test case generation: routes to (evidence: `README.md`)
- LangGraph workflow → Human review: gates approval (evidence: `README.md`)
- LangGraph workflow → Script generation: routes to (evidence: `README.md`)
- LangGraph workflow → Knowledge retrieval: routes to
- Knowledge retrieval → Knowledge service: searches (evidence: `backend/agents/knowledge_retrieval_agent.py`)
- Knowledge service → Project repository: reads records (evidence: `backend/services/knowledge_service.py`)
- FastAPI API → Execution service: starts execution (evidence: `backend/main.py`)
- Execution service → Playwright runner: runs tests (evidence: `README.md`)
- Playwright runner → Playwright workspace: dispatches
- Playwright workspace → FastAPI API: posts run events (evidence: `backend/playwrightt/lib/execution-engine.ts`)
- Playwright workspace → Execution results: produces results
- LangGraph workflow → Execution analysis: analyzes failures
- Execution analysis → Execution results: annotates
- FastAPI API → Accessibility scans: starts scans
- FastAPI API → Visual regression: starts scans
- FastAPI API → JIRA integration: syncs issues
- FastAPI API → Reports and analytics: serves reports
- FastAPI API → Project repository: reads and writes (evidence: `backend/main.py`)
- Project repository → PostgreSQL repository: supports PostgreSQL (evidence: `backend/repository/project_repository.py`)
