For: Me
Project Goal
This project automates the creation of personalized cover letters by combining job posting details with a pre-written template and custom motivation generated by AI. The goal is to streamline the job application process by creating a unique cover letter for each application.
How it was built
The system starts by scraping the job description from a given URL using Scrapfly, which allows for dynamic content rendering. The scraped text is then passed to OpenAI’s GPT-4 model, which generates a custom motivation paragraph based on the job description. This motivation is then inserted into a base message template. Simultaneously, GPT-3.5-turbo extracts the company name and job title from the job description. Finally, the complete cover letter is created as a Google Docs document using the Google Docs API, and shared with the user’s personal Google account.
The main flow includes:
- Scraping: Dynamically retrieves job details from a URL.
- AI-Powered Motivation: Generates a personalized motivation paragraph using GPT-4.
- Document Creation: Creates a Google Docs document with the cover letter.
- Sharing: Automatically shares the created document.
Technologies used
- Python: Core programming language.
- Scrapfly: For web scraping and handling dynamic content.
- OpenAI API: Utilized GPT-4 and GPT-3.5-turbo models for text generation and extraction.
- Beautiful Soup: For parsing HTML content.
- Google Docs API: For creating and sharing Google Docs documents.
- Google Drive API: For sharing the created document.