# akalpit23/linkedin_auto_jobs_applier_with_ai architecture

> Architecture diagram of the GitHub repository akalpit23/linkedin_auto_jobs_applier_with_ai, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-01-27). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/akalpit23/linkedin_auto_jobs_applier_with_ai
- Repository: https://github.com/akalpit23/linkedin_auto_jobs_applier_with_ai

## Overview

##### Main System Components

The system architecture should be represented with these key components:

a) Core Application Layer
- Main Application Controller (main.py)
- LinkedIn Bot Facade (linkedIn_bot_facade.py)
- Job Management System (linkedIn_job_manager.py, job.py)
- Application Profile Handler (job_application_profile.py)
- Authentication System (linkedIn_authenticator.py)
- Easy Apply System (linkedIn_easy_applier.py)

b) AI Integration Layer
- GPT Integration Module (gpt.py)

c) Data Management Layer
- Configuration Management
- Resume Management
- Secrets Management

d) External Services
- LinkedIn Platform
- OpenAI API

##### Component Relationships and Data Flow

a) Primary Flow:
##### All Components ↔ Authentication System

b) Data Flow:
- YAML Configuration Files → System Components
- User Credentials → Authentication System
- Job Data → Job Management System
- Resume Data → Application Profile Handler

##### Architectural Pattern Representation

a) Facade Pattern
- LinkedIn_bot_facade.py as the main interface
- Demonstrate how it simplifies complex LinkedIn interactions

b) Component Separation
- Clear boundaries between different system responsibilities
- Modular design for easy maintenance and updates

##### Specific Implementation Details

a) Configuration Management:
- How config.yaml, secrets.yaml, and plain_text_resume.yaml interact
- Demonstrate data flow from configuration to application components

b) AI Integration:
- GPT's role in resume customization and response generation
- Interaction between AI and application components

c) Authentication Flow:
- Secure handling of LinkedIn credentials
- Integration with LinkedIn's authentication system

## Diagram (Mermaid)

```mermaid
graph TB
    %% Styles
    classDef core fill:#3498db,stroke:#2980b9,color:white
    classDef data fill:#2ecc71,stroke:#27ae60,color:white
    classDef ai fill:#9b59b6,stroke:#8e44ad,color:white
    classDef external fill:#95a5a6,stroke:#7f8c8d,color:white
    classDef auth fill:#e74c3c,stroke:#c0392b,color:white

    %% External Services
    LinkedIn["LinkedIn Platform"]:::external
    OpenAI["OpenAI API"]:::external

    %% Data Management Layer
    subgraph DataLayer["Data Management Layer"]
        Config["Configuration YAML"]:::data
        Secrets["Secrets YAML"]:::data
        Resume["Resume YAML"]:::data
    end

    %% Core Application Layer
    subgraph CoreLayer["Core Application Layer"]
        Main["Main Controller"]:::core
        BotFacade["LinkedIn Bot Facade"]:::core
        JobManager["Job Management System"]:::core
        ProfileHandler["Application Profile Handler"]:::core
        Auth["Authentication System"]:::auth
        EasyApply["Easy Apply System"]:::core
    end

    %% AI Integration Layer
    subgraph AILayer["AI Integration Layer"]
        GPT["GPT Integration Module"]:::ai
    end

    %% Relationships
    Config --> Main
    Secrets --> Auth
    Resume --> ProfileHandler
    
    Main --> BotFacade
    BotFacade --> JobManager
    BotFacade --> Auth
    JobManager --> EasyApply
    EasyApply --> ProfileHandler
    ProfileHandler --> GPT
    
    Auth --> LinkedIn
    GPT --> OpenAI
    
    %% Click Events
    click Main "https://github.com/akalpit23/linkedIn_auto_jobs_applier_with_AI/blob/main/main.py"
    click BotFacade "https://github.com/akalpit23/linkedIn_auto_jobs_applier_with_AI/blob/main/src/linkedIn_bot_facade.py"
    click JobManager "https://github.com/akalpit23/linkedIn_auto_jobs_applier_with_AI/blob/main/src/linkedIn_job_manager.py"
    click ProfileHandler "https://github.com/akalpit23/linkedIn_auto_jobs_applier_with_AI/blob/main/src/job_application_profile.py"
    click Auth "https://github.com/akalpit23/linkedIn_auto_jobs_applier_with_AI/blob/main/src/linkedIn_authenticator.py"
    click EasyApply "https://github.com/akalpit23/linkedIn_auto_jobs_applier_with_AI/blob/main/src/linkedIn_easy_applier.py"
    click GPT "https://github.com/akalpit23/linkedIn_auto_jobs_applier_with_AI/blob/main/src/gpt.py"
    click Config "https://github.com/akalpit23/linkedIn_auto_jobs_applier_with_AI/blob/main/data_folder/config.yaml"
    click Resume "https://github.com/akalpit23/linkedIn_auto_jobs_applier_with_AI/blob/main/data_folder/plain_text_resume.yaml"
    click Secrets "https://github.com/akalpit23/linkedIn_auto_jobs_applier_with_AI/blob/main/data_folder/secrets.yaml"

    %% Legend
    subgraph Legend
        L1["Core Component"]:::core
        L2["Data Storage"]:::data
        L3["AI Component"]:::ai
        L4["External Service"]:::external
        L5["Authentication"]:::auth
    end
```
