← Back to AI Agent Scenarios

SCENARIO 06·HR·Review and matching, standardized work

Every month, each overtime request must be matched against punch records

At month-end, HR must match every overtime request against punch records, confirm that the time period and hours agree, and then compile overtime statistics by department for managers and payroll processing.

Mismatches are common. An employee may submit a request but have no punch record, the punch time may differ from the requested period, or the overtime may cross midnight. HR must investigate every item and ask the manager or employee to confirm any discrepancy. As the workforce grows, these few days at month-end become increasingly demanding.

At a glance

How it was done

  1. Export overtime requests and punch records
  2. Match each time period
  3. Review discrepancies with managers
  4. Compile overtime statistics by department

Where it gets stuck

A request without a punch, a clock-out earlier than the requested end time, and overnight overtime all require individual investigation. With more employees, the month-end closing period becomes especially demanding.

With an AI Agent

  1. Export overtime requests and punch records
  2. Match each time period
  3. Review discrepancies with managersHuman approval
  4. Compile overtime statistics by department

AI Agent handles item-by-item matching and statistical compilation, with formulas showing eligible hours. HR and managers decide whether discrepancies are recognized, and HR must review the report before sending it for payroll processing.

01

How it was done

  1. 01Export the month's overtime requests and attendance records
  2. 02Match each requested period against the actual punch times
  3. 03Flag mismatches and ask the manager or employee to confirm them
  4. 04Compile the confirmed hours into an overtime report by department
加班申請_2026-09.xlsxExcel
A1Request No.
Request No.Employee IDOvertime DateRequested StartRequested EndRequested Hours
OT-2609-005E23032026-09-0418:0020:002
OT-2609-008E23012026-09-0818:0021:003
OT-2609-011E23042026-09-1018:0020:002
OT-2609-012E23042026-09-1018:0020:002
≠OT-2609-019E23052026-09-1818:0020:002
≠OT-2609-021E23032026-09-2218:0021:003
≠(No request)
OT-2609-024E23012026-09-2519:0001:00 (next day)6
OT-2609-025E23062026-09-2918:0020:002
Overtime Requests100%
出勤紀錄_2026-09.xlsxExcel
A1Employee ID
Employee IDDateClock-InClock-Out
E23032026-09-0407:5419:52
E23012026-09-0807:5721:02
E23042026-09-1007:5520:12
(Same as previous row)
≠E23052026-09-1807:52
≠E23032026-09-2207:5819:40
≠E23062026-09-2207:5721:10
E23012026-09-2507:5601:08 (next day)
E23062026-09-2907:5920:04
Attendance Records100%
Illustration only. Employees are identified only by ID. These 9 rows include two requests for the same employee and time period on the same day, a missing punch, an employee who clocked out 80 minutes early, and overtime without a request. The overnight overtime times look different but match under the rules. In practice, hundreds of records must be checked this way every month.
02

With an AI Agent

  1. 01
    What it doesMatch each request to punch records
    Standard appliedUse the employee ID and date to match each overtime request to that day's clock-out. For overnight overtime, treat the next day's time as a continuation of the same day
    OutputPunch time matched to each request
  2. 02
    What it doesClassify records using the matching rules
    Standard appliedA clock-out less than 15 minutes before the requested end time is a match. A clock-out more than 15 minutes early is a discrepancy; calculate eligible hours from the punch time in half-hour increments and flag the item for review. A request without a punch or a punch without a request is a missing record. If the same employee has two or more requests for the same time period on the same day, flag all of them as duplicate requests and leave the recognition decision to a person
    OutputFour categories: matches, discrepancies, missing records, and duplicate requests. List each nonmatching item with the reason
  3. 03
    What it doesCompile overtime statistics by department
    Standard appliedTotal only hours classified as "matches." List the number of items awaiting review separately. Do not include items with calculated eligible hours until they are confirmed. Include the formula for eligible hours so HR can verify it directly
    OutputOvertime statistics by department and a matching Excel file
  4. 04
    What it doesSend to HR for review
    Standard appliedHR and department managers decide whether to recognize discrepancies, missing records, and duplicate requests. Add the hours only after confirmation
    OutputSend the statistics for payroll processing only after HR review
