Skip to content

AI shift scheduling in manufacturing: covering vacations and absences

DYNAMINDS Labs team · · 6 min

AI Workers

In brief

An AI Worker can draft a shift schedule once it has three data sets: the production plan from the ERP or MES, vacations and absences from the HR system, and a list of who is qualified on which machines. It calculates the crew each shift needs, assigns available staff, checks the 11 hours of daily and 35 hours of weekly rest required by Polish labor law, and flags gaps for a decision. The manager, who is responsible for staffing and overtime, publishes the schedule.

Why the schedule falls apart on Monday morning

In most plants the shift schedule lives in a spreadsheet. The shift supervisor knows the people: who is certified for the forklift, who runs the press brake, who is still in training. Trouble starts when the production plan changes mid-week and two people call in absent at the same time. The supervisor then goes through the qualifications sheet, checks who worked the night shift yesterday and starts phoning people.

The usual sources of errors:

  • No qualified person at a station. The shift is fully staffed, but nobody holds the operator certificate for the forklift, which the Polish Technical Inspection Act (Article 22) requires from people operating such equipment.
  • Rest too short. Someone finishes at 10 p.m. and is put on the 6 a.m. shift. The Polish Labor Code (Article 132) gives every employee at least 11 hours of uninterrupted rest in each 24-hour period.
  • Staffing based on the old plan. The schedule was built for last week's plan, and a new order needs an extra line on the second shift.
  • Uncontrolled overtime. Gaps always land on the same people until they approach the annual limit.

What data the planner reads and what it calculates

The Shift planner does not guess staffing levels. It derives them from data the plant already has.

SourceWhat it takesWhat it is used for
ERP or MESorders for the period, lines, crew standardshow many people at which stations each shift needs
HR systemvacations, absences, working hourswho is available on a given day
qualifications sheetmachine qualifications and their expiry dateswho can be assigned to a station
previous scheduleend times of the last shiftsdaily and weekly rest

The planner does not need the reason for an absence. It only needs to know that a person is unavailable from Tuesday to Friday. This matters for personal data: the GDPR requires processing only the data needed for the purpose, and a medical diagnosis is not needed to build a schedule.

Drafting the schedule step by step

Example: a plant runs three shifts with 60 people on the floor, and next week's plan includes an extra order on the welding line. The planner works in this order:

  1. Calculates demand. The plan shows the second shift needs two more welders and one more forklift operator.
  2. Removes absent staff. Two people are on vacation and one has called in absent. 57 people are available.
  3. Matches qualifications. It fills the stations that few people are qualified for first, because that is where gaps appear. General stations come last.
  4. Checks working time. For each person it calculates daily and weekly rest (Article 133 of the Labor Code: at least 35 hours) and the hours in the settlement period.
  5. Flags gaps. When a station cannot be filled without breaking the rules, it does not force anyone in. It shows the gap and the possible options.
  6. Explains every proposal. Each entry carries a reason: why this person, and where the headcount for the shift comes from.

Staffing gaps: what stays with the manager

The planner separates problems it can solve in the draft from those that wait for a person.

SituationWhat the planner doesWho decides
swapping two people with the same qualificationsproposes the swap in the draftthe supervisor when reviewing the draft
no qualified person for a stationflags the gap and lists qualified people on other shiftsthe shift supervisor
a gap that only overtime can closeshows who has the fewest overtime hours this yearthe supervisor, because ordering overtime is their decision
a change after the schedule is publishedcalculates the differences from the published versionthe production manager

Article 151 § 3 of the Labor Code caps overtime caused by the employer's particular needs at 150 hours per calendar year per employee, unless work regulations or a collective agreement set a different number. The planner tracks this counter but does not order overtime. The schedule must also reach the employee at least one week before the period it covers begins (Article 129 § 3), so the draft should be ready early, and later changes go through the manager.

This split follows the principle described in Human in the loop: the AI Worker prepares and calculates, and decisions that affect people stay with a person.

How to start and what to measure

The simplest start is a pilot on data from the last two or three months: plans, schedules, absences and the qualifications sheet. The planner drafts schedules for past weeks, and the supervisor compares them with the schedules that were actually used. Three things are worth measuring: how much time the supervisor spends on the schedule each week, how many gaps surfaced only on the day of the shift, and how often the schedule broke the rest rules.

The Shift planner does not replace production scheduling. The sequence of orders on machines is set by the production planner or an APS system, as described in Production scheduling (APS). The shift schedule takes that plan as input. For a wider look at which shop floor tasks AI Workers can take over, see AI Workers in manufacturing. DYNAMINDS Labs starts with a free diagnosis, in which we choose one process for a pilot.

Questions and answers

Does the AI Worker publish the schedule and assign shifts by itself?

No. The planner prepares a draft with a reason for every proposal and a list of gaps. The supervisor reviews the draft, adjusts it and publishes it. Changes after publication, overtime and moving people between shifts are always approved by a person.

What if someone calls in absent on the morning of the shift?

The planner recalculates staffing for that shift and shows the supervisor who can be moved without breaking rest rules and with the right qualifications. The supervisor picks the option. The AI Worker does not call people or send them changes without approval.

Does the AI Worker see employees' health data?

It does not need to. The schedule only needs to know that a person is unavailable on given days. The reason for the absence stays in the HR system. Data is processed on the company's server or in a data center in Poland, and every step is logged.

Will this work if the schedule is built in a spreadsheet today?

Yes. The planner works with exports from the spreadsheet, the HR system and the ERP. A pilot needs no integration: files from a few months are enough. Integration is set up only once it is clear the drafts are accurate.

Start with one task. Describe it, and DYNAMINDS Labs will prepare a free diagnosis.

Meet DYNAMINDS Labs

Read more: AI Workers

All in AI Workers →