Skip to content
← Skills

Explain payroll variances

Each payslip is compared with last month's, every variance above your threshold gets a probable cause, and the payroll manager reviews before closing.

Silae→Slack
Starts
When you ask
Steps
7
Checks and gates
1
A person decides
1

Review the November payroll variances across every dossier before we close.

Monthly request before closing

See it in a demo

Claude runs the rest autonomously

  1. 1

    AI lists the dossiers and the open month.

    Silae

    Silae

    The reachable dossiers come back with their open pay period, and the month before becomes the comparison.

  2. 2

    AI compares headcount with last month.

    Silae

    Silae

    Entries and exits are found by matricule, and every remaining employee's jobs are read.

  3. 3

    AI compares each payslip with last month.

    Silae

    Silae

    Each payslip's gross, net and hours are read next to last month's, and the lines of those above the threshold are matched by code.

  4. 4

    AI gives each variance a probable cause.check

    Every flagged payslip gets the cause its lines support, or is marked for the payroll manager to confirm.

  5. 5

    AI logs every variance against its payslip.

    Each flagged payslip gets one row keyed on dossier, matricule, job and month, identified by matricule only.

  6. 6

    AI posts the monthly summary.

    Slack

    Slack

    The team channel receives the counts and the dossiers with the most to confirm, with no personal data.

  7. Review and validate the month. A person takes it from here.handover

    The payroll manager reads the rows to confirm first, records a decision on each and validates the month.

Before a month of payroll is validated, someone opens last month's payslips next to this month's and looks for what moved. A net that jumped, a contribution line that appeared, an employee who vanished. On one company it takes an hour. Across the dossiers of an accounting firm it takes days, and it happens in the same few days every month, when there is the least time for it.

Both months already sit in the payroll software, payslip by payslip and line by line. What a person adds is the comparison and the reason behind each gap. The comparison is mechanical. The reason is a judgment, and it stays with the payroll manager, who now starts from a list of explained variances instead of a stack of payslips.

What you get

Before the month is validated, every payslip that moved more than your threshold has a row with its probable cause, the unexplained ones are marked for the payroll manager, and the team channel holds one summary with counts and no personal data.

What each payslip is compared against

The run reads Silae in read-only mode. It lists the dossiers the API key reaches and the open pay period of each, then compares the employees active this month with those active last month, keyed on the matricule. An employee present only this month is an entry, one present only last month is an exit, and either one explains a partial payslip before any line is read.

Each employee's jobs are read next, because a payslip belongs to a job, and an intermittent can hold several in one month. For every job, the header of this month's payslip is set beside last month's: gross, net, taxable net, deduction totals and hours. A job with more than one payslip in the month carries a supplementary payslip, such as a profit-sharing or a correction, and that is flagged on its own.

Only the payslips that cross your threshold have their lines read. The lines of both months are matched by code, on the pay zone and the contribution zone, with the greyed lines left out. What comes back is the short list of lines that appeared, vanished or changed, with the rate and the base of each contribution line.

What makes an AI payroll review hold up

A variance gets the cause the lines show and no other: an entry or an exit, hours, an absence, a one-off bonus, a regularisation of an earlier period, a contribution rate that changed for the whole dossier. A line that looks new is checked against the same month a year earlier, where a yearly bonus explains itself. When the data supports no cause, the row says to confirm and lists the lines that moved. The run never calls a variance an error, because a correct payslip can move a lot and the payroll manager is the one who knows why.

Personal data stays in the payroll software. Employees are identified by matricule in the review table, and the summary posted to Slack carries counts and dossier names only. The connector masks nothing by default, so set a field-filter policy for Silae on the identity fields before the first run: this process still works with it on, because it reads payslip headers and lines, never a report or a declaration file. It also runs on any Silae API contract, including the model made available to a firm's clients, which opens no declarations.

The run is built for a portfolio. Every call targets one dossier, a firm with several Silae accounts targets each by name, and the table is keyed on dossier, matricule, job, month and payslip index, so a second run the next day merges onto the same rows instead of adding new ones. It stays away from 1am to 5am, when Silae refreshes its platforms. Once the payslips are explained, the same month's declarations can be checked against the charges table in Control the DSN.

The prompt

The real prompt behind the steps above, detailed enough that an agent with the same tools can run it as written. The Run buttons copy the full version, which also carries the steps for connecting those tools.

# Explain payroll variances

You have read access to your payroll software, a team chat and a
table you can read and write. Run this for **[the pay month you are
about to validate, e.g. 2026-11]** on **[one dossier, or every
dossier your key reaches]**.


## 1. List the dossiers and the open month

- List the dossiers your key reaches (`silae_dossier`, op `list`). A
  dossier you expected and do not see may simply sit outside the API
  access configuration behind your subscription key: report it, do not
  guess.
- For each dossier in scope, read its open pay period (op
  `current_period`). Review the month you were given; if it differs from
  the open period, say so in the report rather than silently switching.
- Pay months are written `AAAA-MM`. The comparison month is the one
  before, **[the month under review minus one]**.
- Every call targets one dossier. With several Silae accounts stored
  (one per firm or per client), target each with `_account="<name>"`
  and walk them yourself: no tool loops over accounts on its own.
- Do not run between 1am and 5am: Silae refreshes its platforms then.
- On a portfolio of many dossiers, run the reads of steps 2 and 3 as a
  script or recipe and keep the model for step 4. Reading every payslip
  one call at a time through the model costs far more than the review is
  worth.

## 2. Compare headcount with last month

- List the employees active in the month under review (`silae_employee`,
  `periode="[month]"`), then those active in the comparison month. Key
  both lists on the matricule.
