Connecting Knowledge Sources Safely
Welcome to this lesson. Here, you will learn how to connect your AI agent to external and internal knowledge sources using Microsoft Copilot Studio (Microsoft’s low-code platform for designing, grounding, testing, and governing custom AI agents with restricted knowledge sources and action boundaries.). We will explore how to ground your agent in factual data, such as public regulatory websites or internal SharePoint documents. More importantly, we will focus on doing this safely. In regulated UK financial services, connecting data to an AI system requires strict adherence to security and compliance standards. You must protect confidential and personal data, enforce least-privilege (The security principle of granting users, apps, and AI agents access only to the minimum data records and actions required to perform their defined task.) permissions, ensure robust logging, and maintain clear human ownership.
Refresher Core Mental Model: Connecting Knowledge Sources Safely 1 min
In Copilot Studio and AI Agents for Non-Developers: Building Safe Agents in Regulated Financial Services, Connecting Knowledge Sources Safely focuses on turning The Importance of Grounding in Financial Services into a repeatable, governed practice. Rather than treating tools as black-box oracles, anchor every step to three questions: What approved data goes in? What structured draft comes out? And who verifies the result against primary evidence before action is taken?
The Importance of Grounding in Financial Services
When you build an agent in Copilot Studio, it relies on a large language model (Probabilistic neural networks trained on vast text corpora that generate responses by predicting likely token sequences rather than consulting a verified fact database.) to understand user questions and generate responses. However, out of the box, these models do not know your firm policies or the latest regulatory updates. To make your agent useful and accurate, you must ground it in specific knowledge sources. Microsoft refers to this capability as generative answers.

