Use cases

AI HR assistants for employee questions

Build an HR assistant that answers from the policy that applies to each employee, cites the clause it used, remembers their situation and keeps one person’s details away from everyone else’s.

An HR assistant answers the questions employees would otherwise email to HR: how much parental leave they get, whether the dental plan covers a partner, how to change their bank details, what the notice period is, when the next pay review happens. Most of these have a written answer in a handbook, a benefits guide or a policy document. The hard part is that the right answer depends on who is asking. An employee in Germany and one in the UK have different leave entitlements, a contractor and a permanent employee have different benefits, and a policy that changed in April means a question about March has a different answer from a question about May.

That makes an HR assistant a precision problem with a privacy constraint. It has to find the clause that applies to this person, under the version of the policy in force, say where it came from, and never mix one employee’s circumstances into another’s conversation. This page covers the infrastructure for that: how policies are stored and searched, how each employee’s context is remembered and kept separate, how the policy library stays current, and where HR’s own judgement stays in charge.

The problem

A first HR chatbot usually indexes the employee handbook and answers by similarity. It does well on general questions and badly on the specific ones that matter. Ask about parental leave and it retrieves the paragraph about parental leave, from the wrong country’s handbook, or from last year’s version that is still in the index. The answer reads well and is wrong, and in HR a wrong answer about pay, leave or benefits is a grievance in the making. Without source attribution, the employee cannot check it either, so they email HR anyway.

Policy documents are also awkward to retrieve from. They are long, full of defined terms and cross-references, and the conditions that matter sit in subclauses: the entitlement applies after six months of service, unless the employee transferred from a group company, in which case prior service counts. Fixed-size chunks split those conditions from the rule they qualify. Tables of benefits by grade or location get flattened into unreadable text. Some of the most important documents are scanned PDFs of signed policies with no text layer at all.

Then there is the person. A good HR answer starts from knowing the employee’s country, contract type, start date and anything already in progress, such as an approved leave request or an open question about a payslip. Without agent memory, the assistant asks for all of it each time, and some of it, like a medical situation behind a leave request, is something an employee should not have to repeat.

And everything about that person is sensitive. HR data includes health information, family circumstances, disciplinary matters and pay. If memories for every employee sit in one shared store and the only separation is a filter on employee ID, a single bug can put one person’s situation into another person’s chat. Of all the failures an HR assistant can have, that is the one that ends the project.

What Exabase unlocks

With version-aware policy search, per-employee memory and isolation underneath, an HR assistant gives the answer that applies to the person asking and shows exactly where it came from.

An employee in Berlin asks how much paternity leave they can take. The assistant retrieves their context first: German entity, permanent contract, joined fourteen months ago, partner due in March. It then searches the policy library, filtered to the German handbook currently in force, and gets back the specific clause on paternity leave, the subclause on the qualifying service period and the line in the benefits guide about enhanced pay, each with its document and page number. The answer is short, specific to them, and cites three passages they can open. If the question touches something the policy leaves to discretion, the assistant says so and routes it to the right HR partner with the context already attached.

When the handbook is revised in April, the new version is filed and tagged by a Worker the same day, and the assistant starts answering from it without anyone rebuilding an index.

How it works

Five parts of Exabase carry an HR assistant: the policy library, search over it, extraction for scanned and awkward documents, memory for employees and Bases for isolation, with Workers keeping the library current.

Resources and Deep Search

Resources hold the policy library: handbooks, benefits guides, leave policies, expenses rules, pension documents and HR forms, stored as files or notes, organised into folders by country or entity and tagged by policy area and effective date. Each document is indexed as it arrives and split into page-numbered chunks.

Deep Search finds the clause. Text search is hybrid search, so a loosely phrased question and an exact term such as a plan name both work, and double quotes force an exact match. Results are returned at the sub-document level, with the matching passage, its page number and a relevance score, which is sub-document retrieval in practice. Filters by folder, tag and creation date restrict a search to the employee’s country and to the policy set currently in force, a form of metadata filtering that removes most wrong-version answers before they happen. A high precision setting suits entitlement questions, where one clause is the answer; a lower one suits broad questions such as “what happens when I go on leave?”.

Extract

HR libraries are full of documents that were never meant for machines. Extract takes PDFs, scanned documents, Word files and images through one endpoint, runs OCR where there is no text layer, and returns text chunks with page numbers, so a scanned, signed policy becomes searchable and citable. Results arrive by polling or by webhook. The about extraction guide covers the flow, and our DOCX to JSON tool shows the output for a Word policy.

Memory

Exabase Memory holds the employee’s context: country and entity, contract type, start date, team, and the facts that come up in conversation, such as an upcoming leave or a change of address. You send conversations as text and the M-1 engine extracts facts and events automatically, then keeps them current, so a move from part-time to full-time supersedes the old contract type instead of contradicting it. For facts that come from your HR system of record, you can write them directly as verbatim memories with infer set to false, and mark them immutable so the self-organising process never edits them. Simple retrieval returns in about 200ms, so the assistant can load an employee’s context before it answers. This is the user profile that makes answers specific.

Bases

Bases keep each employee’s data apart. The usual design is one Base for the shared policy library and one Base per employee for their memories and any personal documents. A call scoped to an employee’s Base cannot reach another employee’s data whatever the query says, because isolation is enforced at the infrastructure level. That is data isolation without relying on every query carrying the right filter, and it is the property an HR or works council review will ask about first. Deleting an employee’s Base permanently removes their memories, files and search index, which is the mechanism you would build leaver data handling on.

