
Most mornings, our HR inbox looked the same. Someone wanted to know how many leaves they had left. Someone else had checked in from a client site and wanted to know if their remote check-in had been approved. A new joiner asked whether their offer letter was ready, and a team lead wanted to know who would be on leave next week before planning the sprint.
None of these were hard questions, and every answer was already sitting in our HRMS. But getting to it meant opening the right page, picking the right month and reading through a table. So people asked HR instead, and HR spent a good part of each day working as a search engine.
We decided to build an assistant into the HRMS itself. You type a question in plain English, or in Hinglish if that is how you talk, and it answers from your actual records. It can also do things for you, like applying for leave or approving a batch of WFH requests, but only after it shows you exactly what it is about to do and you reply with a clear yes.
This post walks through what the assistant does for each of the three groups who use it, the rules we built around it, the mistakes we made along the way, and what we would tell any company planning something similar.
There is no shortage of HR chatbots on the market, and most of them fall into one of two groups.
The first group answers policy questions. You upload the leave policy and the employee handbook, and the bot can tell you how many sick days the company allows in a year. That is useful for about a week. After that, people want to know how many sick days they have left, and a bot reading a PDF has no idea.
The second group is connected to real data, and that is where HR teams get understandably nervous. If the bot can read salaries, who decides what it shows to whom? If it can apply leave, what happens when it misreads “next Friday”? Nobody wants software that acts on a sentence it half understood.
We wanted something in between: an assistant that works from live data, always knows who is asking, and never changes anything without the person’s go-ahead. Before writing any code, we agreed on six questions it had to handle well.
Who is asking, and can anyone trick it into thinking they are someone else?
What should an employee see, and what should HR see?
Who actually presses submit on a request?
Does “ok, go ahead” count as a yes?
Which numbers should never reach the AI at all?
What happens when someone closes the tab and comes back tomorrow?
Most of the answers ended up as rules in our backend rather than lines in the AI’s instructions. Instructions can be misread. Backend rules cannot.
Employees, HR and admins all open the same chat page. Behind it, each role gets its own assistant with its own tools, its own instructions and its own suggestions on the welcome screen. An employee sees cards like “Leave balance” and “When can I leave today?”. HR sees “Pending approvals” and “Who’s in today”. An admin sees “Employee report” and “Software spend”.
The role decides which assistant you talk to, but it does not grant access on its own. Every time an HR or admin tool runs, the backend checks the person’s current role in the database. If someone’s access is removed halfway through a conversation, their very next question reflects it.

