Artificial Intelligence Workforce Automation: Rotas, Timesheets, Leave

Coding Liquids tutorial cover featuring Sagnik Bhattacharya for Artificial Intelligence Workforce Automation: Rotas, Timesheets, Leave.
Coding Liquids tutorial cover featuring Sagnik Bhattacharya for Artificial Intelligence Workforce Automation: Rotas, Timesheets, Leave.

AI can safely take over the chasing, collecting, totalling and flagging in rotas, timesheets and leave: availability reminders, hours totals, balance sums and rule checks. A manager should still approve every published rota, every timesheet before it reaches payroll, and every leave decision where cover is thin, because those steps decide what people are paid and when they work.

Most pages on workforce automation describe enterprise HR suites. In a business of 5 to 30 people, the realistic gain is a few hours of admin a week and the realistic risk is a wrong pay record. The working rule is simple: AI drafts, explains and flags; formulas or your rota tool do the arithmetic; and a person approves anything that changes pay, hours or a contract.

Follow me on Instagram@sagnikteaches

That rule matters because an assistant can produce a rota that reads well and quietly breaks a rest rule, or add up a week of hours with total confidence and one wrong row.

Connect on LinkedInSagnik Bhattacharya

Three buckets: automate, draft for approval, keep with a manager

Sort every step by what it touches, not by how clever the tool is. A step goes in the first bucket when it is mechanical, reversible and changes nobody's pay or hours by itself. It goes in the second when the output affects pay or schedules but the rules are written down, so a person can approve it quickly. It goes in the third when it needs judgement, fairness or a conversation.

Subscribe on YouTube@sagnikteaches
WorkflowAutomate fullyDraft for approvalKeep with a manager
RotasAvailability requests and reminders, turning replies into a table, publishing an approved rota, shift notificationsA first-draft rota against your rules, shift swaps between qualified peopleWho gets the unpopular shifts, cover for sickness at short notice, any change to contracted hours
TimesheetsClock-in capture, hours totals, break deductions by your rule, missing-entry reminders, payroll export of approved sheetsOvertime flags, the weekly exception report, the approval packCorrecting recorded times, pay queries, patterns of lateness, final sign-off before pay
LeaveBalance sums, request forms, calendar entries for approved leave, booking remindersA rule check on cover and balance, a draft reply, auto-approval inside narrow rules you setRequests when cover is thin, sickness, family or medical leave, carry-over exceptions, refusals

Four questions place a borderline step. Does it change what someone is paid? Can it be undone within a day? Are the rules written down as numbers? Would staff reasonably feel a machine should not make this call? Yes to the first or the fourth, or no to the second or the third, and a person decides.

Rotas: from availability messages to a published week

A security installer has six field engineers (labelled A to F), an on-call rota from Monday to Thursday, and a manager who builds next week's rota on a Thursday. Every step in that routine lands in one bucket.

StepBucketWhat the AI or tool doesThe manager's part
1. Ask for availabilityAutomateA form or scheduled message goes out each Thursday; non-responders get a reminderNone
2. Read the repliesAutomate, spot-checkedAn assistant turns texts into a table and marks anything ambiguous ASKAnswer the ASK rows
3. Draft the rotaDraft for approvalAn assistant or scheduling tool proposes a week and lists the rules it could not meetReview, change, approve
4. Check rest and hoursAutomate the checkFormulas flag short rest gaps and weekly totalsDecide what to do with each flag
5. Publish and notifyAutomate once approvedThe tool, or a form-and-sheet automation, sends the rota and calendar entriesApprove the version
6. SwapsDraft for approvalThe tool checks both people are qualified and restedApprove
7. Sickness coverManagerAn assistant lists who is free, qualified and within hoursChoose, and decide the pay
8. Fairness of unpopular shiftsManagerA sheet tallies on-call nights and weekends over eight weeksDecide

Step 2 is where an assistant earns its place, because people answer a rota request in a dozen styles. A prompt that forbids guessing keeps it honest. Staff are labelled by letter, so no names go into the chat.

