cd /news/ai-agents/teaching-the-agent-to-stop-guessing · home › topics › ai-agents › article
[ARTICLE · art-174999] src=dev.to ↗ pub= topic=ai-agents verified=true sentiment=· neutral

Teaching the Agent to Stop Guessing

A developer demonstrates grounding a Copilot Studio chat agent, Harbor Help, in Harbor Supply Co.'s actual policy documents after the ungrounded agent confidently invented a 30-day full-refund return window instead of the real 14-day replacement-only policy. The walkthrough adds a policy PDF under the agent's Knowledge tab and stresses waiting for indexing status to reach Ready before testing, since the agent ignores sources still processing. The post also flags a Bell Canada breach involving an "agentic" attacker and urges least-privilege access for agents.

recommendation

Upload authoritative policy documents to your agent's Knowledge tab and wait for indexing status to show Ready before testing, so answers come from retrieved facts rather than confident guesses.

more in playbook: Retrieval and RAG
by read6 min views5 publishedNov 23, 2026

Can we take a second for the week we just had? Microsoft 365 went down for the better part of a day, with Outlook, Teams, SharePoint, and Copilot all dark across the world, and a few days later Bell Canada said an "agentic" attacker had made off with enterprise customer data. Our tools going quiet, and AI agents turning up on the wrong side of a breach, all in one stretch.

One quick note, so we stay accurate. The two are not the same story. Microsoft said the outage was a network change gone wrong, not a cyberattack. The Bell breach was real, and the "agentic" part is the bit worth sitting with, because attackers are now pointing AI at the job of breaking in.

So no, there is no single magic version to be on. But it is a fair moment to check your own house. What can your agents actually reach? Do they have more access than they need? Would your team catch a convincing phishing message today? Least privilege is boring, and it is exactly the thing that saves you. And speaking of keeping an agent on a short leash, that is really what this week's post is about.

Last time we gave Harbor Supply Co. a working chat agent, the Harbor Help agent, running on Claude inside Copilot Studio. It could hold a conversation, follow the instructions we wrote, and stay in character as a helpful support rep.

But it had one quiet problem. It only knew what we typed into its instructions. Ask it anything outside that, like the real returns window or whether a specific item ships to Mombasa, and it did not stop and say "I don't know." It guessed. And it guessed with total confidence.

That is the gap we close today. We are going to ground the agent in Harbor's actual policies, so its answers come from facts instead of vibes.

There is a lot of jargon around this, RAG, retrieval, vector search. You can ignore all of it for now. Here is the plain version.

Grounding means the agent looks something up before it answers, instead of answering from memory. You hand it a set of documents. When a question comes in, it searches those documents, finds the relevant bits, and writes its answer from what it found.

Think about a new hire on their first day. If you ask them the returns policy and they have memorised nothing, they will either make something up to sound helpful, or they will panic. Now hand that same new hire the policy binder. Same question, but now they flip to the right page and read you the real answer. The person did not get smarter. They just got a source to check.

That binder is what we are about to give the agent.

Let me show you the problem first, because it is the whole reason grounding matters. Harbor's real returns policy is specific. Damaged warehouse racking can be returned within 14 days, and the resolution is a replacement, not a cash refund. That is it. No 30-day window, no money back.

Here is what the ungrounded agent said when a customer asked:

Customer: Hi, one of the racking units arrived bent. What's your return policy?

Harbor Help agent: No problem at all! You can return any item within 30 days for a full refund. Just keep the original packaging and we'll process your money back once it arrives. 😊

Every sentence there sounds great. It is also wrong. Wrong window, wrong resolution, wrong promise. If a customer acts on that, Harbor now has an angry buyer expecting a refund the policy never offered. The friendly tone makes it worse, not better, because nobody reads that reply and thinks to double-check it.

In Copilot Studio, the binder lives under the Knowledge tab of your agent. Here is the flow for Harbor.

That last step matters more than it looks. The source has to finish indexing before the agent can use it. Watch for the status to turn to Ready. If you test too early, while it still says it is processing, the agent will act like the file is not there, because as far as it is concerned, it is not.

For a single policy PDF, a file upload is the simplest path. If Harbor kept its policies in a SharePoint library that updates regularly, pointing the agent at SharePoint instead would mean it always reads the current version without you re-up anything. Adding a source is only half the job. By default, the agent can still fall back on its own guesses when the source does not have an answer. That is fine for a casual demo and dangerous for anything a customer sees.

So find this setting. Go to Settings, then Generative AI, and look for Allow ungrounded responses.

Turn it off.

With it off, the agent is only allowed to answer from the sources you gave it. If a question is not covered, it says so instead of inventing an answer. That is the line between a demo and something you would actually put in front of a customer. A grounded agent that admits "I don't have that" is far more useful than a confident one that makes things up, because you can trust the answers it does give.

There is a related toggle nearby for web search, sometimes shown as grounding with Bing. Leave that off for Harbor. We want the agent answering from Harbor's own policy, not from whatever it finds on the open web.

Now the file says Ready, ungrounded responses are off, and we ask the exact same thing.

Customer: Hi, one of the racking units arrived bent. What's your return policy?

Harbor Help agent: Sorry to hear it arrived damaged. For damaged racking, you can return it within 14 days, and we'll send you a replacement unit rather than a refund. I can start that replacement for you now if you'd like. 😊

Same friendly tone. Completely different outcome. The window is right, the resolution is right, and nothing was invented. The agent is reading from Harbor's binder now, not from its imagination.

This is the moment the whole series has been building toward. An agent that chats is a toy. An agent that chats and tells the truth about your business is a tool.

Grounding is simple to switch on and has a handful of sharp edges. The ones worth knowing before you ship:

Harbor Help can now answer policy questions from Harbor's actual policy, and it stops guessing when it hits something it does not know. That is a real, shippable improvement, and it took one file and one switch.

But it still cannot do anything. It can tell a customer the returns window. It cannot look up whether that customer's specific order is eligible, or start the replacement it just offered. Right now, "I can start that for you" is a polite fib.

Next time we fix that. We give the agent tools, so it can take a real action, like pulling up a live order and checking its status, instead of only talking about it. That is where a support agent stops being a smart FAQ and starts being an actual assistant.

See you next time. 😊

Sources

── more in #ai-agents 4 stories · sorted by recency
── more on @copilot studio 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/teaching-the-agent-t…] indexed:0 read:6min 2026-11-23 · —