For employees, the assistant is a faster way to read their own HR file. It cannot see anyone else’s data, and it will not answer questions about the team, such as who is absent today, because those answers are about other people.
Here is the kind of thing people ask it on an ordinary day:
The leaving-time answer is a good example of something we deliberately kept away from the AI. It sounds simple, but the real calculation is the current session, plus any earlier sessions that day, minus every break, measured against the required hours. Language models are surprisingly bad at this kind of arithmetic, and very confident while getting it wrong. So the backend does the maths and the assistant simply reads out the time.
Beyond attendance and salary, employees can check their leave balance and history, the status of their WFH and remote check-in requests, their logged work updates, notes from their meeting reviews, upcoming holidays, office timings and rules, their ID card details, and whether their offer letter has been issued.
They can also take a few actions: apply for Paid Leave or Comp Off, change or withdraw a request that is still pending, and ask to work from home. Leave is where people are least precise, so the assistant follows a few simple rules. It never adds a half day the person did not mention. If someone says “half day” without saying which half, it asks. If they ask for three separate date ranges in one message, it treats them as one request, with one confirmation and one email to HR. And Comp Off is only accepted against a non-working day on which the person actually checked in.
Once a leave is submitted, the assistant drafts a short email to HR and leaves it in the chat. The employee can edit it, or ask the assistant to make it more formal, and then press Submit to HR. Nothing is emailed until they do.
HR gets a much wider view. They can ask about anyone in the company using a first name or part of a name, and if two people match, the assistant asks which one they meant. A typical morning for our HR team now looks something like this:
The check-in question has become one of the most useful. Before, the answer was usually a guess about GPS. Now the assistant reads the actual check-in log for that day, including failed attempts and the reason each one failed.
HR can also pull the monthly attendance report, one person’s day-by-day attendance, everyone’s leave balances, who has crossed the late or early check-out allowance, the staff directory, work updates by person or project, meeting review notes, which employees still do not have an ID card or offer letter, and payroll for any month in read-only form.
On the action side, HR can approve or reject leave, WFH and remote check-in requests, one at a time or all at once. They can add holidays, declare a relaxed-timing day when everyone can come in late or leave early, add a missed attendance entry, record a monthly or quarterly meeting review, and set someone’s annual paid leave. Each one comes back as a summary first.
Some things are deliberately left out of HR’s chat. Salary runs, attendance corrections and company settings are admin-only. Adding employees, issuing documents and cancelling an approved leave still happen on the HRMS pages, where there is a proper form for each.
Admins get everything HR has, plus reporting. This is where the assistant saves the most time, because these questions used to mean exporting attendance, work logs and payroll into separate sheets and lining them up by hand. Every report works for a month, a quarter, a year or any custom date range.
A single employee report brings together attendance, hours against the requirement, overtime, late and early marks, leave and WFH taken, where the time went by project and task, how much office time was actually logged, meeting review notes, salary for the period, a comparison with the previous period and a set of warning flags. Team reports put everyone side by side. Project reports show who spent time on what. Rankings sort people by overtime, lateness, absences, attendance or how consistently they log their work.
Admins can also see software subscriptions and monthly spend, the hardware inventory with upcoming warranty expiries, and the current company settings.
Their extra actions are the sensitive ones: generating salary for a completed month, approving it, correcting an attendance record, and changing settings such as working hours, allowances or ESIC rates. These are checked twice, once when the summary is prepared and again when the admin says yes. The office location used for geofencing cannot be changed from chat at all.
Across all three roles, the assistant cannot actually change anything. It has no tool that writes to the database. What it can do is prepare an action and show a summary of exactly what will happen.
When the person replies “yes”, that reply never goes to the AI. Our backend recognises it and carries out the exact action that was shown, so the model has no chance to reinterpret the request at the last second. A summary expires after ten minutes, and replies like “ok” or “sure, go ahead” are not accepted. The assistant simply asks for a plain yes.
The confirmation that follows is written by our code, not by the AI, and it always starts with “Done”. If the message says something happened, it happened.

Most of the rules above exist because something went wrong during testing. A few examples:
People paste all sorts of things into a chat box, including Aadhaar numbers, PAN and bank details. Every message, the chat history and every reply pass through a filter in our backend that replaces ID-like numbers before anything is stored or sent to the AI. The originals never leave our server, and the person is told when something was hidden.
The filter is deliberately cautious. A 10-digit mobile number looks just like a bank account number, so it gets hidden too. We would rather hide too much than too little.
The same idea applies in the other direction. Data returned by the tools is checked before the AI sees it, and fields like Aadhaar, PAN, bank details, date of birth and passwords are removed, even if a future code change accidentally selects them.
The assistant also never decides who it is acting for. That comes from a short-lived signed token our backend creates from the person’s login, so there is no way to talk the AI into reading someone else’s records. Rate limits sit on top of everything.

The AI itself has no memory. Every chat is saved in the HRMS database, and each new message is sent along with the recent part of that conversation. People can close the tab, come back the next day or switch between chats without starting over. Chats are grouped by day, can be searched, and can be deleted by their owner.
That history is only used for context. The assistant remembers that you said the 17th was a half day, but it still checks your leave balance fresh every time you ask.
It also replies in whatever language you write in. Ask in English and it answers in English. Write “kal WFH chahiye” and it replies in Hinglish.
Nothing unusual here. Most of the important work happens in the backend we already had.
If you are thinking about something similar, here is what we would suggest based on this project:
None of this needs a cutting-edge model. It needs careful decisions about what the AI is allowed to touch.
Employees get answers in seconds instead of waiting on HR. HR clears the morning’s approvals in a few messages. Admins can get a quarter’s worth of insight on a person or a project with a single question. And because every change still needs a clear yes, people trust it enough to actually use it.
If you are planning an AI assistant for HR or any other internal system, our AI chatbot team would be happy to talk it through.