Turn these availability messages into a table for Mon 9 to Fri 13 Nov.
Columns: engineer, Mon, Tue, Wed, Thu, Fri, notes.
Use yes, no, or a time limit. If a message is ambiguous, write ASK in
the cell and add the question you would ask. Do not guess. For each
cell, quote the words you relied on.

A: Can't do Tue morning, appointment. Everything else fine.
B: Any day, but Friday I need to leave by 3.
C: Away Wed to Fri.
D: All good, and I'd like to do on-call this week.
E: Fine all week.
F: All good except nights, no nights please.

An illustrative reply, without the quoted words:

Eng | Mon | Tue     | Wed | Thu | Fri         | Notes
A   | yes | no (AM) | yes | yes | yes         | Tue morning appointment
B   | yes | yes     | yes | yes | until 15:00 |
C   | yes | yes     | no  | no  | no          | Away Wed to Fri
D   | yes | yes     | yes | yes | yes         | Wants on-call
E   | yes | yes     | yes | yes | yes         |
F   | yes | yes     | yes | yes | yes         | ASK: does "no nights" mean no on-call, or no late finishes?

The ASK on F is the useful part: "no nights" could mean on-call or any shift that ends after dark, and the rota depends on which. The errors to look for are the opposite kind. Check whether "Wed to Fri" was read as inclusive (it was, here) and whether anything hedged, such as "should be fine" or "probably", was turned into a plain yes. Asking for the quoted words makes both checks a ten-second scan.

Step 3 is a draft, never a decision. Give the assistant the table, the booked jobs and your rules, and make it list what it could not satisfy:

Draft a one-week rota for six engineers, Mon 9 to Fri 13 Nov.
Use ONLY the availability table, booked jobs and rules below.
Do not invent availability or rules.

Booked jobs: Wed alarm upgrade needs A and C. Thu CCTV install needs 2.
Rules:
1. At least 4 engineers working each weekday.
2. One engineer on call each night Mon-Thu; nobody on call two nights running.
3. At least [11] hours between the end of one shift and the start of the next.
4. No more than [48] hours in the week.
5. Booked jobs keep their named engineers.
(The figures in square brackets are placeholders; use the ones your adviser gives you.)

Output a table (days down, engineers across, cells = shift or OFF), then a list
headed "Rules I could not meet" with the day, the rule, and the smallest change
that would fix it. Do not quietly bend a rule.

An illustrative answer ends like this:

Rules I could not meet
- Wed, rule 5: the upgrade names A and C, but C is away Wed to Fri.
  Smallest change: swap C for E (available), or move the job to Mon or Tue.
Assumptions I made
- Treated D's wish to be on call as a preference, not a requirement.
- F is not on call, because "no nights" was unclear; rota uses A, B, D, E.

The conflict it found is exactly the one a tired manager misses on a Thursday evening. Run the rest-gap and weekly-hours checks on the finished rota with formulas, though, not with the assistant that wrote the draft: a check built on a different mechanism from the one that made the mistake is the one that catches it. For a bigger team or complex skills, a scheduling tool's own solver beats a chat assistant; AI shift scheduling versus a rota spreadsheet for small teams compares the two.

Timesheets: capture, total, flag, approve

Timesheets hold the highest risk of the three, because the output is pay. The automation should stop at "here is what looks odd", never at "I fixed it".

StepBucketWho or what does it
1. Capture start, finish and breaksAutomatePhone clock-in, a job form or the Shifts app; no retyping from paper or texts
2. Chase missing entriesAutomateA reminder at 17:30 on Friday to anyone with an open shift
3. Total hours and apply break rulesAutomate with formulasThe sheet or tool, using rules you set once
4. Flag exceptionsDraft for approvalAn assistant reads the week's table and writes the exception list
5. ApproveManagerWeekly pack: totals plus cleared flags
6. Export to payrollAutomate once approvedCSV or integration, with one person spot-checked

For step 4, give the assistant the week's table with initials only and ask for flags, not corrections:

