How to Build Copilot Agents in Microsoft 365
Published Updated
Build Copilot agents in Microsoft 365 by giving each one a job, adding the sources it needs and testing its answers under the same permissions your staff have. Agent Builder is enough for a policy assistant that reads approved SharePoint files. Use Copilot Studio when you need to author an external action or add a workflow.
What Copilot Agents Are
A Copilot agent is a version of Microsoft 365 Copilot configured for one job. Its instructions define how it responds. Its knowledge supplies material for its answers, and actions let it do things such as creating a request in another system.
Microsoft’s prebuilt agents come with a job already defined. Researcher produces reports from sources such as work files and the web. Analyst examines data in files such as spreadsheets. A user-built declarative agent uses Copilot’s model and your own instructions. A developer can build a custom engine agent with its own model or code that controls each step.
Microsoft 365 Copilot (Premium) includes use of the declarative agents your organisation makes available to you. Users on Copilot Chat (Basic) or Microsoft 365 Copilot (Basic) can use agents based on instructions or public websites without metered usage. For those Basic users, agents that use shared tenant data such as SharePoint files require usage billing, which Microsoft meters in Copilot Credits. Microsoft’s licensing guidance distinguishes the two cases.
Choose Where to Build Your Agent
Start in Agent Builder when the job is to answer questions from approved knowledge. Move to Copilot Studio to author a connector action or add a workflow. Choose code when you need to select the model or control how it coordinates work across multiple systems.
| Builder | Who builds it | Connections and rollout |
|---|---|---|
| Agent Builder in Microsoft 365 Copilot | A team or content owner with access to Copilot | Reads SharePoint and other supported sources, including Copilot connectors the tenant enables. Share it in Microsoft 365 with a team or through the organisation’s agent catalogue. |
| Copilot Studio | A maker working in a Power Platform environment | Adds connectors and actions for tasks such as filing a request. Use environment controls to manage staged releases and publish to supported channels such as Teams. |
| Microsoft 365 Agents Toolkit | Developers working in Visual Studio or Visual Studio Code | Can package a custom engine agent for Microsoft 365. Your team builds its connections and controls its model, hosting and deployment. |
See the Copilot Studio guide for its authoring and deployment options.
Before You Start
Check the maker’s licence and the pilot users’ access before you build. In the Microsoft 365 admin centre, confirm the pilot is allowed under “Agents > Settings > User access”. Check “Agents > Settings > Sharing” for the rules on tenant-wide sharing. Agent creation is part of Agent Builder when users are eligible and agents are enabled.
Pick the SharePoint site, folder or files the agent will read. Test that a pilot user can open the policy and that a user outside the allowed group cannot. SharePoint references respect the user’s existing file permissions and sensitivity labels. Files uploaded directly into the agent become embedded knowledge, so review what everyone with access to the agent could learn from them.
Write down three to five real questions with the expected file and answer for each. For a hypothetical leave policy assistant, ask how to request leave, who approves it and which rules apply to a change of dates. Add a question about a situation the policy does not cover. Name an owner to approve knowledge changes and review the agent after launch.
Build a Copilot Agent Step by Step
In Microsoft 365 Copilot, create a private agent that answers staff questions from an approved policy folder. Use the Agent Builder instructions if the tabs move in your tenant.
For step 3, paste and adapt this policy assistant example in “Configure > Instructions”.
Answer questions about leave using the policy files in [approved policy folder].
State the rule in plain language and cite the file and section it comes from.
Ask which type of leave the employee means if the answer depends on it.
If the files do not answer the question, say so and refer the employee to [policy owner].
- Open “New agent” in Microsoft 365 Copilot. Agent Builder opens with “Describe” and “Configure”. If the option is missing on desktop, check the maker’s access and licence.
- In “Describe”, tell Copilot the agent’s job in one sentence. For example, ask it to answer staff questions from the leave policies. Check that the generated name and description identify that job.
- In “Configure > Instructions”, replace any instructions you do not want the agent to follow. Paste and adapt the policy assistant example above.
- Add your SharePoint folder or files in “Knowledge” under “Configure”. Confirm the intended sources appear and any “Preparing” status clears before you test. Turn on “Only use specified sources” to prioritise them for lookups. The setting still allows the agent to use general knowledge for other prompts.
- Under “Capabilities”, enable only the options the job needs. For a policy assistant, leave document and image generation off. Check the switches in “Configure” because the description can enable capabilities while the builder generates the draft.
- Ask the prepared questions in “Try it”. For each question the policy covers, open the citation and confirm it points to the expected file and supports the answer. The question outside the policy must return the fallback.
Select “Create” after the agent passes the checks.
If the policy assistant must also submit leave requests, use “Copy to Copilot Studio” from the agent’s menu where available. The copy is a separate agent. Configure its action and check the connection identity and what it can write. Set up supported connections again after copying.
If the original uses a scoped Copilot connector, choose a supported source with the same access limits. Retest the original questions and check the action with a test record.
Test, Share and Govern Agents
A new Agent Builder agent is private to the creator. Use “Share” to give pilot users or a group “Can chat” access. Give “Can edit” access to individual co-owners who will help maintain it. Retest as a pilot user because the creator can have different access to the source documents.
The “Org-wide sharing for chat access” switch makes the agent available across the tenant when your sharing policy permits it. Submitting the agent to the organisation’s catalogue is a separate route and requires admin approval. In the Microsoft 365 admin centre, use “Agents > All agents” to inspect the registry. For catalogue submissions, check the “Requests” tab and review the owner, data sources and tools before approving publication.
To stop access, select the agent in the registry and use “Block”. If you are retiring an agent, notify its users and use “Delete agent” after reviewing what depends on it. Ask the owner to rerun the prepared questions after policy or permission changes and on a regular review cycle.
Open “Reports > Usage > Microsoft Copilot > Agents” to see which agents have active users. Use pilot feedback to capture the actual questions that fail, then reproduce them with the same access level. Copilot Studio’s “Monitor” can help trace failed sessions where your organisation allows transcript collection.
Troubleshooting Agents That Give Wrong or Empty Answers
Start with the user’s source access and the file the agent cites. Those checks help you decide whether to fix access, wait for indexing or change the instructions.
| Symptom | Check | Fix |
|---|---|---|
| No answer for one user | Ask that user to open the expected SharePoint file directly. | If access fails and the user is entitled to the material, have the file owner grant access to the right group. Retest as that user. |
| Stale answer | Open the citation and compare the policy text with the current file. Search SharePoint for a phrase unique to the updated version. | If search has yet to pick up the change, wait for indexing and rerun the question. If the agent cites a superseded file, remove that file from the knowledge scope. |
| Wrong answer despite the right source | Read the cited passage and check the agent’s instructions for conflicting rules. | Keep one instruction for the disputed case. Rerun the question and the closest case that takes a different branch. |
Use the same account to ask the question in the agent and in regular Copilot with the expected file supplied. If the answer is absent from the file itself, fill the knowledge gap. If regular Copilot finds it, check whether the agent can retrieve that file. If the agent cites it but draws a different conclusion, narrow the instruction that governs the answer.
Microsoft’s Agent Builder knowledge limits include up to 100 individually selected SharePoint files and 20 files uploaded from a device per agent. An embedded PDF can be up to 512 MB. Split unrelated policy areas between agents or replace superseded files before adding more. Move to Copilot Studio to author an action or use its broader connector support. Use a custom build when the job requires a different model or workflow controls you need to implement in code.
When an Agent Needs Your Operational Systems
SharePoint files can explain how equipment maintenance is scheduled. The current status of a particular job lives in the asset system. The same distinction applies to a process document and a live record in an enterprise resource planning (ERP), customer relationship management (CRM) or case system.
A synced Copilot connector makes external records searchable from a copy in Microsoft’s index. When the answer needs the current record, use a supported federated connector or a Copilot Studio action that reads from the system directly. Some federated connectors can also change records with the user’s approval when the connector provides that action.
When a workflow needs custom rules or permissions, build a custom engine agent that calls the system’s application programming interface (API). Check what each user is authorised to read or change before the agent acts.
Embeddings builds and runs agents that work with the software staff already use. In Discover, it maps the records, permissions and decisions the agent needs. In Build, staff test a working version on real records with the required access controls.
Deploy connects the agent to the live systems. In Operate, Embeddings monitors usage and retests answers after changes. See its AI agent development service for this kind of work.
Related reading
Microsoft Copilot Studio Explained for IT Teams
Copilot Studio lets your team build agents for Microsoft 365 and your website with little code. See what it connects to, how use is metered and its limits.
What is Microsoft 365 Copilot? A Rollout Guide
Thinking of switching on Copilot across Word, Excel, Outlook and Teams? See what Microsoft 365 Copilot reads, where it stops and what to prepare first.
How to Build an AI Agent for Your Organisation
Create an AI agent that does real work: pick one task, connect tools and data, add guardrails and human approval, test it, then run it with monitoring.
AI Agent Development and Orchestration
Is your task too varied for a fixed workflow? We build AI agents that plan, use your systems and hand off to people, with orchestration and guardrails.
embeddings
Embeddings is an Australian AI consultancy. We design, build and run AI systems inside the software, documents and data organisations already use, from offices in Perth and Melbourne.
About Embeddings