# Payroll AI Copilot

Turn on the Payroll AI Copilot with an AI connection, then ask questions, explain numbers, scan runs and draft columns or policies.

Source: https://support.rework.com/article/payroll-ai-copilot

The Payroll AI Copilot answers questions about your payroll, explains how a number was worked out, checks a run for problems and drafts columns, formulas or even a whole policy for you. This article shows how to turn it on and what you can ask it. 🤖

## Before you start

- The Copilot needs an **AI connection**: an API key from Anthropic, OpenAI or Gemini. Until one exists, the Copilot can't chat, and admins see a prompt to set one up.
- Anyone can add a **personal** connection that only they can use. A **workspace** connection, shared with everyone, needs an app admin or system owner.

## Open the Copilot

Click the sparkle button in the top bar **(1)** to open the Copilot panel. If there's no connection yet, you'll see **Open AI Copilot settings** **(2)**, which takes you straight to setup.

Type your question in the message box **(3)**. Use the command button **(4)**, or type `/`, to pick a ready-made command. The chip **(5)** shows the page context the Copilot is using, such as **Payroll workspace**. You can remove it if you want a general answer.

![The AI Copilot panel open next to the Cycles page, with the header button, Open AI Copilot settings, the message box, the command button and the page context chip marked](https://storage.googleapis.com/reworkv3-public/success/260930/eu7syEhZn27YCiguhtDgs3ihdTXBZpyn5Ub2gq6RraPYAGGSRhxw6A5xfDFhJlOe/img.y1IcGOPcvbo2pWbj7rtm8FQyDPeNp769veeoVUv54YyM3iEZxLYp5eGK3s3lMLRO.png)

## Connect an AI provider

1. Go to **Settings** > **AI Copilot** **(1)**. The banner **(2)** tells you whether the Copilot is on.
2. Click **Add connection** **(3)**.![Settings open on AI Copilot, with the menu item, the status banner and the Add connection button marked](https://storage.googleapis.com/reworkv3-public/success/260930/l5f8QDUIr672vIHVQzsygB6JldmDWZuaRxVO7DcHVTR6cdbLPYIZOgbXrGw29ZLa/img.qtalY8MkiPKAonyuzbgezOdr07slFrUYsj6UEJmK9e9Lc4aDKF6graDHAUEOVMg5.png)
3. Give the connection a **Name** **(1)** and pick the **Provider** **(2)**: Anthropic (Claude), OpenAI or Gemini.
4. Optionally choose a **Model** and **Base URL** **(3)**. Leave them empty to use the provider's defaults.
5. Paste your **API Key** **(4)**. The hint under the field tells you where to get one.
6. Choose the **Visibility** **(5)**: **Personal** (only you) or **Workspace** (everyone).![The Add AI connection form with Name, Provider, Model and Base URL, API Key and Visibility marked](https://storage.googleapis.com/reworkv3-public/success/260930/InKl02IkJQb4MpC3vkMe5oU9iuV7JT2ke9nGBOn2WEBxhPSo13UVId0JIWE2XQv5/img.ZHF56MBnkTiJKLm96HYHN6O6oelAIbLfjJuwFROsDLtf8xM6lyy4RaHg1AssshzW.png)
7. Click **Add connection**. The first workspace connection becomes the default straight away, so the Copilot switches on for everyone.

> Your key is encrypted as soon as it's saved. Afterwards, Payroll only ever shows its last four characters. To turn the Copilot off, remove the connection.

## What you can ask

| Task | What the Copilot does |
| --- | --- |
| **Ask a question** | Answers questions about payroll templates, records and calculations using your real data, such as total income across recent runs or the status of advance requests. |
| **Explain a number** | Breaks a cell down into its formula and inputs, and checks the result against the data snapshot the run used. |
| **Scan for anomalies** | Checks a run for red flags, such as no income tax on taxable income, net pay dropping more than 20% against the previous run, or missing overtime. |
| **Approval brief** | Summarises a run for approvers: headcount, total net and change, top movers, blockers and a recommendation. It never approves anything by itself. |
| **Build columns** | Turns a pasted table or an uploaded Excel sheet into payroll columns and formulas. |
| **Fix a formula** | Suggests a corrected formula and only offers it if it checks out. |
| **Draft a policy** | Sketches a new payroll policy from a description _(admins only)_. Statutory tax and insurance always come from HRIS, not from the draft. |
| **Act on a run** | Starts a calculation, or approves, returns or rejects a run. |

\[IMAGE: people-ops/payroll/images/payroll-ai-copilot-04.png | A Copilot answer with a connection set up: mark (1) the answer, (2) the reasoning and sources, (3) a confirm card with Apply and Refuse\]

## Stay in control

- **Nothing changes without you.** Whenever the Copilot wants to change something, it shows a card with **Apply** and **Refuse**. The change only happens when you apply it, and it runs as you, with your permissions.
- **It shows its working.** Answers come with the reasoning and the sources behind them, not just a bare number.
- **It respects permissions.** The Copilot only reads payroll data you're allowed to see.

## Good to know

- You can attach up to 6 images (5 MB each) and up to 4 Excel, Word or PDF files (10 MB each) per message. Messages can be up to 4,000 characters.
- Use the icons at the top of the panel to start a new chat or reopen an earlier one.

## Related articles

- [Payroll Intelligence](https://support.rework.com/article/payroll-intelligence)
- [Work in the payroll records grid](https://support.rework.com/article/payroll-records-grid)
- [Columns, variables and formulas](https://support.rework.com/article/payroll-columns-formulas)
