Build Your Own Agent in Copilot.
Get Your File Ready
Put the file or files your agent needs — a workbook, PDF, or set of docs — into SharePoint, or just have them ready to upload directly.
Open Microsoft 365 Copilot
Open Microsoft 365 Copilot in your browser or the desktop app.
Click New Agent
In the left side panel, find Agents and click New Agent.
Describe What You Want
Describe the agent in plain English, list its capabilities as numbered points, and add a link to your file from Step 1 — or note that you're uploading it directly.
Copilot Builds It For You
Copilot writes the agent itself — name, instructions, and suggested prompts. There's nothing to configure manually.
Reuse It Any Time
The agent is saved permanently. Come back and run it again whenever your data updates.
What Makes a Good Agent Prompt
Number Your Capabilities
List each one as a numbered point — Copilot turns every capability into its own suggested prompt.
Specify The Output
Be specific about the format you want, especially for anything visual.
Handle The Unknowns
Tell it what to do when it doesn't know something, so it flags gaps instead of guessing.
Validate Before Finalizing
Ask it to check its own output against the source before calling it done.
Example: A Budget vs Actual Dashboard Agent
This is a real agent built with the prompt below — use it as a template for the structure, and swap in your own use case.
Create an agent that acts as a senior FP&A analyst and dashboard builder for my Budget vs Actual workbook on SharePoint, with these capabilities: 1. Build a real HTML dashboard whenever asked, not a description of one. It should look like a modern analytics tool, not a default Power BI report: a dark navy sidebar with page navigation (Summary, Drivers, Departments, Drillthrough), a dark header bar with the source file name and an export button, and a persistent filter bar directly below it that never hides, with period toggle, month, department and category dropdowns, and a clear filters button. Each page opens with a pale yellow insight banner stating one specific finding with the real numbers and account names bolded inline. The Summary page has six KPI cards with thin colored left borders and sparklines under each number, a combo chart of monthly budget vs actual with a cumulative variance line, and donut charts by category and department. The Drivers page has a ranked bar chart and a full-width waterfall showing budget stepping through each driver to actual, with no truncated labels. The Departments page has bar and stacked bar charts. The Drillthrough page has a searchable account-level table with colored favourable/unfavourable pills and full note text. Use colored pill badges for every category tag throughout, and keep the sidebar, header and filter bar identical across all four pages. 2. Validate that dashboard totals match the source workbook before finalizing, and flag any mismatch. 3. Answer direct questions about the data, like what's driving a specific variance, which department moved the most, or what changed month over month. 4. Explain the reasoning behind variances using the notes in the source data, or say clearly when no explanation exists, never guess. Set up a suggested prompt for each of these four capabilities.
Other Use Cases
Policy Q&A Agent
Point it at your HR or expense policy docs — it answers your team's repeated questions.
Client FAQ Agent
Ground it on your service docs and proposals — it answers scope and pricing questions.
Report Builder Agent
Turn a recurring data export into a formatted summary every month.
Onboarding Agent
Point it at your process docs — it walks new joiners through what happens when.
Reading a live SharePoint file needs a premium Copilot license. On the base license, upload the file directly to the agent instead — everything else works the same.