← home original note.com

Recruiters and HR professionals, please install Claude Code and Playwright—most of your work happens inside a browser anyway|AI人事室長

note.com
Translated by AI·Show original AI人事室長

Even though we can now write job descriptions and scout messages with AI, it doesn't feel like our workload has decreased. I suspect many people feel this way. You have a job description corrected by a chat AI, then you copy and paste it item by item into the submission form on a job board. Even though you are using AI, what you are actually doing by hand is manual labor.

Most recruitment work happens inside a browser. Management screens for scouting platforms, submission forms for job boards, ATS, and spreadsheets for scheduling. Furthermore, many recruitment-related tools do not provide an API for external interaction. The only entrance open to everyone is the browser screen.

That is why I want recruiters and HR professionals to install Claude Code and Playwright. Claude Code is an AI that runs on your own computer. It can read, write, and save files within your folders. Playwright is a tool for controlling a browser; when connected to Claude Code, the AI can open the browser, enter data into the management screens you use every day, and verify the results.

Chat-based AI can only touch what you paste into it. By installing these two, the AI can reach out and touch the screen itself. That is the only difference, but in recruitment work, that is almost everything.

I spent more time verifying than executing

In June, I automated job postings to recruitment media and replies to applicants. I created 20 scripts. Of those, only 6 actually interact with the screen; the remaining 14 are for finding the location of input fields, diagnosing why a process stopped, or verifying that the data was entered correctly.

Before I started building them, I thought it would be the other way around—that automating the input was the main task and verifying was just preparation. In reality, most of the effort goes into confirming whether my input was actually registered and figuring out where it stopped. Even if text is visible in an input field, the value might not be confirmed within the screen's internal state. That is why I started reading back the values after inputting them and saving the read-back values in my records.

If you make it write, watch it from the side

When you delegate input, you should know that automation written by an AI without seeing the actual screen is just a template. The first time, I always display the browser and watch it from the side, fixing any points where it stops on the spot.

There are two stages to letting Claude Code touch the screen. First, have the AI operate while watching the screen in real-time. Once it works, have it export the procedure as a script file. Rather than making the AI think every time, keeping a file of a procedure that has already worked ensures it will run the same way next time.

When I look back at my scripts, the wait times I inserted between operations were 400 milliseconds for the first one, then 120 milliseconds, and 80 and 60 for the verification ones. They are getting faster in the order I wrote them. I didn't aim to make them faster; the wait times just got shorter as I felt more confident that I could look away.

The most effective part of automating submissions was not the operation itself, but turning the draft into a file. I keep the full text of the job description in a single file, and the script just flows it into the screen. When you edit a draft on the screen, you don't leave a record of what you changed or why, but with a file, you can compare it side-by-side with previous versions.

Stop before registration

Even if I delegate the input, a human decides whether to register it. My submission script is designed to fill in all the fields and then stop right before the registration button, leaving the screen open for a person to take over. Input is a matter of effort, but registration is a matter of who takes responsibility.

For processes where I delegate the entire task, such as replying to applicants, I include a verification step for the recipient right before pressing the send button. It reads the recipient's name displayed on the screen and compares it with the name I provided. If they don't match, it ends without even inserting the body text. I place the verification right before pressing the button, rather than before creating the text, because the recipient could change while navigating the screen. A reply sent to the wrong person cannot be undone, no matter how good the text is.

If two-factor authentication or a CAPTCHA appears, do not try to bypass it; wait for a human to enter it manually. The extent to which you should let a machine interact is sometimes determined by the platform's terms of service. For example, LinkedIn's terms of service include clauses prohibiting access to the service or sending messages via unauthorized automated methods. If you want to automate sending scout messages, please read the terms of service of the platform you are using first.

How to install

Installing it takes less time than you think.

First, Claude Code. Paste the following line into PowerShell if you are on Windows, or the Terminal if you are on a Mac. The top one is for Windows, and the bottom one is for Mac.

irm https://claude.ai/install.ps1 | iex
curl -fsSL https://claude.ai/install.sh | bash

To use it, you need a paid Claude plan (Pro or higher) or an API contract. It is not included in the free plan.

Next, install Node.js from the official website. It will be used to run Playwright. After that, there is one line to connect Claude Code to Playwright.

claude mcp add playwright npx @playwright/mcp@latest

After that, create a folder for your recruiting tasks and type "claude" there to start. You can check if it is connected by typing "/mcp" inside Claude Code.

There is a reason for sticking to one folder. With this connection method, Playwright saves the logged-in state of the media platform to the browser profile, and the save location is separated by the folder from which it was launched. If you launch it from a different folder, you will have to log in again. I have fixed the save location to one place in the settings.

Once you have installed it, I think it is best to start by asking it to "check" things. For example, have it open your company's public job posting page and save a full-screen view of how it looks to candidates. As long as you are only checking in the edit screen, you have not yet seen how it actually looks to candidates.

For the first week, probably nothing will be automated. I think that is fine. Just seeing how your company's job posting looks to candidates once should reveal several things you want to fix in the draft.

*The content of this article is current as of December 3, 2026. Installation commands, pricing plans, and the terms of service for each service may change, so please check the official information before actually installing them.

*When automatically operating external services such as recruiting media, please check the terms of service for each service and proceed at your own discretion and responsibility. The author cannot be held responsible for any damages or troubles caused by using the content of this article as a reference.

*Product names and service names in this article are trademarks or registered trademarks of their respective companies.

#Recruiting #HR #ClaudeCode #Playwright #GenerativeAI

Recommended for you