{"slug": "teaching-the-agent-to-stop-guessing", "title": "Teaching the Agent to Stop Guessing", "summary": "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.", "body_md": "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.\n\nOne 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.\n\nSo 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.\n\nLast 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.\n\nBut 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.\n\nThat 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.\n\nThere is a lot of jargon around this, RAG, retrieval, vector search. You can ignore all of it for now. Here is the plain version.\n\nGrounding 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.\n\nThink 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.\n\nThat binder is what we are about to give the agent.\n\nLet me show you the problem first, because it is the whole reason grounding matters.\n\nHarbor'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.\n\nHere is what the ungrounded agent said when a customer asked:\n\n**Customer:** Hi, one of the racking units arrived bent. What's your return policy?\n\n**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. 😊\n\nEvery 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.\n\nIn Copilot Studio, the binder lives under the Knowledge tab of your agent. Here is the flow for Harbor.\n\nThat 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.\n\nFor 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-uploading anything.\n\nAdding 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.\n\nSo find this setting. Go to **Settings**, then **Generative AI**, and look for **Allow ungrounded responses**.\n\nTurn it off.\n\nWith 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.\n\nThere 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.\n\nNow the file says Ready, ungrounded responses are off, and we ask the exact same thing.\n\n**Customer:** Hi, one of the racking units arrived bent. What's your return policy?\n\n**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. 😊\n\nSame 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.\n\nThis 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.\n\nGrounding is simple to switch on and has a handful of sharp edges. The ones worth knowing before you ship:\n\nHarbor 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.\n\nBut 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.\n\nNext 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.\n\nSee you next time. 😊\n\n**Sources**", "url": "https://wpnews.pro/news/teaching-the-agent-to-stop-guessing", "canonical_source": "https://dev.to/consolatacleah/teaching-the-agent-to-stop-guessing-4b3e", "published_at": "2026-11-23 21:03:58+00:00", "updated_at": "2026-11-23 21:13:15.348049+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "ai-safety", "large-language-models"], "entities": ["Copilot Studio", "Microsoft", "Claude", "Bell Canada", "Harbor Supply Co.", "Harbor Help", "SharePoint"], "also_reported_by": [], "takeaway": "Grounding a Copilot Studio agent in uploaded policy documents stops it from inventing answers, but only once the knowledge source's indexing status reads Ready — testing earlier makes the agent behave as if the file is absent.", "recommendation": {"advice": "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.", "playbook": "rag-retrieval", "playbook_url": "https://wpnews.pro/playbooks/rag-retrieval"}, "alternates": {"html": "https://wpnews.pro/news/teaching-the-agent-to-stop-guessing", "markdown": "https://wpnews.pro/news/teaching-the-agent-to-stop-guessing.md", "text": "https://wpnews.pro/news/teaching-the-agent-to-stop-guessing.txt", "jsonld": "https://wpnews.pro/news/teaching-the-agent-to-stop-guessing.jsonld"}}