Automate Job Applications with OpenAI & RPA: A Free Python Script

This free, open‑source Python script combines OpenAI's API with RPA tools to automatically locate job listings, generate personalized cover letters from your résumé, and submit applications to HR, requiring only API configuration and a few setup steps.

Open Source Tech Hub
Open Source Tech Hub
Open Source Tech Hub
Automate Job Applications with OpenAI & RPA: A Free Python Script

Overview

This open‑source Python script combines the OpenAI API with Robot Process Automation (RPA) to automate the full job‑application workflow: searching for relevant job postings, generating a customized cover letter from a supplied résumé, and submitting the application to the HR contact via a web browser.

Repository

GitHub repository: https://github.com/Frrrrrrrrank/auto_job__find__chatgpt__rpa

Setup

Configure the OpenAI API key . Create a .env file in the project root (or edit the code) and add the key in the format: OPENAI_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxx Place the résumé PDF . Copy your résumé file into the auto_job_find directory and name it my_cover.pdf . The script reads this file to extract the candidate’s background.

Install dependencies . The project relies on the following Python packages:

python-dotenv
openai
selenium
robotframework
robotframework-seleniumlibrary
robotframework-pythonlibcore

Install them with: pip install -r requirements.txt or manually:

pip install python-dotenv openai selenium robotframework robotframework-seleniumlibrary robotframework-pythonlibcore

Run the automation . Execute the main script: python write_response.py The script will:

Create an OpenAI assistant object on the first run and store its configuration in a local assistant.json file.

Reuse the existing assistant.json on subsequent runs, avoiding duplicate assistant creation.

Launch a Selenium‑controlled browser, search for job listings, feed the job description and résumé content to the OpenAI assistant, receive a generated cover letter, and submit the application to the HR contact.

Notes and Caveats

The script requires a valid OpenAI API key with sufficient quota for chat completions.

Selenium needs a compatible WebDriver (e.g., ChromeDriver) placed on the system PATH.

Ensure the résumé PDF is readable; the script extracts plain text using a PDF parser (not shown in the summary).

The generated assistant.json contains the assistant ID and should be kept secure, as it allows reuse of the same OpenAI assistant.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

PythonautomationOpenAIjob searchSeleniumRPA
Open Source Tech Hub
Written by

Open Source Tech Hub

Sharing cutting-edge internet technologies and practical AI resources.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.