# aziz-boujaada/jobpilot-ai architecture

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

- Interactive diagram: https://gitdiagram.com/aziz-boujaada/jobpilot-ai
- Repository: https://github.com/aziz-boujaada/jobpilot-ai

## Overview

JobPilot AI is a self-hosted n8n workflow that turns a pasted job description into a reviewed job application: it analyzes requirements, prepares candidate-matched application materials, compiles a resume, pauses for approval, then sends and tracks the application. The README documents the workflow stages and integrations; the workflow JSON itself was not sampled, so its internal call wiring is represented only where the README explicitly describes it. The Python compiler endpoint is sampled. Candidate configuration is entered in the workflow; the example JSON is a reference template, not an automatically loaded runtime input.

Main entry points: [`workflows/jobpilot-ai.json`](https://github.com/aziz-boujaada/jobpilot-ai/blob/main/workflows/jobpilot-ai.json) (Job analysis and matching), [`latex-compiler/app.py`](https://github.com/aziz-boujaada/jobpilot-ai/blob/main/latex-compiler/app.py) (LaTeX compilation API), [`config/candidate.example.json`](https://github.com/aziz-boujaada/jobpilot-ai/blob/main/config/candidate.example.json) (Profile example)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_intake["Intake and analysis"]
  node_chat["Chat trigger<br/>[jobpilot-ai.json]"]
  node_candidate["Candidate configuration<br/>[jobpilot-ai.json]"]
  node_profile_template["Profile example"]
  node_analysis["Job analysis and matching<br/>[jobpilot-ai.json]"]
  node_groq["Groq model"]
  node_parser["Structured output parser<br/>[jobpilot-ai.json]"]
end

subgraph group_materials["Application materials"]
  node_resume["Resume and email generation<br/>[jobpilot-ai.json]"]
  node_compiler_client["Compiler request<br/>[jobpilot-ai.json]"]
end

subgraph group_approval["Review and delivery"]
  node_approval["Human approval<br/>[jobpilot-ai.json]"]
  node_validation["Approval and email validation<br/>[jobpilot-ai.json]"]
  node_gmail["Gmail delivery<br/>[jobpilot-ai.json]"]
  node_cancel["Cancellation message<br/>[jobpilot-ai.json]"]
end

subgraph group_compiler["PDF compilation"]
  node_latex_service["LaTeX compilation API<br/>[app.py]"]
  node_pdf["Generated PDF<br/>[app.py]"]
end

subgraph group_tracking["Application tracking"]
  node_sheets[("Google Sheets tracking<br/>[jobpilot-ai.json]")]
  node_success["Success message<br/>[jobpilot-ai.json]"]
end

node_applicant(("Applicant"))

node_applicant -->|"submits description"| node_chat
node_chat -->|"loads profile"| node_candidate
node_profile_template -.->|"reference for"| node_candidate
node_candidate -->|"provides context"| node_analysis
node_analysis -.->|"uses model"| node_groq
node_analysis -.->|"uses parser"| node_parser
node_analysis -->|"generates materials"| node_resume
node_resume -->|"submits LaTeX"| node_compiler_client
node_compiler_client -->|"requests compilation"| node_latex_service
node_latex_service -->|"returns PDF"| node_pdf
node_pdf -->|"presents for review"| node_approval
node_approval -->|"submits decision"| node_validation
node_validation -->|"sends if valid"| node_gmail
node_gmail -->|"records application"| node_sheets
node_sheets -->|"reports success"| node_success
node_validation -->|"rejects or blocks"| node_cancel

click node_chat "https://github.com/aziz-boujaada/jobpilot-ai/blob/main/workflows/jobpilot-ai.json"
click node_candidate "https://github.com/aziz-boujaada/jobpilot-ai/blob/main/workflows/jobpilot-ai.json"
click node_profile_template "https://github.com/aziz-boujaada/jobpilot-ai/blob/main/config/candidate.example.json"
click node_analysis "https://github.com/aziz-boujaada/jobpilot-ai/blob/main/workflows/jobpilot-ai.json"
click node_parser "https://github.com/aziz-boujaada/jobpilot-ai/blob/main/workflows/jobpilot-ai.json"
click node_resume "https://github.com/aziz-boujaada/jobpilot-ai/blob/main/workflows/jobpilot-ai.json"
click node_compiler_client "https://github.com/aziz-boujaada/jobpilot-ai/blob/main/workflows/jobpilot-ai.json"
click node_latex_service "https://github.com/aziz-boujaada/jobpilot-ai/blob/main/latex-compiler/app.py"
click node_pdf "https://github.com/aziz-boujaada/jobpilot-ai/blob/main/latex-compiler/app.py"
click node_approval "https://github.com/aziz-boujaada/jobpilot-ai/blob/main/workflows/jobpilot-ai.json"
click node_validation "https://github.com/aziz-boujaada/jobpilot-ai/blob/main/workflows/jobpilot-ai.json"
click node_gmail "https://github.com/aziz-boujaada/jobpilot-ai/blob/main/workflows/jobpilot-ai.json"
click node_sheets "https://github.com/aziz-boujaada/jobpilot-ai/blob/main/workflows/jobpilot-ai.json"
click node_success "https://github.com/aziz-boujaada/jobpilot-ai/blob/main/workflows/jobpilot-ai.json"
click node_cancel "https://github.com/aziz-boujaada/jobpilot-ai/blob/main/workflows/jobpilot-ai.json"

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_chat,node_candidate,node_profile_template,node_analysis,node_groq,node_parser toneBlue
class node_resume,node_compiler_client toneAmber
class node_approval,node_validation,node_gmail,node_cancel toneMint
class node_latex_service,node_pdf toneRose
class node_sheets,node_success,node_applicant toneIndigo
```

## Components

### Intake and analysis

- [Chat trigger](https://github.com/aziz-boujaada/jobpilot-ai/blob/main/workflows/jobpilot-ai.json): `workflows/jobpilot-ai.json`
- [Candidate configuration](https://github.com/aziz-boujaada/jobpilot-ai/blob/main/workflows/jobpilot-ai.json): `workflows/jobpilot-ai.json`
- [Profile example](https://github.com/aziz-boujaada/jobpilot-ai/blob/main/config/candidate.example.json): `config/candidate.example.json`
- [Job analysis and matching](https://github.com/aziz-boujaada/jobpilot-ai/blob/main/workflows/jobpilot-ai.json): `workflows/jobpilot-ai.json`
- **Groq model**
- [Structured output parser](https://github.com/aziz-boujaada/jobpilot-ai/blob/main/workflows/jobpilot-ai.json): `workflows/jobpilot-ai.json`

### Application materials

- [Resume and email generation](https://github.com/aziz-boujaada/jobpilot-ai/blob/main/workflows/jobpilot-ai.json): `workflows/jobpilot-ai.json`
- [Compiler request](https://github.com/aziz-boujaada/jobpilot-ai/blob/main/workflows/jobpilot-ai.json): `workflows/jobpilot-ai.json`

### Review and delivery

- [Human approval](https://github.com/aziz-boujaada/jobpilot-ai/blob/main/workflows/jobpilot-ai.json): `workflows/jobpilot-ai.json`
- [Approval and email validation](https://github.com/aziz-boujaada/jobpilot-ai/blob/main/workflows/jobpilot-ai.json): `workflows/jobpilot-ai.json`
- [Gmail delivery](https://github.com/aziz-boujaada/jobpilot-ai/blob/main/workflows/jobpilot-ai.json): `workflows/jobpilot-ai.json`
- [Cancellation message](https://github.com/aziz-boujaada/jobpilot-ai/blob/main/workflows/jobpilot-ai.json): `workflows/jobpilot-ai.json`

### PDF compilation

- [LaTeX compilation API](https://github.com/aziz-boujaada/jobpilot-ai/blob/main/latex-compiler/app.py): `latex-compiler/app.py`
- [Generated PDF](https://github.com/aziz-boujaada/jobpilot-ai/blob/main/latex-compiler/app.py): `latex-compiler/app.py`

### Application tracking

- [Google Sheets tracking](https://github.com/aziz-boujaada/jobpilot-ai/blob/main/workflows/jobpilot-ai.json): `workflows/jobpilot-ai.json`
- [Success message](https://github.com/aziz-boujaada/jobpilot-ai/blob/main/workflows/jobpilot-ai.json): `workflows/jobpilot-ai.json`

### Other components

- **Applicant**

## Connections

- Applicant → Chat trigger: submits description (evidence: `README.md`)
- Chat trigger → Candidate configuration: loads profile (evidence: `README.md`)
- Profile example → Candidate configuration: reference for (evidence: `README.md`)
- Candidate configuration → Job analysis and matching: provides context (evidence: `README.md`)
- Job analysis and matching → Groq model: uses model (evidence: `README.md`)
- Job analysis and matching → Structured output parser: uses parser (evidence: `README.md`)
- Job analysis and matching → Resume and email generation: generates materials (evidence: `README.md`)
- Resume and email generation → Compiler request: submits LaTeX (evidence: `README.md`)
- Compiler request → LaTeX compilation API: requests compilation (evidence: `README.md`)
- LaTeX compilation API → Generated PDF: returns PDF (evidence: `latex-compiler/app.py`)
- Generated PDF → Human approval: presents for review (evidence: `README.md`)
- Human approval → Approval and email validation: submits decision (evidence: `README.md`)
- Approval and email validation → Gmail delivery: sends if valid (evidence: `README.md`)
- Gmail delivery → Google Sheets tracking: records application (evidence: `README.md`)
- Google Sheets tracking → Success message: reports success (evidence: `README.md`)
- Approval and email validation → Cancellation message: rejects or blocks (evidence: `README.md`)
