# Ask your HR data

Ask plain questions about headcount, leave, attendance and expenses, and check every answer against the records it came from.

The **Ask your HR data** add-on gives HR and managers an **Ask your data** page. Type a question such as "Who is on leave next week in Sales?" or "Which department had the most late arrivals last month?" and get an answer with the figures it was worked out from. It only reads records. It never changes anything.

It is a paid add-on. It needs an AI provider connected under [Settings → AI](https://czappstudio.com/ar/docs/ai/overview), with a model that passed **Looks up records** in the connection test.

## Turn it on

1. Turn the add-on on from the **Modules** page.
2. Open **AI → Overview** and switch on **Turn on AI**, then open **AI → Features and access** and switch on **Questions about HR data**.
3. On the **Roles** page, give the **Ask questions about HR data** permission to the roles that should use it. Only the System Administrator has it to start with.

**Ask your data** then appears in the menu for those people.

## What people can ask about

A person only gets figures from records they can already see in the application.

| Subject | Who can ask |
| --- | --- |
| Headcount, and people who joined or left | People who can view employees |
| Who is on leave, and leave taken | People who can view all leave, or managers for their own reports |
| Attendance: days attended, late days, early leaving, hours and overtime | People who can view all attendance, or managers for their own reports |
| Expense claims: counts and totals | People who can view all expenses, or team expenses for their own reports |

Someone who can only see their own records is told they do not have access. Questions about their own leave or attendance belong in [Ask HR](https://czappstudio.com/ar/docs/ai/hr-assistant).

## Ask a question

1. Open **Ask your data**.
2. Type your question and select **Ask**. Say the period you mean, such as "last month" or "from 1 to 15 November".
3. Read the answer, then open **Worked out from** under it. It shows each set of records the answer used, with the period and department.

You can ask a follow-up, such as "And for Support?". One question covers at most 400 days.

For expenses, say which claims you mean. "Sent in" counts every claim that was submitted, "approved" counts approved claims, and "paid" or "paid out" counts only claims already reimbursed. **Worked out from** shows which was used under **Claims counted**.

The answer comes in the language you ask in. Names of people, departments and kinds of leave are shown as they are recorded.

## Check the figures

The answer is written by an AI model and can be wrong. The tables under **Worked out from** are the actual records it was given, so check a figure against them before you rely on it. If a table says it shows only the first rows, the answer covers only those rows: narrow the question to one department or a shorter period.

If the records cannot answer the question, you see "I could not work this out from the records." Ask about headcount, leave, attendance or expenses, or open the matching report.

## What is sent and what is kept

- Your question and the figures used to answer it, including employee names where the answer lists people, are sent to the AI provider your administrator chose. With a self-hosted model they stay on your own network.
- Only you can see your questions and answers. They are removed after 30 days; select **Clear my questions** to remove them sooner.
- Each question counts as one AI request towards the monthly limits under **AI → Overview**.