Grounding directs the agent to answer from the documents or websites you provide. This significantly reduces, but does not remove, the risk of hallucination (Fluent, authoritative-sounding claims or metrics generated by an AI system that are ungrounded in the source evidence or factually false.), which is a scenario where the AI invents incorrect information. To keep answers within your sources, also review the agent’s generative AI settings: switch off Use information from the web (which searches all public websites indexed by Bing) and Allow ungrounded responses (which lets the agent answer from the model’s general knowledge). Even then, Microsoft notes that the model can still blend in general knowledge, so testing remains essential. Under the Financial Conduct Authority Consumer Duty, financial firms must ensure that they provide clear, fair, and not misleading information. Grounding your agent in approved, verified knowledge sources is a technical control that helps you meet this regulatory obligation.
Adding Public Regulatory Websites
One of the simplest ways to ground your agent is by pointing it to a public website. For example, a regulatory horizon scanning agent could be connected to the public Financial Conduct Authority website. In Copilot Studio, you can add public URLs directly into the Knowledge section of your agent. Copilot Studio does not copy or index the site itself: it uses Bing search limited to the websites you list, so answers depend on what Bing has indexed from those pages.
While public websites do not contain your confidential corporate data, you must still be cautious. Ensure that the public site is authoritative and maintained. Never paste confidential business logic, customer details, or personal data into the agent instructions or prompts when setting up these connections. UK GDPR (Data protection legislation requiring lawful processing, data minimization, purpose limitation, and strict security controls over personal data.) requires that personal data is processed securely, and mixing public knowledge sources with hardcoded private data in the agent instructions creates a severe data leakage risk.
Connecting Internal Knowledge Sources Safely
Most valuable financial services agents require access to internal documents, such as synthetic customer scenarios, internal policies, or product guides. Microsoft Copilot Studio allows you to connect your agent to SharePoint or OneDrive as a knowledge source. When you do this, the agent uses Microsoft Graph search to find and retrieve documents on behalf of the person asking the question.
It is critical to understand how Microsoft Copilot and Copilot Studio handle permissions. SharePoint knowledge requires the agent’s users to sign in with their Microsoft Entra ID, and the agent respects the existing permissions of the person asking the question. If a user does not have permission to view a document in SharePoint, the agent will not be able to read or summarise that document for them.
However, you cannot rely solely on the system permissions as a safety net. Before adding any SharePoint site as a knowledge source, you must verify the document classification. You must ensure the site does not accidentally contain over-permissioned confidential data or unredacted personal data. Enforcing least-privilege permissions means that users and agents should only have access to the exact data they need to perform their role. If an internal SharePoint site is open to the whole company by mistake, connecting an agent to it makes that data highly discoverable, increasing the risk of internal data leakage.
Comparing Knowledge Source Types
| Source Type | Example Use Case | Data Classification | Permission Model |
|---|---|---|---|
| Public Website | Searching the public FCA Handbook for regulatory updates. | Public data only. Must contain no personal data. | Available to anyone who interacts with the published agent. |
| SharePoint Site | Querying internal synthetic risk assessment templates. | Internal or Confidential. Requires verified classification. | Relies on Microsoft Entra ID permissions. Least privilege must be strictly enforced. |
| Uploaded Document | Providing a specific product guide for a fixed staff training campaign. | Internal. Must not contain live customer data. | File is stored within Dataverse and accessible to all users of the agent. |
Plain-text version
Source Type | Example Use Case | Data Classification | Permission Model Public Website | Searching the public FCA Handbook for regulatory updates. | Public data only. Must contain no personal data. | Available to anyone who interacts with the published agent. SharePoint Site | Querying internal synthetic risk assessment templates. | Internal or Confidential. Requires verified classification. | Relies on Microsoft Entra ID permissions. Least privilege must be strictly enforced. Uploaded Document | Providing a specific product guide for a fixed staff training campaign. | Internal. Must not contain live customer data. | File is stored within Dataverse and accessible to all users of the agent.
Core Principles for Safe Data Retrieval
Connecting knowledge sources is not a single configuration task. It requires ongoing governance and adherence to stringent operational resilience standards.
- Maintain named human ownership: Under the Senior Managers and Certification Regime, there must be clear accountability for business activities. Every AI agent, and the knowledge base it connects to, must have a named human owner. This person is responsible for ensuring the knowledge source remains accurate, relevant, and compliant over time.
- Ensure robust logging and audit: Regulated firms have strict record-keeping requirements. You must ensure that interactions with the agent, including which documents it retrieves to formulate answers, are logged. Copilot Studio provides analytics and transcript recording features. These audit trails are vital for investigating issues, such as a staff member receiving incorrect internal guidance, and for proving compliance to regulators.
- Verify document classification: Always check the Microsoft Purview sensitivity labels or your internal classification tags on any SharePoint site before connecting it to an agent. Do not use sites that host live, unredacted customer data for general employee agents.
Mandating Testing Before Release
You must mandate testing before release for any agent connected to a knowledge source. Connecting a SharePoint site is technically simple, but ensuring the agent retrieves the right information safely is complex. Silent failure is a significant risk. This occurs when the agent confidently provides a wrong answer based on outdated documents, or fails to find the right document but hallucinates an answer instead.
During the testing phase, you must use a structured evaluation approach. Ask the agent questions that should trigger specific answers from your connected knowledge sources. Equally important, ask the agent questions it should not be able to answer, to verify that it gracefully declines rather than guessing. You must also test with different user accounts to ensure that least-privilege permissions are working, verifying that users cannot access restricted documents through the agent that they cannot access directly.
Hackathon Exercise: Grounding Your Agent Safely
In this exercise, you will connect your Copilot Studio agent to an external and an internal knowledge source using safe, synthetic data. Remember, you must never use real customer or confidential data in these training exercises.
- Step 1: Open your agent in Microsoft Copilot Studio and navigate to the Knowledge section.
- Step 2: Select the option to add a knowledge source and choose a public website. Enter a public regulatory URL, such as the public UK legislation website or the FCA Handbook. Save the knowledge source (Copilot Studio searches public websites through Bing, so the agent can only find pages that Bing has indexed).
- Step 3: Test the public connection. Use the test pane to ask a question about a regulation covered on that public site. Verify that the agent answers correctly and provides a citation link to the public URL.
- Step 4: Now, add an internal knowledge source. Select SharePoint. Provide the URL to a dedicated test SharePoint site created by your IT administration team. This site must only contain synthetic, mock documents, such as a synthetic operational resilience policy.
- Step 5: Verify the data classification of this SharePoint site to confirm it is marked as Public or General within your synthetic environment, containing absolutely no personal data.
- Step 6: Test the internal connection. Ask the agent a question that requires reading the synthetic operational resilience policy. Check the citation to ensure the agent is retrieving the answer exclusively from the designated SharePoint document.
- Step 7: Document your testing evidence and record yourself as the named human owner of this agent configuration. Ensure your test logs are saved to satisfy audit and record-keeping requirements.

Go deeper Architectural & Governance Trade-Offs in Connecting Knowledge Sources Safely 1 min · optional
When scaling Adding Public Regulatory Websites across a team or regulated workflow, the primary bottleneck is rarely generation speed—it is verification overhead and drift. High-performing teams track two operational metrics alongside throughput: Edit-to-Approval Time (how many minutes a human reviewer spends correcting outputs) and Source-Traceability Rate (whether 100% of material numbers and claims link back to an audited record). If edit time exceeds manual drafting baseline across two cycles, tighten your input schema and negative constraints before expanding scope.
In-House Corporate AI Strategy & Governance Clinics
Bespoke executive clinics led by Dr. Stylianos Kampakis for leadership teams, boards, and division directors.
