# sushant17112000/ai-job-agent architecture

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

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

## Overview

This is an AI job-search agent: it reads a candidate’s PDF CV, gathers listings from multiple job portals, scores matches, and produces an Excel report. The principal workflow is orchestrated by `main.py`, which runs the scrapers concurrently and coordinates profile parsing, matching, and report generation. The graph includes each indexed scraper and the shared scraper base. Some orchestration details and scraper implementations were not excerpted, so those links rely on the indexed references rather than claims about unseen internals.

Main entry points: [`main.py`](https://github.com/sushant17112000/ai-job-agent/blob/main/main.py) (Search Orchestrator), [`src/scrapers/base_scraper.py`](https://github.com/sushant17112000/ai-job-agent/blob/main/src/scrapers/base_scraper.py) (Scraper Base), [`src/cv_parser.py`](https://github.com/sushant17112000/ai-job-agent/blob/main/src/cv_parser.py) (CV Parser), [`src/scrapers/adzuna_scraper.py`](https://github.com/sushant17112000/ai-job-agent/blob/main/src/scrapers/adzuna_scraper.py) (Adzuna Scraper)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["Workflow"]
  node_main["Search Orchestrator<br/>[main.py]"]
  node_config["Search Configuration<br/>[config.py]"]
  node_cv["CV Parser<br/>[cv_parser.py]"]
end

subgraph group_collection["Job Collection"]
  node_scraper_base["Scraper Base<br/>[base_scraper.py]"]
  node_adzuna["Adzuna Scraper<br/>[adzuna_scraper.py]"]
  node_iimjobs["IIMJobs Scraper<br/>[iimjobs_scraper.py]"]
  node_jobstreet["JobStreet Scraper"]
  node_jsearch["JSearch Scraper<br/>[jsearch_scraper.py]"]
  node_linkedin["LinkedIn Scraper"]
  node_naukri["Naukri Scraper<br/>[naukri_scraper.py]"]
  node_ncs["NCS Scraper<br/>[ncs_scraper.py]"]
  node_timesjobs["TimesJobs Scraper"]
end

subgraph group_results["Matching And Reporting"]
  node_matcher["Job Matcher<br/>[job_matcher.py]"]
  node_excel["Excel Report<br/>[excel_generator.py]"]
end

node_user(("Job Seeker"))
node_groq{{"Groq LLM"}}
node_report_store[("Report Files")]

node_user -->|"starts search"| node_main
node_main -->|"reads settings"| node_config
node_main -->|"parses CV"| node_cv
node_cv -->|"extracts profile"| node_groq
node_main -->|"runs scraper"| node_linkedin
node_main -->|"runs scraper"| node_naukri
node_main -->|"runs scraper"| node_iimjobs
node_main -->|"runs scraper"| node_jobstreet
node_main -->|"runs scraper"| node_ncs
node_main -->|"runs scraper"| node_timesjobs
node_main -->|"runs scraper"| node_adzuna
node_main -->|"runs scraper"| node_jsearch
node_linkedin -->|"uses helpers"| node_scraper_base
node_iimjobs -->|"uses helpers"| node_scraper_base
node_jobstreet -->|"uses helpers"| node_scraper_base
node_jsearch -->|"uses helpers"| node_scraper_base
node_adzuna -->|"uses helpers"| node_scraper_base
node_naukri -->|"uses helpers"| node_scraper_base
node_ncs -->|"uses helpers"| node_scraper_base
node_timesjobs -->|"uses helpers"| node_scraper_base
node_main -->|"scores listings"| node_matcher
node_matcher -->|"scores matches"| node_groq
node_main -->|"generates report"| node_excel
node_excel -->|"writes workbook"| node_report_store

click node_main "https://github.com/sushant17112000/ai-job-agent/blob/main/main.py"
click node_config "https://github.com/sushant17112000/ai-job-agent/blob/main/config.py"
click node_cv "https://github.com/sushant17112000/ai-job-agent/blob/main/src/cv_parser.py"
click node_scraper_base "https://github.com/sushant17112000/ai-job-agent/blob/main/src/scrapers/base_scraper.py"
click node_adzuna "https://github.com/sushant17112000/ai-job-agent/blob/main/src/scrapers/adzuna_scraper.py"
click node_iimjobs "https://github.com/sushant17112000/ai-job-agent/blob/main/src/scrapers/iimjobs_scraper.py"
click node_jobstreet "https://github.com/sushant17112000/ai-job-agent/blob/main/src/scrapers/jobstreet_scraper.py"
click node_jsearch "https://github.com/sushant17112000/ai-job-agent/blob/main/src/scrapers/jsearch_scraper.py"
click node_linkedin "https://github.com/sushant17112000/ai-job-agent/blob/main/src/scrapers/linkedin_scraper.py"
click node_naukri "https://github.com/sushant17112000/ai-job-agent/blob/main/src/scrapers/naukri_scraper.py"
click node_ncs "https://github.com/sushant17112000/ai-job-agent/blob/main/src/scrapers/ncs_scraper.py"
click node_timesjobs "https://github.com/sushant17112000/ai-job-agent/blob/main/src/scrapers/timesjobs_scraper.py"
click node_matcher "https://github.com/sushant17112000/ai-job-agent/blob/main/src/job_matcher.py"
click node_excel "https://github.com/sushant17112000/ai-job-agent/blob/main/src/excel_generator.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_main,node_config,node_cv toneBlue
class node_scraper_base,node_adzuna,node_iimjobs,node_jobstreet,node_jsearch,node_linkedin,node_naukri,node_ncs,node_timesjobs,node_report_store toneAmber
class node_matcher,node_excel toneMint
class node_user,node_groq toneIndigo
```

## Components

### Workflow

- [Search Orchestrator](https://github.com/sushant17112000/ai-job-agent/blob/main/main.py): `main.py`
- [Search Configuration](https://github.com/sushant17112000/ai-job-agent/blob/main/config.py): `config.py`
- [CV Parser](https://github.com/sushant17112000/ai-job-agent/blob/main/src/cv_parser.py): `src/cv_parser.py`

### Job Collection

- [Scraper Base](https://github.com/sushant17112000/ai-job-agent/blob/main/src/scrapers/base_scraper.py): `src/scrapers/base_scraper.py`
- [Adzuna Scraper](https://github.com/sushant17112000/ai-job-agent/blob/main/src/scrapers/adzuna_scraper.py): `src/scrapers/adzuna_scraper.py`
- [IIMJobs Scraper](https://github.com/sushant17112000/ai-job-agent/blob/main/src/scrapers/iimjobs_scraper.py): `src/scrapers/iimjobs_scraper.py`
- [JobStreet Scraper](https://github.com/sushant17112000/ai-job-agent/blob/main/src/scrapers/jobstreet_scraper.py): `src/scrapers/jobstreet_scraper.py`
- [JSearch Scraper](https://github.com/sushant17112000/ai-job-agent/blob/main/src/scrapers/jsearch_scraper.py): `src/scrapers/jsearch_scraper.py`
- [LinkedIn Scraper](https://github.com/sushant17112000/ai-job-agent/blob/main/src/scrapers/linkedin_scraper.py): `src/scrapers/linkedin_scraper.py`
- [Naukri Scraper](https://github.com/sushant17112000/ai-job-agent/blob/main/src/scrapers/naukri_scraper.py): `src/scrapers/naukri_scraper.py`
- [NCS Scraper](https://github.com/sushant17112000/ai-job-agent/blob/main/src/scrapers/ncs_scraper.py): `src/scrapers/ncs_scraper.py`
- [TimesJobs Scraper](https://github.com/sushant17112000/ai-job-agent/blob/main/src/scrapers/timesjobs_scraper.py): `src/scrapers/timesjobs_scraper.py`

### Matching And Reporting

- [Job Matcher](https://github.com/sushant17112000/ai-job-agent/blob/main/src/job_matcher.py): `src/job_matcher.py`
- [Excel Report](https://github.com/sushant17112000/ai-job-agent/blob/main/src/excel_generator.py): `src/excel_generator.py`

### Other components

- **Job Seeker**
- **Groq LLM**
- **Report Files**

## Connections

- Job Seeker → Search Orchestrator: starts search (evidence: `main.py`)
- Search Orchestrator → Search Configuration: reads settings (evidence: `main.py`)
- Search Orchestrator → CV Parser: parses CV (evidence: `main.py`)
- CV Parser → Groq LLM: extracts profile (evidence: `src/cv_parser.py`)
- Search Orchestrator → LinkedIn Scraper: runs scraper (evidence: `main.py`)
- Search Orchestrator → Naukri Scraper: runs scraper (evidence: `main.py`)
- Search Orchestrator → IIMJobs Scraper: runs scraper (evidence: `main.py`)
- Search Orchestrator → JobStreet Scraper: runs scraper (evidence: `main.py`)
- Search Orchestrator → NCS Scraper: runs scraper (evidence: `main.py`)
- Search Orchestrator → TimesJobs Scraper: runs scraper (evidence: `main.py`)
- Search Orchestrator → Adzuna Scraper: runs scraper (evidence: `main.py`)
- Search Orchestrator → JSearch Scraper: runs scraper (evidence: `main.py`)
- LinkedIn Scraper → Scraper Base: uses helpers (evidence: `src/scrapers/linkedin_scraper.py`)
- IIMJobs Scraper → Scraper Base: uses helpers (evidence: `src/scrapers/iimjobs_scraper.py`)
- JobStreet Scraper → Scraper Base: uses helpers (evidence: `src/scrapers/jobstreet_scraper.py`)
- JSearch Scraper → Scraper Base: uses helpers (evidence: `src/scrapers/jsearch_scraper.py`)
- Adzuna Scraper → Scraper Base: uses helpers (evidence: `src/scrapers/adzuna_scraper.py`)
- Naukri Scraper → Scraper Base: uses helpers (evidence: `src/scrapers/naukri_scraper.py`)
- NCS Scraper → Scraper Base: uses helpers (evidence: `src/scrapers/ncs_scraper.py`)
- TimesJobs Scraper → Scraper Base: uses helpers (evidence: `src/scrapers/timesjobs_scraper.py`)
- Search Orchestrator → Job Matcher: scores listings (evidence: `main.py`)
- Job Matcher → Groq LLM: scores matches (evidence: `src/job_matcher.py`)
- Search Orchestrator → Excel Report: generates report (evidence: `main.py`)
- Excel Report → Report Files: writes workbook (evidence: `src/excel_generator.py`)