Below is one week of clock records (initials only). My rules: unpaid break
of 30 minutes on any shift over 6 hours; overtime trigger 40 hours; at
least [11] hours rest between shifts. List every record that breaks a rule
or looks incomplete. Do NOT change, fill in or round any time. For each
flag, state the evidence and the question I should ask.
Week ending Fri 6 Nov: 6 engineers, 5 complete, 1 incomplete
Flags for manager review (nothing has been changed):
1. C, Thu: clock-in 07:35, no clock-out. Scheduled end was 17:00.
   Not filled in. Ask C when the job finished.
2. D, Wed: on-call call-out ended 02:10; next shift began 07:30.
   Rest gap 5 h 20 min against your [11]-hour rule. Confirm both times.
3. A, week total 45.25 h against your 40 h trigger (5.25 h over).
   Check the overtime was approved before the week.
4. B, Fri: 8.0 h recorded with no break logged. Your rule expects
   30 unpaid minutes after 6 hours. Confirm whether a break was taken.

The first flag is the one that matters. A tool that "helpfully" fills C's missing clock-out with the scheduled 17:00 would record 9 h 25 min. If C actually finished the job at 15:20, that is 1 h 40 min of pay that was never worked, and nobody would notice until the figures looked odd two weeks later. The rule that prevents it is a short one: AI flags, a person edits, and every edit is logged with who, when and why. The same shape catches the quick sums that go wrong by hand. A's week of 8.50, 9.00, 10.25, 9.50 and 8.00 hours adds to 45.25, which is 5.25 over a 40-hour trigger; the exception report states the arithmetic so the manager can check it in seconds.

If crews still write hours on paper, an assistant can read a photo of the sheet, but handwriting turns a 1 into a 7 and a half hour into a five. Ask for a transcription with a "low confidence" mark beside any uncertain digit and compare the total with the job sheet. Better to stop retyping altogether: the cheapest clock-in is a form or the Shifts app. Catching timesheet errors before payday goes further into the checks, and tracking hours without timesheets covers capture methods that skip the weekly form.

Leave: balances, cover checks and the reply

Leave is easy to automate badly because the rules look simple. The balance is arithmetic, cover is a rule and the reply is wording, but the decision belongs to a person whenever the rules run out. Here is a request triaged against a small firm's own policy (illustrative: 25 days a year, at least 4 of 6 engineers available each weekday, and engineers named on a booked major job need a manager's sign-off before taking leave).

Request from [first name], an engineer: Friday 6 Nov and Monday 9 Nov off.
Balance before the request: 6 days. After: 4 days.
Cover rule: Fri 6 Nov, one engineer already off; with this request 4 of 6
  are available (meets the minimum exactly). Mon 9 Nov, nobody else off.
Booked work: Fri 6 Nov, alarm upgrade for a large client names this engineer.
Result: NEEDS MANAGER. Monday is clear. Friday clashes with a named job.

Draft reply:
Hi [first name], Monday 9 Nov is fine. Friday 6 Nov clashes with the alarm
upgrade you are booked on; I will check whether the job can move and come
back to you by Thursday.

The assistant did three automatable things (balance, cover, clash) and one thing a manager should still own: whether the job can move. Auto-approval is a design choice, not a default. If you allow it, limit it to requests that pass every rule with room to spare, and send the manager a daily list of what was approved so nothing is invisible.

Edge cases that should always reach a person:

  • Part-time and pro-rata staff. Entitlement maths changes with hours; check the formula once per contract type rather than trusting a chat answer each time.
  • Carry-over and public holidays. Both depend on your policy and on rules that differ by place, so they belong in the balance sheet as stated figures.
  • Sickness during booked leave, and family or medical leave. Keep the reason out of the prompt and out of the shared sheet; record only the dates and the type, and let a manager handle the conversation.
  • Holiday pay rates. In some places they depend on regular overtime or allowances. Leave that to payroll software or your adviser, not to an assistant's arithmetic.

Automating holiday requests and absence tracking covers the form, sheet and calendar build in detail.

Working-time and pay-record rules the system must carry

Every rule in the sections above has a number behind it, and that number should come from your payroll adviser or the rules that apply to your staff, then live in the rota sheet or tool where a check can use it. It should never live in an AI's memory, because the figures differ by place, sector and the worker's age, and a model will happily produce a confident one that is wrong for you.

