What happens when a backend engineer who moved to Lisbon four months ago asks the company's HR bot, late on a Sunday, whether his holiday subsidy will arrive in June or be spread across his monthly salary? If the bot guesses, he plans a trip around money that may not come.
If it says "please contact HR" to every question, he stops using it after the third try. Somewhere between those two outcomes is a bot people trust, and most of the work of getting there happens in the system prompt.
Internal HR bots look easier than customer support bots. The users are colleagues, the topics are known, the documents exist. In practice they are harder, because employees act on the answers with their own money and their own legal status.
The uncertainty most HR teams start with is not whether the model can answer, it plainly can, but where it should stop. This guide works through that question for a typical international tech company in Portugal, with 150 to 500 staff and a good share of people who relocated.
Why an internal HR bot is harder than it looks
Start with the terms, because teams often use them loosely and the prompt needs them precise.
Scope. The list of topics the bot answers on its own, written as a closed list. Anything outside it is handed over. A scope of "HR questions" is not a scope.
Grounding. The rule that every answer must come from a supplied source, such as the employee handbook, the leave policy or the relocation guide, and must say which one. A grounded bot can be wrong only when its sources are wrong.
Escalation. The way the bot hands a question to a person: which person or queue, with what context, and what the employee is told about timing.
Personal case. A question whose correct answer depends on the individual's own data or situation, such as their contract, tax residency or residence permit. These are where generic answers do the most harm.
With those four terms, the uncertainty becomes concrete. An HR bot in Portugal will get three kinds of questions. Policy questions have one answer for everyone in a group: how many days of annual leave a full time employee gets (22 working days minimum under the Portuguese Labour Code, often more by company policy), whether the office is open on 13 June in Lisbon, how to submit an expense.
Process questions ask how to do something: update a bank account, register a dependant, request a work certificate. Personal cases involve the employee's own situation: whether they qualify for a tax incentive, what happens to their residence permit if they change role, whether their subsidies are paid in twelfths.
The first two are safe to automate if grounded. The third is not, and the system prompt must recognise it even when the employee phrases it as a policy question. "Do relocated employees get the holiday subsidy in June?" sounds like policy, but in a company where some contracts pay it monthly in twelfths and others pay it in one lump, it is a personal case.
Five things the prompt must settle
The system prompt for an HR helpdesk bot has to settle five things. Each one replaces a vague line most first drafts contain.
| Decision | Weak line | Strong line |
|---|---|---|
| 1. Scope | "Answer employee HR questions." | "Answer only on: leave, holidays calendar, expenses, benefits enrolment, onboarding steps, office logistics. Hand over everything else." |
| 2. Sources | "Use company policies." | "Answer only from the documents provided. Name the document and section. If the answer is not there, say so." |
| 3. Personal cases | "Be careful with sensitive topics." | "If the answer depends on the employee's contract, tax status, immigration status or pay, do not answer. Explain why and hand over." |
| 4. Escalation | "Tell them to contact HR." | "Create a ticket to the HR queue for the topic, summarise the question in one line, tell the employee a person replies within 2 working days." |
| 5. Tone | "Be friendly and helpful." | "Plain, short, in the employee's language. No reassurance about outcomes you cannot see." |
Scope comes first because it controls everything else. Write it as a list of 6 to 10 topics and test each one. A common error is including "payroll" in scope because the payroll calendar is a policy, then discovering the bot answers questions about individual deductions. Split it: "payroll calendar" in, "your payslip" out.
The sources line needs an instruction for conflict. Handbooks contradict themselves, especially after a policy change. Tell the bot to prefer the most recent document by date and to mention the conflict in its reply, so HR finds out.
The personal cases line protects both sides. Immigration questions are the clearest example. Relocated staff will ask about their residence permit, and the agency responsible, AIMA since it replaced the old border service, has its own rules and timelines. A bot that improvises an answer here can cost someone weeks. The prompt should name immigration, tax residency and individual pay as hard handover topics, and give the bot one sentence to explain why, so the handover does not feel like a dead end.
To know whether the five decisions are working, give the prompt a number. A simple trust score for a test set:
trust score = (correct answers + correct handovers - 3 x confident wrong answers) / total questions
A confident wrong answer counts three times because one wrong answer about pay or leave does more damage to trust than three unnecessary handovers. A score of 0.85 or higher on a realistic test set is a reasonable launch threshold for an internal pilot.
Testing the prompt on 60 real employee questions
The formula only means something with real questions. Here is an illustrative test run for a 280 person software company with offices in Lisbon and Porto, where about 40 percent of staff relocated from other countries.
The HR team pulled 60 questions from the last 6 months of HR inbox email, removed names and grouped them: 26 policy questions, 18 process questions and 16 personal cases. They ran the first draft prompt, which used the weak lines from the table.
Results of draft one: 22 policy answers correct, 2 wrong, 2 unnecessary handovers. 15 process answers correct, 3 handed over unnecessarily. Of the 16 personal cases, the bot correctly handed over only 7 and answered 9 itself, 5 of them confidently wrong, including a reply telling a Porto employee that all subsidies are paid in June and December. The remaining 4 were vague enough to count as neither right nor wrong, which is its own warning sign.
Score: correct answers 22 plus 15, which is 37; correct handovers 7; confident wrong answers 2 plus 5, which is 7. So (37 plus 7 minus 21) divided by 60 equals 23 divided by 60, about 0.38. Far below launch level, even though the bot answered 37 of 60 questions correctly and looked impressive in a demo.
Draft two used the strong lines and added the personal case list. Policy: 24 correct, 0 wrong, 2 handovers. Process: 16 correct, 2 handovers. Personal cases: 15 handed over correctly, 1 answered wrongly. Score: (40 plus 15 minus 3) divided by 60 equals 52 divided by 60, about 0.87.
How the test set is built matters as much as the score. Use questions employees actually sent, with their original wording, typos and mixed languages included, because a set written by HR in tidy policy language flatters the bot. Keep the proportions close to reality: if a quarter of your inbox is about relocation and residence permits, a quarter of the test set should be too.
Write the expected outcome for each question before running anything, as either the correct answer with its source or "hand over", and have a second person from HR check those expectations. Rerun the full set after every prompt or document change; 60 questions take about an hour to score by hand, which is cheap compared with one wrong answer about pay reaching 280 people.
Two lessons came out of the test. Most of the improvement came from the personal case rule, not from better wording elsewhere. And the 4 unnecessary handovers in draft two all traced back to one missing document, the expenses policy for the Porto office, which HR had never written down. Fixing the source fixed the bot, which is a pattern worth expecting: an HR bot test is also an audit of your documentation.
Questions HR teams ask about helpdesk bot prompts
Should the HR bot know who is asking? Only at the level of groups, such as country, contract type or office, passed in from the login. That lets it pick the right policy without seeing salaries or personal records. Answers about an individual's own pay or leave balance should come from the HR system itself, not from the model.
How often should the system prompt be reviewed? Review it every time a policy it references changes and in any case once a quarter. Annual changes such as the new meal allowance limits or the holiday calendar for the next year are the most common cause of a correct bot turning wrong in January.
Can employees ask in Portuguese and English? Yes, and the prompt should say to answer in the language of the question. Keep the policy documents in their original language and let the bot quote the original phrase in brackets, because translated legal terms such as subsídio de férias lose precision.
Who should own the prompt, HR or IT? HR owns what the bot may say and to whom it escalates; IT owns the integration, logging and access. A named HR owner who signs off each change avoids the common situation where an engineer quietly edits a policy line to fix a test.
Over the next couple of years, HR bots are moving from answering questions to reading live data, such as leave balances and ticket status, through connections to the HR system, and the EU AI Act puts AI used for decisions about workers under closer scrutiny.
Both trends push in the same direction: the system prompt becomes less about wording and more about boundaries, and the teams that wrote clear scope and handover rules for a simple question bot will find the next step much easier than those who tuned tone.