Workers

Workers keep the policy library tidy. A Worker runs inside a Base on a schedule, following a plain-language prompt with tools for searching and reading resources, moving and tagging them, writing notes and managing tasks. For an HR library, a Worker can file newly uploaded policies into the right country folder, tag them by area, move superseded versions into an archive folder so filtered searches skip them, and write a monthly note listing policies past their review date. Every run is recorded as a conversation with its tool calls, so HR can see what changed. The creating Workers guide shows how to set one up.

Example architecture

The shape is a shared policy Base, a private Base per employee, and an assistant that reads the employee’s context before it searches.

Build the library. Upload handbooks and policies into a policy Base, one folder per country or entity, tagged by policy area. Run scanned documents through Extract first. Add a Worker that files new uploads and archives superseded versions.

Load the employee. When an employee opens the assistant, map them to their own Base, created on their first visit, and retrieve their context with one memory search, following the memory scoping pattern. Seed core facts from your HR system as verbatim memories.

Search with filters. Build the search from the question plus the employee’s country and contract type, filtered to the current policy folder for their entity. Pass the returned clauses and page references to the model with an instruction to answer only from them and to cite each point, which is grounding and the main defence against hallucination on entitlement questions.

Know when to hand over. Route anything discretionary, disputed or sensitive to a person, with the employee’s context and the clauses consulted attached. Keeping a human in the loop for those cases is a design choice, and it is the one HR teams expect.

Record what matters. After each conversation, send it to Memory so the next one starts from the current picture. Decide which categories of detail the assistant should keep, and leave health and similar special-category details out of memory unless you have a clear reason and the right basis to hold them.

What compounds over time

An HR assistant built this way answers more questions correctly the longer it runs. Each employee’s context fills in, so answers become specific without the employee having to explain their situation. The policy library gets better organised with every Worker run, and the monthly review notes keep stale policies from lingering. And the questions themselves become useful: when many employees ask about the same clause, that clause probably needs rewriting, and when searches return weak matches, the handbook has a gap.

Trust compounds too. Employees who see a cited clause learn they can rely on the answer, and HR teams who can see the sources behind every answer are more willing to let the assistant handle the routine questions. Our posts on how long documents stay true and retention policies for agent data cover two questions every HR deployment runs into.

Boundaries

Exabase is the policy search, memory and isolation layer. Decisions about pay, leave approvals, performance and anything involving judgement belong to HR and to your own logic, and the assistant should present policy rather than make determinations. Exabase is CASA certified, with AES-256 encryption at rest and encryption in transit. Whether a deployment meets your obligations under employment and data protection law, including GDPR for AI and any data retention requirements, is a decision for your own legal, HR and security review.

Who’s building this

People teams at growing companies with staff in several countries, HR software vendors adding an assistant to their platforms, employers of record and PEOs answering questions for many client companies, and internal platform teams building one assistant for HR and IT. For PEOs and HR software vendors, one Base per client company keeps each client’s policies and employees separate, the pattern in our multi-tenant solution. The IT helpdesk use case covers the IT side of the same employee assistant, recruiting agents covers hiring, and customer onboarding covers a similar document-heavy workflow outside HR.

Get started

Start with the getting started guide, upload a handbook into a Base and run a few filtered searches against it. The knowledge base solution explains how Workers keep a library current, the agent memory solution explains how employee context is maintained, and our Exabase vs Glean comparison sets a custom assistant beside an off-the-shelf workplace search product. There is a free plan with 200 credits a month, and current prices are on the pricing page.

Frequently asked questions

How does an AI HR assistant give the right answer for each employee?

It loads the employee’s context first, then searches only the policies that apply to them. With Exabase, Memory returns facts such as country, contract type and start date, and Deep Search filtered to that employee’s policy folder returns the specific clause with its page number.

How do I stop it answering from an old version of a policy?

Keep superseded versions in an archive folder and filter searches to the current policy folders. A Worker can move old versions automatically when a new one is uploaded, so filtered searches only see the policy in force.

Can it cite the policy clause it used?

Yes. Each search hit includes the source document, a relevance score and the matched passage with its page number, so the assistant can link every point in its answer to the clause it came from.

How is each employee’s data kept private?

Give each employee their own Base for memories and personal documents. A call scoped to one Base cannot reach another Base’s data, because isolation is enforced at the infrastructure level rather than by a query filter.

Can it read scanned policy documents?

Yes. Extract runs OCR on scanned PDFs and images and returns text chunks with page numbers, so scanned policies become searchable and citable like any other document.

What happens to an employee’s data when they leave?

You decide, within your own retention policy. Individual memories can be deleted through the API, and deleting the employee’s Base permanently removes their memories, files and search index.

Is Exabase certified for HR data?

Exabase is CASA certified, with AES-256 encryption at rest and encryption in transit. Whether that meets the requirements for your HR data is a decision for your own legal and security review.

Related pages: Recruiting agents, IT helpdesk agents, Internal tools, Compliance audit, Knowledge base solution, Multi-tenant solution, Memory isolation, Knowledge base for AI, Exabase vs Glean, AI security questionnaire

Cut your token spend and give your agent precise context.

Get started in minutes.

Cut your token spend and give your agent precise context.

Get started in minutes.