# devpatel25/nuworks-autoapply architecture

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

- Interactive diagram: https://gitdiagram.com/devpatel25/nuworks-autoapply
- Repository: https://github.com/devpatel25/nuworks-autoapply

## Overview

NUworks Auto-Apply discovers postings, filters for eligible in-portal jobs, tailors résumés, and pauses for explicit Telegram approval before applying. Its main workflow is coordinated by the daily pipeline; separate branches handle external-ATS autofill, required cover letters, and run reporting/recovery. The README documents the overall workflow and capabilities; sampled excerpts show selected implementation details, so some subsystem connections are omitted where invocation evidence was not available.

Main entry points: [`pipeline.py`](https://github.com/devpatel25/nuworks-autoapply/blob/main/pipeline.py) (Daily Pipeline), [`telegram_bot.py`](https://github.com/devpatel25/nuworks-autoapply/blob/main/telegram_bot.py) (Telegram Approval), [`tailor.py`](https://github.com/devpatel25/nuworks-autoapply/blob/main/tailor.py) (Résumé Tailoring), [`auto_apply.py`](https://github.com/devpatel25/nuworks-autoapply/blob/main/auto_apply.py) (Portal Application)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_discovery["Job Discovery"]
  node_scraper["Job Scraper<br/>[job_scraper.py]"]
  node_classifier["Apply Classifier<br/>[apply_type.py]"]
end

subgraph group_prepare["Application Preparation"]
  node_tailor["Résumé Tailoring<br/>[tailor.py]"]
  node_claude["Claude Runner<br/>[claude_runner.py]"]
  node_resume_templates["Résumé Templates"]
  node_cover_letter["Cover Letters<br/>[cover_letter.py]"]
  node_profile["Applicant Profile"]
end

subgraph group_submission["Approval &amp; Submission"]
  node_telegram["Telegram Approval<br/>[telegram_bot.py]"]
  node_telegram_api["Telegram API"]
  node_portal_apply["Portal Application<br/>[auto_apply.py]"]
  node_documents["Document Manager<br/>[manage_docs.py]"]
  node_external_routes["External Apply Routing<br/>[external_apply.py]"]
  node_external_fill["External ATS Autofill"]
end

subgraph group_operations["Run Operations"]
  node_pipeline["Daily Pipeline<br/>[pipeline.py]"]
  node_posting_notice["Posting Notices<br/>[stats.py]"]
  node_supervisor["Run Supervisor<br/>[supervisor.py]"]
  node_digest["Run Digest<br/>[digest.py]"]
  node_stats["Run Statistics<br/>[stats.py]"]
end

node_user(("Applicant"))
node_nuworks["NUworks Portal"]
node_ats["External ATS"]

node_user -->|"starts run"| node_pipeline
node_pipeline -->|"scrapes postings"| node_scraper
node_scraper -->|"reads postings"| node_nuworks
node_pipeline -->|"classifies jobs"| node_classifier
node_pipeline -->|"requests tailoring"| node_tailor
node_tailor -->|"runs prompts"| node_claude
node_tailor -->|"uses variants"| node_resume_templates
node_pipeline -->|"requests approval"| node_telegram
node_telegram -->|"sends cards"| node_telegram_api
node_telegram -->|"presents résumé"| node_user
node_user -->|"approves or rejects"| node_telegram
node_pipeline -->|"submits approved job"| node_portal_apply
node_portal_apply -->|"uploads and submits"| node_nuworks
node_portal_apply -->|"manages documents"| node_documents
node_pipeline -->|"generates when required"| node_cover_letter
node_cover_letter -->|"runs prompts"| node_claude
node_pipeline -->|"routes external jobs"| node_external_routes
node_pipeline -->|"starts gated autofill"| node_external_fill
node_external_fill -->|"fills application"| node_ats
node_external_fill -->|"reads answers"| node_profile
node_pipeline -->|"announces postings"| node_posting_notice
node_posting_notice -->|"sends notices"| node_telegram
node_pipeline -.->|"supervises outcomes"| node_supervisor
node_pipeline -.->|"records run outcomes"| node_stats
node_digest -.->|"summarizes statistics"| node_stats
node_digest -.->|"sends digest"| node_telegram

click node_pipeline "https://github.com/devpatel25/nuworks-autoapply/blob/main/pipeline.py"
click node_scraper "https://github.com/devpatel25/nuworks-autoapply/blob/main/job_scraper.py"
click node_classifier "https://github.com/devpatel25/nuworks-autoapply/blob/main/apply_type.py"
click node_posting_notice "https://github.com/devpatel25/nuworks-autoapply/blob/main/stats.py"
click node_tailor "https://github.com/devpatel25/nuworks-autoapply/blob/main/tailor.py"
click node_claude "https://github.com/devpatel25/nuworks-autoapply/blob/main/claude_runner.py"
click node_resume_templates "https://github.com/devpatel25/nuworks-autoapply/tree/main/resume_templates"
click node_cover_letter "https://github.com/devpatel25/nuworks-autoapply/blob/main/cover_letter.py"
click node_telegram "https://github.com/devpatel25/nuworks-autoapply/blob/main/telegram_bot.py"
click node_portal_apply "https://github.com/devpatel25/nuworks-autoapply/blob/main/auto_apply.py"
click node_documents "https://github.com/devpatel25/nuworks-autoapply/blob/main/manage_docs.py"
click node_external_routes "https://github.com/devpatel25/nuworks-autoapply/blob/main/external_apply.py"
click node_external_fill "https://github.com/devpatel25/nuworks-autoapply/blob/main/external_autofill.py"
click node_profile "https://github.com/devpatel25/nuworks-autoapply/tree/main/data"
click node_supervisor "https://github.com/devpatel25/nuworks-autoapply/blob/main/supervisor.py"
click node_digest "https://github.com/devpatel25/nuworks-autoapply/blob/main/digest.py"
click node_stats "https://github.com/devpatel25/nuworks-autoapply/blob/main/stats.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_scraper,node_classifier toneBlue
class node_tailor,node_claude,node_resume_templates,node_cover_letter,node_profile toneAmber
class node_telegram,node_telegram_api,node_portal_apply,node_documents,node_external_routes,node_external_fill toneMint
class node_pipeline,node_posting_notice,node_supervisor,node_digest,node_stats toneRose
class node_user,node_nuworks,node_ats toneIndigo
```

## Components

### Job Discovery

- [Job Scraper](https://github.com/devpatel25/nuworks-autoapply/blob/main/job_scraper.py): `job_scraper.py`
- [Apply Classifier](https://github.com/devpatel25/nuworks-autoapply/blob/main/apply_type.py): `apply_type.py`

### Application Preparation

- [Résumé Tailoring](https://github.com/devpatel25/nuworks-autoapply/blob/main/tailor.py): `tailor.py`
- [Claude Runner](https://github.com/devpatel25/nuworks-autoapply/blob/main/claude_runner.py): `claude_runner.py`
- [Résumé Templates](https://github.com/devpatel25/nuworks-autoapply/tree/main/resume_templates): `resume_templates`
- [Cover Letters](https://github.com/devpatel25/nuworks-autoapply/blob/main/cover_letter.py): `cover_letter.py`
- [Applicant Profile](https://github.com/devpatel25/nuworks-autoapply/tree/main/data): `data`

### Approval & Submission

- [Telegram Approval](https://github.com/devpatel25/nuworks-autoapply/blob/main/telegram_bot.py): `telegram_bot.py`
- **Telegram API**
- [Portal Application](https://github.com/devpatel25/nuworks-autoapply/blob/main/auto_apply.py): `auto_apply.py`
- [Document Manager](https://github.com/devpatel25/nuworks-autoapply/blob/main/manage_docs.py): `manage_docs.py`
- [External Apply Routing](https://github.com/devpatel25/nuworks-autoapply/blob/main/external_apply.py): `external_apply.py`
- [External ATS Autofill](https://github.com/devpatel25/nuworks-autoapply/blob/main/external_autofill.py): `external_autofill.py`

### Run Operations

- [Daily Pipeline](https://github.com/devpatel25/nuworks-autoapply/blob/main/pipeline.py): `pipeline.py`
- [Posting Notices](https://github.com/devpatel25/nuworks-autoapply/blob/main/stats.py): `stats.py`
- [Run Supervisor](https://github.com/devpatel25/nuworks-autoapply/blob/main/supervisor.py): `supervisor.py`
- [Run Digest](https://github.com/devpatel25/nuworks-autoapply/blob/main/digest.py): `digest.py`
- [Run Statistics](https://github.com/devpatel25/nuworks-autoapply/blob/main/stats.py): `stats.py`

### Other components

- **Applicant**
- **NUworks Portal**
- **External ATS**

## Connections

- Applicant → Daily Pipeline: starts run (evidence: `README.md`)
- Daily Pipeline → Job Scraper: scrapes postings (evidence: `README.md`)
- Job Scraper → NUworks Portal: reads postings (evidence: `README.md`)
- Daily Pipeline → Apply Classifier: classifies jobs (evidence: `README.md`)
- Daily Pipeline → Résumé Tailoring: requests tailoring (evidence: `README.md`)
- Résumé Tailoring → Claude Runner: runs prompts (evidence: `tailor.py`)
- Résumé Tailoring → Résumé Templates: uses variants (evidence: `README.md`)
- Daily Pipeline → Telegram Approval: requests approval (evidence: `README.md`)
- Telegram Approval → Telegram API: sends cards (evidence: `telegram_bot.py`)
- Telegram Approval → Applicant: presents résumé (evidence: `telegram_bot.py`)
- Applicant → Telegram Approval: approves or rejects (evidence: `README.md`)
- Daily Pipeline → Portal Application: submits approved job (evidence: `README.md`)
- Portal Application → NUworks Portal: uploads and submits (evidence: `README.md`)
- Portal Application → Document Manager: manages documents (evidence: `auto_apply.py`)
- Daily Pipeline → Cover Letters: generates when required (evidence: `README.md`)
- Cover Letters → Claude Runner: runs prompts (evidence: `cover_letter.py`)
- Daily Pipeline → External Apply Routing: routes external jobs (evidence: `README.md`)
- Daily Pipeline → External ATS Autofill: starts gated autofill (evidence: `README.md`)
- External ATS Autofill → External ATS: fills application (evidence: `external_autofill.py`)
- External ATS Autofill → Applicant Profile: reads answers (evidence: `external_autofill.py`)
- Daily Pipeline → Posting Notices: announces postings (evidence: `stats.py`)
- Posting Notices → Telegram Approval: sends notices (evidence: `stats.py`)
- Daily Pipeline → Run Supervisor: supervises outcomes (evidence: `pipeline.py`)
- Daily Pipeline → Run Statistics: records run outcomes (evidence: `pipeline.py`)
- Run Digest → Run Statistics: summarizes statistics (evidence: `digest.py`)
- Run Digest → Telegram Approval: sends digest (evidence: `digest.py`)