Human approval
Step 3 remains a human task. HR and department managers decide whether to recognize discrepancies, missing records, and duplicate requests. HR must also review the statistics compiled by AI Agent before sending them for payroll processing.
Platform modules used
Skills, Integrations

For review and matching tasks, we recommend defining clear matching criteria, listing only discrepancies and exceptions in the output, and having someone familiar with the work perform the final review. Do not treat AI discrepancy assessments as approval decisions. When compiling hours, each item should also show the requested and punched times and how the eligible hours were calculated so HR can verify them directly.

Screenshots show the Traditional Chinese interface.

01Upload Requests and Punch Records

EgentWrX conversation screen: A staff member uploads September overtime requests and attendance punch records. The instructions specify six matching rules and two tables to produce.
  1. 1Upload the overtime request and attendance punch records together.
  2. 2A clock-out more than 15 minutes early is a discrepancy. Calculate eligible hours from the punch time in half-hour increments.
  3. 3For overnight overtime, treat the next day's time as a continuation of the same day.

02Processing

EgentWrX processing screen: AI Agent analyzes overtime requests and attendance records separately, matches and calculates each item, and produces spreadsheets for overtime matching and department statistics.
  1. 1Read and analyze overtime requests and attendance records separately.
  2. 2Apply the rules to each item and calculate its eligible hours.
  3. 3Produce spreadsheets for overtime matching and department statistics.

035 Items Requiring Review

EgentWrX table view: 5 nonmatching items, including two requests for the same employee and time period on the same day, one missing clock-out, one clock-out 80 minutes early, and one employee who clocked out at 21:10 without submitting a request.
  1. 1Flag both requests for the same employee and time period on the same day as duplicates. A person decides which one to recognize.
  2. 2The employee clocked out 1 hour 20 minutes early. Based on the punch record, 1.5 hours are eligible. The formula appears in the notes field.
  3. 3The employee clocked out at 21:10 but submitted no overtime request. List this as a missing record.

04Department Statistics and Overnight Overtime

EgentWrX results screen: Overnight overtime is calculated continuously and classified as a match. Department statistics total only matching hours, list items awaiting review separately, and include the matching Excel file.
  1. 1Calculate overnight overtime continuously, classify it as a match, and recognize 6 hours.
  2. 2Department statistics total only hours classified as "matches" and list the number awaiting review separately.
  3. 3Exclude the 5 items awaiting review from the total. Add them only after HR confirms them.
03

Numbers

Estimated monthly savings of 9 to 20 hours for overtime detail matching and 6 to 15 hours for overtime compilation

9–20hoursEstimated monthly savings from overtime detail matching
6–15hoursEstimated monthly savings from overtime compilation

Source: An unnamed automotive parts manufacturer advised by Intellicon

04

FAQ

Every company has different overtime rules. How does AI Agent know which rules to use?
First, clearly define the company's matching rules, such as the allowed difference between punch times and requested periods and how to calculate overnight overtime. Add these rules to the AI SOP as the matching criteria. AI Agent then applies them. The clearer the criteria, the more reliable the listed discrepancies.
Can AI Agent calculate overtime pay directly?
No. This process only compiles overtime hours. Each item shows the requested and punched times so HR can verify it directly. Payroll calculates overtime pay according to company policy. HR must review the report before sending it to the next step.
Is integration with the attendance system required?
Not necessarily. This process compares time clock records and overtime requests in the attendance system. We recommend connecting an SQL MCP Server so the AI Agent can query real-time data directly. Before the connection is set up, you can use files exported from the system, as shown in the example above. The connection method depends on your attendance and HR systems and deployment architecture. You can schedule a free consultation for an assessment.
30 minutes to map out which work to hand to AI first

Want every employee to have their own AI teammate?

A consultant will be in touch shortly.