An AI-powered web application that generates personalized cover letters from LaTeX resumes and job descriptions.
- FastAPI Backend: Robust API for processing resumes and generating cover letters
- AI-Powered: Uses OpenAI GPT-3.5-turbo to extract skills and generate personalized content
- LaTeX Processing: Handles LaTeX resume files and compiles cover letters to PDF
- Modern Frontend: Clean, responsive HTML interface
- Containerized: Full Docker and Docker Compose support
- No Database: Temporary file storage for v1 simplicity
- Docker and Docker Compose
- OpenAI API key
- Clone the repository:
git clone <repository-url>
cd CoverAgent- Set up environment variables:
cp .env.example .env
# Edit .env and add your OpenAI API key- Run with Docker Compose:
docker-compose up --build- Open your browser to
http://localhost:8000
- Upload a LaTeX (.tex) resume file
- Enter the company name and role
- Paste the job description
- Click "Generate Cover Letter"
- Download the generated PDF
# Install dependencies
pip install -r requirements.txt
# Ensure LaTeX is installed (Ubuntu/Debian)
sudo apt-get install texlive-latex-base texlive-latex-recommended texlive-fonts-recommended texlive-latex-extra
# Set environment variables
export OPENAI_API_KEY=your-api-key-here
# Run the application
uvicorn backend.main:app --reload --host 0.0.0.0 --port 8000GET /: Serve the frontend applicationPOST /generate-cover-letter: Generate cover letter from resume and job descriptionGET /health: Health check endpoint
A sample LaTeX resume is provided in templates/sample_resume.tex for testing.