Skip to content

mrzechonek/downsizr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Downsizr - AI-Powered Termination Management System

A Django application that allows users to upload work agreements and automatically generates AI agents to contact employees and handle terminations.

Features

  • Upload work agreements (PDF, DOC, DOCX, TXT)
  • AI-powered extraction of agreement information
  • Automatic generation of termination agents
  • AI-generated professional termination communications
  • Contact logging and tracking
  • Multi-step termination workflow

Setup

  1. Create a virtual environment:

    python3 -m venv venv
    source venv/bin/activate  # On Windows: venv\Scripts\activate
  2. Install dependencies:

    pip install -r requirements.txt
  3. Set up environment variables:

    cp .env.example .env
    # Edit .env and add your OpenAI API key
  4. Run migrations:

    python manage.py makemigrations
    python manage.py migrate
  5. Create a superuser (optional, for admin access):

    python manage.py createsuperuser
  6. Run the development server:

    python manage.py runserver
  7. Access the application:

Usage

  1. Upload a Work Agreement:

    • Navigate to "Upload Agreement"
    • Fill in employee name, email, and upload the agreement file
    • The system will automatically process the agreement
  2. Create a Termination Agent:

    • Once the agreement is processed, view its details
    • Click "Create Termination Agent" to generate an AI agent
  3. Contact the Employee:

    • Use the "Contact Employee" button to have the AI agent send a professional termination notice
  4. Execute Termination:

    • After contacting, use "Execute Termination" to finalize the process
    • The AI will generate a comprehensive termination message

Important Notes

  • This application requires an OpenAI API key to function
  • Email sending is currently simulated (prints to console). In production, integrate with an email service
  • Document parsing for PDF/DOC files is simplified. For production, use proper libraries like PyPDF2 or python-docx
  • This is a development application. For production, ensure proper security measures, authentication, and error handling

Technology Stack

  • Django 5.2.8
  • OpenAI API (GPT-4o-mini)
  • Bootstrap 5 (for UI)
  • SQLite (default database)

License

This project is for demonstration purposes.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published