Most Copilot agents I see built in demos look impressive for about five minutes. Then someone asks a real question, gets a vague non-answer or something pulled from the wrong document, and the whole thing gets quietly shelved. The problem usually isn’t the platform. Copilot Studio is somewhat decent. The problem is that the agent was never set up to succeed in the first place… and the maker had no clue their decisions made it that way.
Building one that actually works comes down to three things:
- instructions that are specific enough to control behavior,
- a knowledge source that’s scoped tightly enough to be trustworthy,
- and a couple of settings that are wrong by default.
Get those three things right and you end up with an agent that HR teams will actually rely on. Get them wrong and you’ve got an expensive magic 8-ball… or worse, a failed demo in front of a LOT of people 🤣.
This post walks through how I build an HR policy agent in Copilot Studio from scratch. I’ll cover the mechanics, but more importantly I’ll explain the decisions behind them, because that’s the part most tutorials skip.
Why HR Is a Great First Use Case
If you’re trying to make the case for Copilot agents inside your organization, HR is one of the best places to start. The problem is well-defined, the pain is real, and the ROI is easy to explain to leadership.
HR teams spend a ton of time answering the same questions over and over – vacation accrual, PTO carryover, what counts as a qualifying life event for benefits enrollment, how the new hire onboarding process works. These aren’t hard questions by any stretch of the imagination. They’re just frequent ones. Every one of those questions takes up valuable time for an HR professional who could (and should) be doing something that actually requires their judgment and expertise.
That’s a fair statement to make, right?
An agent that can answer those questions instantly, accurately, and at 2am on a Sunday is a genuinely useful thing. It’s not a toy demo. And because it’s pulling from your official policy documents rather than someone’s memory or interpretation… the answers are consistent in a way that a shared inbox or a “just ask so-and-so” culture never really is. Plus, you don’t risk annoying HR with questions they already answered 20 times that day.
Getting Started: The Part You Can Move Through Quickly
The initial setup in Copilot Studio is straightforward. Create a blank agent, give it a name, write a short description that explains what it’s for. The description matters more than it seems – it’s what shows up in the Teams app store and the Copilot agent catalog, so employees need to be able to tell at a glance whether this is the right agent for their question.
![]()
One thing worth doing that people often skip: upload a custom icon. It just needs to be a PNG under 30KB, ideally your company logo or something in a square format. It’s a small thing, but an agent with a real icon feels like part of the organization’s toolkit. An agent with a default robot icon feels like a test someone forgot to clean up.
Pick your model. If you have options available and you’re not sure where to start, just accept the default. You can experiment with models later – getting the rest of the configuration right matters a lot more than model selection at this stage.
Instructions: Don’t Treat This Like a Form Field
Here’s where most people rush, and where most agents fall apart.
Copilot Studio gives you 8,000 characters for your agent’s instructions. That’s not a description box – it’s the place where you actually define how this thing behaves. If M365 Copilot already seems to “know how to act,” it’s because Microsoft wrote a very detailed set of instructions for it. When you’re building a custom agent, that job is yours.
![]()
Your instructions need to cover a few things clearly. First, define the role – not just what the agent does, but what it is. Tell it it’s an internal policy assistant for employees of your organization. Tell it its job is to explain what policies say, who they apply to, and what someone should do next. Second, give it knowledge guardrails. Be explicit: answer based on the provided knowledge source, don’t speculate beyond what the documents say, and if something isn’t covered, say so. Third, tell it how to format responses. Markdown formatting – bullet points, headings, bold text – makes answers readable. Plain text walls don’t.
The language you use in instructions matters. Intentional, specific phrasing produces predictable behavior. Vague phrasing produces variable behavior, and variable behavior is what erodes trust in the agent. Spend real time here. It’s worth it.
Here’s the basic version I used in the video above. If you want the hardened production version, it’s in my finished version in The Agent Collection.
# Role
You are an internal HR Policy Assistant for employees of the organization.
Your role is to:
- Answer employee questions about HR policies and procedures
- Explain policies clearly and neutrally
- Help employees understand what the policy says, who it applies to, and what to do next
You are not an HR decision-maker and do not provide legal advice.
# Knowledge Usage
- Use only the provided HR policy grounding sources as your source of truth.
- Do not speculate, guess, or infer policies that are not explicitly documented.
- If multiple documents mention the same topic, reconcile them carefully and note exceptions.
- If a policy is unclear, missing, or contradictory, say so explicitly.
If the grounding content does not clearly answer the question:
- State that the information is not available in the current policies
- Recommend contacting HR for clarification
# Response Formatting
Use clear, structured Markdown in every response.
When answering a policy question, follow this structure when applicable:
## ✅ Short Answer
A brief, plain-English summary (1–3 sentences).
## 📄 Policy Details
Bullet points or short paragraphs explaining:
- What the policy says
- Any conditions, limits, or exceptions
- Who the policy applies to
🔒 Sponsored by Afi — Smarter Cloud Backup & Recovery
Cloud platforms like Microsoft 365, Google Workspace, Azure, AWS, and Kubernetes are powerful — but they don’t always protect your data the way you think. Accidental deletions, ransomware, and compliance gaps can still cause serious disruptions.
That’s why I’ve partnered with Afi, a modern backup and recovery solution built for today’s multi-cloud environments. Afi offers full-fidelity restores, encrypted full-text search, version history, and even self-service recovery — so users can get their data back without waiting on IT.
Its AI-powered ransomware detection automatically triggers backups before damage is done, giving you peace of mind and keeping your business running smoothly.
Over 10,000 organizations trust Afi to protect their cloud data.
Learn more at afi.ai.