- In both lists, not in the previous one: an **entry**. In the previous
  one only: an **exit**. Both explain a variance on the dossier total,
  and an entry or exit inside the month usually explains a partial
  payslip on its own.
- For every employee present in the month, read their jobs (op `jobs`)
  to get each `identifiant_emploi`. An intermittent can hold several jobs
  in a month, and each job has its own payslips.

## 3. Compare each payslip with last month

- A payslip is addressed by matricule + `identifiant_emploi` + month +
  `indice_periode`. List the payslips of each job for both months
  (`silae_payslip`, op `indices`). An index above 0 is a supplementary
  payslip (a profit-sharing or a correction, for example): it is a
  variance in itself, flag it.
- Read the header of each payslip for both months (op `header`): gross,
  net, taxable net, deduction totals and hours.
- Flag the payslip when **[your variance threshold, e.g. 5 % or €150 on
  gross or net]** is crossed, or when hours changed.
- For a flagged payslip only, read its lines for both months (op
  `lines`, `line_filters` with `exclure_lignes_neutres` set, and `zone`
  `pay` then `contributions`). Match lines on their code, then list the
  lines that appeared, vanished or changed amount, and on contribution
  lines any change of rate or base. Keep the DUCS code beside each.
- A line present this month and absent last month: read the same month
  a year earlier before calling it new. An annual bonus explains itself
  there.

## 4. Give each variance a probable cause

For every flagged payslip, write one probable cause from what steps 2
and 3 actually show, and nothing else:

- **Entry or exit** in the month (partial period).
- **Hours**: the header's hours moved, overtime or reduced time.
- **Absence**: an absence line appeared on the pay zone.
- **One-off element**: a bonus or allowance line present this month
  only, or recurring at this time of year.
- **Regularisation**: a line correcting an earlier period.
- **Rate or base change** on a contribution line, the same for every
  employee of the dossier (a rate update) or for one only.
- **Supplementary payslip** (index above 0).

A variance with no cause the data supports is marked **to confirm with
the payroll manager**, with the lines that moved. Never call a variance
an error: a correct payslip can move a lot, and deciding is the payroll
manager's job.

## 5. Log every variance against its payslip

- One batch write to **[your payroll review table]**, keyed on dossier
  + matricule + `identifiant_emploi` + month + `indice_periode`, so a
  re-run merges onto the same rows. Columns: the gross and net of both
  months, the variance, the lines that moved, the probable cause or
  *to confirm*, and an empty decision column for the reviewer.
- Identify employees by matricule only. Names, social security numbers
  and addresses stay in the payroll software.

## 6. Post the monthly summary

Post one message to **[your payroll channel]**: dossiers reviewed,
payslips compared, variances flagged, how many have a probable cause,
how many are to confirm, and the dossiers with the most to confirm.
**Counts and dossier names only**: never an employee's name, social
security number or pay in the channel.

## 7. Review and validate the month

The payroll manager opens the table, starts with the rows to confirm,
fills in the decision column and validates the month in the payroll
software. Nothing in this process changes a payslip.

## Rules

- Read-only on the payroll side: never enter a variable element,
  a bonus or hours, never validate a payslip.
- No personal data in the chat or in the summary.
- A probable cause is never presented as a finding of error.

## Output

A short report: the month reviewed, dossiers and payslips compared,
entries and exits, variances flagged, explained and to confirm,
supplementary payslips, any dossier missing from the key's reach, and
the link to the review table.

Why run it with Tulina

A prompt helps one person. A process moves a team.

Pasted into a chat, the prompt above works once, for whoever pasted it. In Tulina, "Explain payroll variances" becomes a process the team shares, that keeps its history, runs on its own, and stays inside the same security perimeter as the tools it calls.

  • The whole team works on the same one

    PersonalTeamOrganisation

    A process lives where it belongs: yours, your team's or the whole organisation's. Whoever runs it can improve it, and everyone starts from the best version instead of explaining the job again.

  • Every edit is a version

    v1v2v3

    Each change is a new version with the previous one kept, so a bad edit is undone by restoring an earlier one. Every run records the version it followed, and what a run teaches goes back into the process.

  • It runs without you

    schedulewebhookon demand

    A hosted agent runs the process on Tulina's own infrastructure, on a schedule or when an event arrives, and keeps going when you close the chat. Nothing to host. Every run is tracked to its outcome.

  • Inside the same security perimeter

    vaultrolesrun log

    Credentials stay in the vault, never in the prompt. Roles decide who may run what, every call is logged, and a step a person has to approve waits for that person.

Questions about AI payroll review

It can do the comparison a payroll manager does by hand. Every payslip of the month is read next to last month's, a variance above your threshold is flagged, and the lines that moved are listed with a probable cause. The payroll manager still validates the month: the AI reads and explains, it never changes a payslip.

Start with headcount: an entry or an exit inside the month explains a partial payslip on its own. Then compare the payslip lines by code: hours that moved, an absence line, a bonus present this month only, a regularisation of an earlier period or a contribution rate change. A line that looks new is checked against the same month a year earlier, where an annual bonus explains itself.

It depends on what the assistant can see and where its output goes. Here the payroll access is read-only, identity fields can be masked by a field-filter policy before they reach the model, employees are identified by matricule only, and the team chat receives counts and dossier names, never a name or a salary.

No. It prepares the review: which payslips moved, by how much, and the most likely reason. Anything the data does not explain is marked for the payroll manager, and only they decide whether a variance is correct and validate the month.

Skills that share tools with this one. The shared tools are lit.

See Tulina in a 30-minute demo.

Book a demo