AI & human judgment

Bringing AI Agents into HR: 3 Lessons from an Attendance Agent

6 min readHR AI agents, AI agents, AI in HR, Attendance management, Human-AI collaboration

Key takeaways

  • Start with a process, not a system. Attendance work is repetitive, rule-based and low on judgment, which makes it an ideal first step.
  • Give an agent the access you'd give a new hire. My attendance-reminder agent can read data but not write it, and it never docks pay or triggers discipline.
  • An AI's judgment can look reasonable and still be wrong. What it lacks isn't reasoning; it's the rules only insiders know.
  • Seven agents split the attendance work, but the last step is always a manual sign-off by HR.
  • Three runs with zero errors meant the fallback paths had never been tested. You have to make the system fail on purpose.

Why start an HR AI agent with attendance?

Because attendance meets all three conditions: it is repetitive, rule-based and low on judgment.

It actually started with a deadline. From the first of the month, attendance at every overseas location had to be managed in a system. I asked around the cloud providers in Taiwan and couldn't find one that handled clock-ins across multiple countries and time zones. IT had no timeline yet, and leadership wanted a date.

There was no room to wait, so I built it myself. The first version, covering clock-ins, leave and monthly reports, took four days. Over the next five months of running and fixing it, it went through 363 changes.

That taught me that choosing the right process matters more than choosing the right tool. Attendance happens every month, its inputs and outputs are fixed, and the answers are mostly objective. When all three hold, you've found the best first stop for an AI agent. A high-judgment decision like "should we hire this person" is not where to start.

How much access should an AI agent get?

The same as a new hire: whatever level of trust you'd give a new hire on a task, give the AI that level first.

I think of it as four levels: the AI lays out options and a person decides; the AI does the work and a person reviews every item; the AI does the work and a person checks only the doubtful cases; the AI does the work and reports back periodically. I suggest starting at level two.

Here's how I designed my attendance-reminder agent:

  • Who it is: a reminder assistant that knows multi-time-zone attendance and leave rules.
  • What it can use: read-only access to attendance records and leave requests, with no write or send permissions.
  • What it produces: a log of the emails it sends and a notice to the employee, never an automatic pay deduction or disciplinary action.

In one line: the AI flags a late arrival, but the manager still approves.

Access has another half that needs to happen early. Before touching employee personal data, align with IT, information security and legal on where the data lives and who can access it. Before launch I asked IT security to review the permission settings once, and they caught a test account someone had forgotten to close.

Why can an AI agent's judgment look right and still be wrong?

Because it doesn't know the rules only people inside the company understand.

While I was building the attendance-audit agent, the AI once concluded that clocked hours exceeding approved overtime pointed to a risk of unpaid overtime. The logic looked sound, but company policy says overtime must be requested in advance, so time spent without a request doesn't count as overtime.

It also flagged a manager whose role doesn't require clocking in as "zero attendance for a long time, please confirm they still work here," and it recommended adding headcount at a small location that was deliberately kept lean.

Every one of those judgments looked reasonable, and every one was wrong. The problem wasn't the model. The processes and rules hadn't been spelled out.

I fixed this in two ways. Governance rules that only insiders understand went into a knowledge base that every agent shares. Exceptions went straight into the employee data as a new field, instead of yet another exception in the prompt.

Reminders can be ignored. Data structures can't.

Seven agents, so where does a person sign off?

At the very end: notices go out only after HR approves them manually.

I later built an attendance-audit agent on top of the attendance system, made up of seven agents with clearly divided roles. HR gives one instruction, such as "handle this month's leave anomalies," and a coordinating agent breaks it into tasks, hands them to the other agents and pulls the results together. HR then approves with one click, and only then are the notices sent.

What it can do includes reminding managers to check in on colleagues on sick leave, and compiling monthly attendance reports across overseas locations, comparing them to spot where anomalies run high.

The attendance system itself was rolled out cautiously too: one department ran it for two weeks first, and we compared its numbers with the old system's monthly report.

Why are three zero-error runs a warning sign?

Because it means the fallback mechanisms have never been triggered.

After writing the code I ran it on real data three times in a row, and every run passed on the first try with zero errors. That sounds like something to celebrate, but if every run passes first time, the retry and audit-rejection paths have never really been tested. A safeguard that has never been tested against failure is only an illusion.

So I went looking for records I knew would trip it up and made the system fail in front of me. That exposed three design blind spots: leaving the agent to decide whether to retry wasn't reliable; nothing defined what should happen if a fix still failed the audit; and business states aren't simply right or wrong, as when an employee has submitted a missed-punch correction that a manager hasn't approved yet.

After the fixes, verification and audit became fixed steps rather than something the agent decides on its own. Retries are capped at two rounds, and if problems remain after that, the result is flagged with a warning and handed to a person to review.

AI can sort data, spot anomalies and draft notices very efficiently, but the final management decision shouldn't be handed to it. I've written up the system's architecture in From Prompt to Graph: Building an HR AI Agent Taught Me the Hard Part Is Trust, Not Zero Errors.

Three things to take away

  1. Choose a process before you choose a system. Find one that is repetitive, rule-based and low on judgment; attendance and monthly reports are ideal first stops.
  2. Give access like you would to a new hire. Start with read-only access, and keep any decision that affects employees' rights, such as docking pay or discipline, with people.
  3. Test for failure on purpose. Zero errors isn't the finish line. Find cases you know will fail, make sure the fallback actually works, and keep HR sign-off as the last step.

To see how a hiring process can be automated, read How to Automate Recruiting: 443 Interviews and What It Took. If you'd like your team to practice designing the split between people and AI, take a look at my talks and workshops.

Wesley Cheng

Wesley Cheng is an HR AI speaker and HR × AI expert with 8+ years in HR leadership, 14 HR × AI talks since 2025, and 16 HR systems built with AI. Cross-industry HR practitioner with experience in HR operations and organization development. Focused in recent years on HR technology: has built recruiting automation and a recruiting system hands-on, and keeps experimenting with new ways to bring AI and HR together.

About me

Want to bring this topic to your team?

I run HR × AI workshops and talks, and I'm happy to just compare notes.

Get in touch