RuleWhere the figure comes fromWhere it livesWho checks the flags
Rest between shifts, and weekly restYour adviser, for your placeOne cell on a Rules tab, used by the rest-gap formulaManager, every week
Maximum weekly hoursYour adviser and each contractRules tab and the weekly-total columnManager
Paid and unpaid breaksContract and the rules for your placeBreak-deduction formula in the timesheetAdmin
Overtime trigger and rateContract or policyTimesheet flag, with a pre-approval columnManager
Limits for young workersRules for your placeA per-person rule tied to a date of birthManager
On-call and travel timeAdviser; the treatment variesTime rules on the Rules tabManager and adviser
Leave accrual and carry-overPolicy and contractBalance sheetAdmin, then manager
Record retentionAdviserA line in your written processOwner

To make the layout concrete, here is the Rules tab for an illustrative signage firm with seven workshop staff and four installers. The values are examples to show the layout; replace each with the figure your adviser gives you.

Rule                    Value (example)         Source and date checked     Applies to
Rest between shifts     11 hours                Adviser, [date]             Everyone
Max weekly hours        48                      Adviser, [date]             Everyone
Unpaid break            30 min after 6 hours    Contract                    Workshop
Overtime trigger        40 hours                Contract                    Everyone
Young-worker limits     per adviser's note      Adviser, [date]             Apprentices
Travel to site          counts as work time     Adviser, [date]            Installers
Records kept for        [adviser's figure]      Adviser, [date]             All

Pay records need four habits whatever the tool. Keep the raw clock data as well as the approved totals. Log every edit with who, when and why; note that Clockify's pricing page lists its audit log only on Enterprise, so on cheaper plans keep your own change column. Keep the AI's output as a working paper, not as the record. And restrict who can edit approved weeks.

One more rule applies if you have staff in the EU. Annex III of the EU AI Act lists, among high-risk employment uses, AI intended to allocate tasks based on individual behaviour or personal traits, or to monitor and evaluate the performance and behaviour of workers. The obligations for those systems apply from 2 December 2027. A rota built from stated availability and fixed rules is a different thing from a tool that scores staff on reliability to hand out shifts. Whether a particular tool is covered is a question for an adviser, and the second kind is the one to raise before you buy. Rules to enter so the rota stays legal goes deeper on the rota side.

A security installer's week, before and after

These minutes are illustrative, for a nine-person firm: six engineers, an office administrator, an operations manager and the owner. The figures are weekly averages of admin time before and after the steps above are in place.

TaskBefore (min)After (min)What changed
Collect availability, chase replies255Form with automatic reminder; ASK rows answered by hand
Draft and publish the rota3515Assistant drafts; manager reviews and approves; tool publishes
Swaps and last-minute changes2010Swaps pre-checked for rest and qualifications
Rota subtotal8030
Type hours from texts and paper sheets600Phone clock-in or form feeds the sheet
Chase missing entries255Automatic Friday reminder
Check totals, breaks and overtime3510Formulas plus the exception report
Review flags, approve, export2025Goes up: more time on flags, less on typing
Timesheet subtotal14040
Log requests, update balances250Form writes to the balance sheet
Check cover and reply2520Rule check and draft reply; manager still decides
Leave subtotal5020
Total per week27090180 minutes saved, 3 hours

Three hours a week over 50 working weeks is 150 hours. Valued at $30 an hour (an assumption; use your own loaded rate), that is $4,500 a year. Build time is the real cost: about 8 hours to set up the form, sheet and prompts, which is $240 of time and pays back in under three weeks at $90 a week. The time does not vanish. It moves from typing to reading flags, which is why the "review flags" row goes up. How the engineers' jobs are booked is a separate problem; AI job scheduling and dispatch for trades and field service teams deals with that side.

Tools by route: Teams, a rota app, or a sheet and a form

Prices change often, so treat these as list prices as of October 2026 and confirm on each vendor's page.

RouteWhat it coversCostWhere it strains
Shifts in Microsoft TeamsMicrosoft describes it as the scheduling and time tracking app included with Teams. Managers create schedules, approve time-off and shift requests and export timesheet reports; staff clock in and out, request leave, swap shifts and set availabilityNo extra licence beyond TeamsCheck whether it covers your rest and overtime rules; if not, run them in a sheet
HomebaseBasic scheduling and time tracking on the free Basic plan for one location and up to 10 employees; Essentials adds advanced scheduling; the Plus tier adds an AI-powered scheduling assistant and time-off controlsBasic $0; Essentials $30 per location per month; Plus listed at $70, so confirm the live pricePer location, not per user, so a second site doubles the cost
DeputyLite has scheduling, timesheets and leave and availability management; Core adds auto-scheduling, demand forecasting and timesheet auto-approvalLite $5, Core $6.50, Pro $9 per user per month; monthly billing has a $30 minimum spendA team of four on Core is $26 on paper but $30 billed monthly
Clockify for timesheets onlyTimesheets on every plan; time off, timesheet approval and locked past timesheets from the Standard planCheck its pricing pageAudit log only on Enterprise
Form, sheet and calendarA form writes to a sheet; formulas total hours and balances; a shared calendar shows leave; an assistant writes the formulas and promptsMostly free if you already have the suite. Glue tools: Make from about $9 a month; Zapier Free (100 tasks a month, two-step Zaps) or Professional at $19.99 a month billed annuallySomeone must own and maintain it; no phone clock with location

For the nine-person firm, Deputy's Core plan would cost about $58.50 a month ($702 a year) if all nine people needed a seat, against $4,500 of time saved in the worked sums. Homebase Basic or Teams would cost nothing extra but needs more of your own rule-checking. Choosing between them is the sort of call to make on one real rota, not on a feature grid. Run each route for two weeks and count the minutes.

Proving it works: two pay periods in parallel

Do not switch off the old routine on day one. Run the old and new routines side by side for two pay periods and compare the output for every person.

CheckPass mark
Old and new weekly hours per personZero unexplained differences; every difference logged with a cause
Rule flags the new system raisedEach one reviewed and either cleared or acted on within 24 hours
Rules the new system missed (found by hand)None; any miss means the rule goes into the sheet before go-live
Leave balances after two periodsMatch the manual sheet to the day
Admin minutesMeasured weekly and compared with the before column

Keep the manual fallback for one more period after the pass, and review the rules table whenever a contract, a policy or the law for your staff changes. If a flag turns out to be wrong more than once, fix the rule rather than ignoring the flag; a flag that people stop reading is worse than none.

Questions about automating staff admin

Can AI approve leave requests on its own?

It can for simple cases if you set narrow rules in advance, such as enough balance, enough cover and no clash with booked work. The safer pattern is that AI checks the rules and drafts the reply while a manager approves anything close to a limit, anything involving sickness or family reasons, and every refusal. Keep a log and review it weekly.

Is it safe to paste staff names and hours into ChatGPT or Claude?

Staff names, hours and pay are personal data. Use initials or staff IDs, leave out the reason for any absence, and switch off the model-training setting on a consumer plan, or use a business plan, which does not train on your content by default. Ask your payroll or data-protection adviser what your contracts and local rules require.

How long should I keep timesheets and leave records?

Retention periods are set by law, differ by place, and can depend on whether the record feeds pay, tax or a dispute. Ask your payroll adviser for the figure and write it into your process. Keep the raw clock data as well as the approved totals, and log every edit with who changed it, when and why.

Do I need paid software, or can a spreadsheet do it?

A form, a sheet and a shared calendar can run a small team, and Teams already includes Shifts. Move to a rota app when swaps, phone clock-ins or approvals make the sheet fragile. Judge any tool by hours saved per week and errors caught, not by its feature list.

Further reads

Sources: Microsoft Support (Shifts in Teams), Homebase, Deputy and Clockify pricing pages, EU AI Act Annex III and implementation timeline (checked October 2026). Prices are USD list prices; hours, minutes and policies in the examples are illustrative.

Want your rota, timesheet and leave steps sorted?

On a 1:1 call we'll walk through your current rota, timesheet and leave routine, mark each step as automate, draft or manager-only, and pick the first one to build with the tools you already use.

Book a 1:1 call with me