# imon333/job-apply-ai-agent architecture

> Architecture diagram of the GitHub repository imon333/job-apply-ai-agent, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-14). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/imon333/job-apply-ai-agent
- Repository: https://github.com/imon333/job-apply-ai-agent

## Overview

Job Application AI is a job-search and application-tailoring product. Its main workflow runs from a user’s job search in the web UI or CLI, through LinkedIn listing and description collection, skill analysis, and CV customization, to downloadable or saved application files. The repository also contains a separate Word-document tailoring implementation that uses OpenAI to update both CVs and cover letters; no wiring between it and the main application is shown. Edges reflect README statements and indexed or excerpted references; unsampled implementation details are omitted.

Main entry points: [`job_apply_ai/ui/app.py`](https://github.com/imon333/job-apply-ai-agent/blob/main/job_apply_ai/ui/app.py) (Web application), [`job_apply_ai/__main__.py`](https://github.com/imon333/job-apply-ai-agent/blob/main/job_apply_ai/__main__.py) (CLI commands), [`job_apply_ai/scraper/linkedin.py`](https://github.com/imon333/job-apply-ai-agent/blob/main/job_apply_ai/scraper/linkedin.py) (LinkedIn scraper), [`job_apply_ai/cv_modifier/cv_analyzer.py`](https://github.com/imon333/job-apply-ai-agent/blob/main/job_apply_ai/cv_modifier/cv_analyzer.py) (Job skill analysis)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["User interfaces"]
  node_cli["CLI commands<br/>[__main__.py]"]
  node_web["Web application<br/>[app.py]"]
  node_web_templates["Web pages<br/>[index.html]"]
end

subgraph group_jobs["Job discovery"]
  node_linkedin_scraper["LinkedIn scraper<br/>[linkedin.py]"]
  node_linkedin["LinkedIn jobs"]
  node_job_files["Job spreadsheets"]
end

subgraph group_tailoring["CV tailoring"]
  node_analyzer["Job skill analysis<br/>[cv_analyzer.py]"]
  node_cv_modifier["CV customization<br/>[cv_analyzer.py]"]
  node_output_files["Tailored CV files"]
  node_helpers["File and Excel helpers<br/>[helpers.py]"]
end

subgraph group_documents["Document tailoring API"]
  node_doc_parser["Word document parser<br/>[document_parser.py]"]
  node_doc_updater["CV and letter updater"]
  node_openai_integration["AI tailoring"]
  node_tailored_documents["Tailored documents"]
end

node_user(("Applicant"))
node_openai["OpenAI API"]

node_user -->|"uses"| node_web
node_user -->|"runs"| node_cli
node_web -->|"renders"| node_web_templates
node_cli -->|"runs scraping"| node_linkedin_scraper
node_web -->|"searches jobs"| node_linkedin_scraper
node_linkedin_scraper -->|"scrapes listings"| node_linkedin
node_linkedin_scraper -->|"saves listings"| node_job_files
node_cli -->|"analyzes jobs"| node_analyzer
node_web -->|"extracts skills"| node_analyzer
node_analyzer -->|"provides skill matches"| node_cv_modifier
node_cli -->|"tailors CVs"| node_cv_modifier
node_web -->|"updates CV"| node_cv_modifier
node_cv_modifier -->|"writes CVs"| node_output_files
node_web -->|"stores outputs"| node_output_files
node_analyzer -->|"uses helpers"| node_helpers
node_doc_updater -->|"parses source docs"| node_doc_parser
node_doc_updater -->|"requests tailoring"| node_openai_integration
node_openai_integration -->|"calls"| node_openai
node_doc_updater -->|"writes documents"| node_tailored_documents

click node_cli "https://github.com/imon333/job-apply-ai-agent/blob/main/job_apply_ai/__main__.py"
click node_web "https://github.com/imon333/job-apply-ai-agent/blob/main/job_apply_ai/ui/app.py"
click node_web_templates "https://github.com/imon333/job-apply-ai-agent/blob/main/job_apply_ai/ui/templates/index.html"
click node_linkedin_scraper "https://github.com/imon333/job-apply-ai-agent/blob/main/job_apply_ai/scraper/linkedin.py"
click node_analyzer "https://github.com/imon333/job-apply-ai-agent/blob/main/job_apply_ai/cv_modifier/cv_analyzer.py"
click node_cv_modifier "https://github.com/imon333/job-apply-ai-agent/blob/main/job_apply_ai/cv_modifier/cv_analyzer.py"
click node_helpers "https://github.com/imon333/job-apply-ai-agent/blob/main/job_apply_ai/utils/helpers.py"
click node_doc_parser "https://github.com/imon333/job-apply-ai-agent/blob/main/Automatic%20CV%20and%20Cover%20Letter%20with%20API/src/parsers/document_parser.py"
click node_doc_updater "https://github.com/imon333/job-apply-ai-agent/blob/main/Automatic%20CV%20and%20Cover%20Letter%20with%20API/src/updaters/document_updater.py"
click node_openai_integration "https://github.com/imon333/job-apply-ai-agent/blob/main/Automatic%20CV%20and%20Cover%20Letter%20with%20API/src/utils/openai_integration.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_cli,node_web,node_web_templates toneBlue
class node_linkedin_scraper,node_linkedin,node_job_files toneAmber
class node_analyzer,node_cv_modifier,node_output_files,node_helpers,node_openai toneMint
class node_doc_parser,node_doc_updater,node_openai_integration,node_tailored_documents toneRose
class node_user toneIndigo
```

## Components

### User interfaces

- [CLI commands](https://github.com/imon333/job-apply-ai-agent/blob/main/job_apply_ai/__main__.py): `job_apply_ai/__main__.py`
- [Web application](https://github.com/imon333/job-apply-ai-agent/blob/main/job_apply_ai/ui/app.py): `job_apply_ai/ui/app.py`
- [Web pages](https://github.com/imon333/job-apply-ai-agent/blob/main/job_apply_ai/ui/templates/index.html): `job_apply_ai/ui/templates/index.html`

### Job discovery

- [LinkedIn scraper](https://github.com/imon333/job-apply-ai-agent/blob/main/job_apply_ai/scraper/linkedin.py): `job_apply_ai/scraper/linkedin.py`
- **LinkedIn jobs**
- **Job spreadsheets**

### CV tailoring

- [Job skill analysis](https://github.com/imon333/job-apply-ai-agent/blob/main/job_apply_ai/cv_modifier/cv_analyzer.py): `job_apply_ai/cv_modifier/cv_analyzer.py`
- [CV customization](https://github.com/imon333/job-apply-ai-agent/blob/main/job_apply_ai/cv_modifier/cv_analyzer.py): `job_apply_ai/cv_modifier/cv_analyzer.py`
- **Tailored CV files**
- [File and Excel helpers](https://github.com/imon333/job-apply-ai-agent/blob/main/job_apply_ai/utils/helpers.py): `job_apply_ai/utils/helpers.py`

### Document tailoring API

- [Word document parser](https://github.com/imon333/job-apply-ai-agent/blob/main/Automatic%20CV%20and%20Cover%20Letter%20with%20API/src/parsers/document_parser.py): `Automatic CV and Cover Letter with API/src/parsers/document_parser.py`
- [CV and letter updater](https://github.com/imon333/job-apply-ai-agent/blob/main/Automatic%20CV%20and%20Cover%20Letter%20with%20API/src/updaters/document_updater.py): `Automatic CV and Cover Letter with API/src/updaters/document_updater.py`
- [AI tailoring](https://github.com/imon333/job-apply-ai-agent/blob/main/Automatic%20CV%20and%20Cover%20Letter%20with%20API/src/utils/openai_integration.py): `Automatic CV and Cover Letter with API/src/utils/openai_integration.py`
- **Tailored documents**

### Other components

- **Applicant**
- **OpenAI API**

## Connections

- Applicant → Web application: uses (evidence: `README.md`)
- Applicant → CLI commands: runs (evidence: `README.md`)
- Web application → Web pages: renders (evidence: `job_apply_ai/ui/app.py`)
- CLI commands → LinkedIn scraper: runs scraping (evidence: `job_apply_ai/__main__.py`)
- Web application → LinkedIn scraper: searches jobs (evidence: `job_apply_ai/ui/app.py`)
- LinkedIn scraper → LinkedIn jobs: scrapes listings (evidence: `job_apply_ai/scraper/linkedin.py`)
- LinkedIn scraper → Job spreadsheets: saves listings (evidence: `job_apply_ai/scraper/linkedin.py`)
- CLI commands → Job skill analysis: analyzes jobs (evidence: `job_apply_ai/__main__.py`)
- Web application → Job skill analysis: extracts skills (evidence: `job_apply_ai/ui/app.py`)
- Job skill analysis → CV customization: provides skill matches (evidence: `job_apply_ai/cv_modifier/cv_analyzer.py`)
- CLI commands → CV customization: tailors CVs (evidence: `job_apply_ai/__main__.py`)
- Web application → CV customization: updates CV (evidence: `job_apply_ai/ui/app.py`)
- CV customization → Tailored CV files: writes CVs (evidence: `job_apply_ai/cv_modifier/cv_analyzer.py`)
- Web application → Tailored CV files: stores outputs (evidence: `job_apply_ai/ui/app.py`)
- Job skill analysis → File and Excel helpers: uses helpers (evidence: `job_apply_ai/cv_modifier/cv_analyzer.py`)
- CV and letter updater → Word document parser: parses source docs (evidence: `Automatic CV and Cover Letter with API/src/updaters/document_updater.py`)
- CV and letter updater → AI tailoring: requests tailoring (evidence: `Automatic CV and Cover Letter with API/src/updaters/document_updater.py`)
- AI tailoring → OpenAI API: calls (evidence: `Automatic CV and Cover Letter with API/src/utils/openai_integration.py`)
- CV and letter updater → Tailored documents: writes documents (evidence: `Automatic CV and Cover Letter with API/src/updaters/document_updater.py`)
