Stop Applying for Jobs Manually: Build an AI Agent That Does It for You


Are you tired of the soul-crushing routine of job hunting? The endless cycle of finding a listing, filling out the same form fields, and uploading your resume for the hundredth time? It feels like a full-time job just to apply for a job.
What if you could hand off that entire process to a smart AI agent? An assistant that opens your browser, searches for jobs on LinkedIn, intelligently fills out each application, and works 24/7 on your behalf.
This isn't a futuristic dream. It’s possible right now with a powerful open-source tool called Browser Use. In this guide, I'll show you exactly how to build your own personal AI job-hunting assistant by teaching you how to write the perfect "master prompt" to command your agent.
Let's dive in.
Part 1: Your Technical Toolkit & Setup
First, we need to get the Browser Use
project set up on your computer. This part involves using the command line and requires that you have Git and Python installed.
Step 1: Clone the Project
We need to download the project files from GitHub. Open your terminal and run these commands one by one:
Bash
# Clone the repository for the web interface
git clone https://github.com/browser-use/web-ui.git
# Move into the new project folder
cd browser-use-web-ui
Step 2: Create and Activate a Python Environment
A virtual environment is like a clean, isolated workspace for our project's code.
Bash
# Create the environment
python3 -m venv .venv
# Activate the environment (On Mac/Linux)
source .venv/bin/activate
# Or activate it on Windows
.venv\Scripts\activate
You'll know it's working when you see (.venv)
at the start of your terminal prompt.
Step 3: Install the Tools
Now we install all the necessary packages and the browser automation framework, Playwright.
Bash
# Install all the required Python packages
pip install -r requirements.txt
# Install the browsers for the agent to control
playwright install
Part 2: Giving Your Agent a Brain with AI
Our agent needs an AI model to think and follow instructions. We'll use the free tier of a powerful model through a service called OpenRouter.
Step 4: Configure Your API Keys
API keys are like secret passwords that let our script talk to the AI model.
In the project folder, find the file named
.env.example
and make a copy of it. Rename the copy to just.env
.Go to OpenRouter.ai and sign up.
Find a capable free model (like DeepSeek Coder or Google's Gemma).
Go to your Keys page, create a new key, name it, and copy the key itself.
Open your new
.env
file and paste in your key and the OpenRouter Base URL. It should look like this:
Code snippet
OPENAI_API_KEY="paste_your_secret_api_key_here"
OPENAI_BASE_URL="https://openrouter.ai/api/v1"
Part 3: Launch and Test Run
Let's fire it up to make sure everything is connected correctly.
Step 5: Launch the Web Interface
In your terminal (with the .venv
still active), run this command:
Bash
python -m uvicorn main:app --reload
Your terminal will give you a local URL like http://127.0.0.1:8000
. Copy it and open it in your browser.
Step 6: Run Your First Test
On the
Browser Use
page, click "LM Settings".For the Model Name, enter the name of the model you chose, like
deepseek/deepseek-coder
. Save it.Go back to the "Run Agent" tab. There's a default test task already there.
Click "Run Agent".
A new browser window should pop up and perform a quick Google search automatically. Success! You have a working AI agent ready for your commands.
Part 4: The Core - Crafting the Perfect Prompt for Your Agent
This is where the magic happens. We will write a clear, step-by-step "master prompt" to command our agent. For complex prompts, using a powerful AI assistant like ChatGPT can help you refine your logic and wording.
Here’s how to structure your prompt for the best results.
1. Define the Goal and Starting Point
Start with a clear objective.
Goal: My goal is to apply for jobs on LinkedIn.
Starting URL: Start at this page:
https://www.linkedin.com/jobs/search/?keywords=Product%20Manager&location=Remote
2. Set the Rules of Engagement
Tell the agent exactly what to look for and what to avoid. This is crucial for getting relevant applications.
Inclusion Rules:
The job title must include "Product Manager" or "Product Owner".
The location must be "Remote".
Only apply to jobs posted in the "Past week".
Exclusion Rules (Just as important!):
Do NOT apply if the title includes "Senior", "Lead", or "Principal".
Do NOT apply to jobs from the companies "Meta" or "Google".
3. Write the Step-by-Step Action Sequence
This is the main algorithm. Write it like you're explaining it to a person.
Action Plan:
Navigate to the Starting URL.
Go through each job listing on the page one by one.
For each job, check if it matches my Inclusion and Exclusion rules.
If it is a match, click on the job listing.
Click the "Easy Apply" button.
The application form will now be open. Use the following information to fill it out:
My full name is: Jane Doe
My email is: jane.doe@email.com
My phone number is: 123-456-7890
My resume is located at:
C:\Users\JaneDoe\Documents\resume_v2.pdf
If you encounter a question like "Years of experience with SaaS products?", answer "5".
After filling all required fields, click the button to "Review" and then "Submit application".
Close the job tab and move to the next listing on the search results page.
Putting It All Together
Combine these sections into one big prompt inside the "Task Description" box in Browser Use
. The more detailed you are, the better your agent will perform.
Part 5: Unleash Your AI Job Hunter!
Copy and paste your complete, detailed prompt into the
Browser Use
interface.Click "Run Agent".
Now, sit back and watch. The browser window will spring to life, navigating, analyzing, and applying on your behalf, all based on the precise instructions you wrote. You've successfully delegated one of the most tedious tasks in modern life to your own personal AI agent.
Subscribe to my newsletter
Read articles from Anzal Husain Abidi directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by

Anzal Husain Abidi
Anzal Husain Abidi
A technology enthusiast and aspiring developer. I'm here to share my insights, experiences, and discoveries in the world of software development and technology. As a Computer Science student with a passion for coding, I'm constantly exploring the latest trends and sharing my thoughts on a variety of programming languages, frameworks, and tools. Join me on this journey as we delve into the exciting realm of tech, tackle coding challenges, and learn together. Whether you're a fellow developer looking for solutions, a tech enthusiast, or simply curious about the digital landscape, I'm here to offer informative and engaging content. Let's embark on this tech adventure together!