Lakshya

Microsoft 365 & Copilot in the Enterprise · Chapter 9 of 12

Copilot Studio — building your first agent

What you actually construct, what it costs per interaction, and the billing rule that decides where you publish it.

5 min read1 diagramAll 12 chapters

Copilot Studio is the tool for building your own assistants — called agents — without writing much code. An agent is scoped to a job: answering HR policy questions, checking an order's status, triaging an IT request.

THE FOUR PARTS OF AN AGENT — EVERY AGENT YOU EVER BUILD HAS THESE INSTRUCTIONSWhat it is for, inplain English.e.g. “You answer HRpolicy questions.”KNOWLEDGEWhat it may read.Nothing else.e.g. one SharePointsite, one Dataverse table.ACTIONSWhat it may DO.Where the risk lives.e.g. raise a ticket,look up a leave balance.CHANNELSWhere people meet it.Also a billing boundary.e.g. Teams (often free),a website (always billed). Then you choose how it DECIDES which of those to use: CLASSIC ORCHESTRATION A phrase matches one topic. Actions fire only when that topic explicitly calls them. Predictable. GENERATIVE ORCHESTRATION A model reads your DESCRIPTIONS and composes a multi-step plan at runtime. Flexible, less predictable. Microsoft’s own three-layer rule, and it is a good one: Irreversible actions → hard-coded. Consequential ones → AI drafts, a human approves. Low-risk questions → full autonomy.
Every agent has these four parts, whatever it does. Once you can name them, the product's documentation stops being a maze.

Topics, and how matching works

A topic is one conversation flow, built on a canvas of nodes — send a message, ask a question, branch on a condition, call a tool. It starts with trigger phrases: example things a user might say. Microsoft suggests five to ten.

Matching is fuzzy, not literal. Trigger on ‘check store hours’ and ‘see store opening times’ will also fire. You are giving examples for a model to generalise from, not writing a pattern to match — which is why five varied phrases beat twenty similar ones. Each topic also has a raw YAML view, which is how you copy one between agents.

Knowledge sources, and their limits

SourceHow it worksGenerative modeClassic mode
Public websiteBing search, restricted to domains you name25 sites4 URLs
Uploaded documentsStored in DataverseAllStorage limit
SharePointGraph search against a site URL25 URLs4 per node
DataverseRetrieval over your tablesUnlimited2 × 15 tables
Copilot connectorsVia the Microsoft Search indexUnlimited2 per agent

Dataverse, which appears twice there, is the Power Platform's own database — a managed relational store that agents, apps and flows all share. If you have not met Power Platform, it is Microsoft's low-code suite; Copilot Studio is one application inside it, sharing its environments, security policies and admin tools with Power Apps and Power Automate.

Actions — where an agent stops answering and starts doing

Actions come from connectors (about 1,500 pre-built ones), Power Automate flows, or your own REST APIs — ordinary web endpoints you host. This is the half where an agent can cause harm, which is why Microsoft's three-layer rule in the diagram is worth following literally: irreversible actions hard-coded, consequential ones behind a human checkpoint, autonomy reserved for questions.

What it costs, per interaction

Copilot Studio bills consumption in Copilot Credits — called ‘messages’ until they were renamed on 1 September 2025, with no change to rates. $200 a month buys 25,000 credits, or you can pay as you go at $0.01 each.

What happensCreditsFree for a Copilot-licensed user internally?
Classic answer1Yes
Generative answer2Yes, with a condition
Agent action — a trigger, a tool call, a topic handover5Yes, except computer-using agents
Tenant graph grounding10Yes
Agent flow actions13 per 100 actionsOnly via one specific trigger
Content processing8 per pageYes
Voice — classic / generative / premium10 / 35 / 75 per minuteIncluded

The billing rule that should decide your architecture.

Interactions are free for Microsoft 365 Copilot-licensed users on internal channels — Teams, SharePoint, Microsoft 365 Copilot.

External channels always bill. A public website, WhatsApp, Slack — every interaction costs credits regardless of who is asking.

Microsoft's own worked example: an agent used by 50 licensed and 100 unlicensed people costs only for the 100. The 50 are free.

So the same agent can be nearly free or entirely metered depending only on where you publish it. Decide that before you build, not after.

One caution: overage enforcement bites at 125% of prepaid capacity, at which point custom agents are disabled until you top up. Not throttled — disabled.

The Copilot Studio maker licence itself is free; only runtime consumption costs. A trial licence can build and test but cannot publish. There is also an unquantified ‘fair usage limit’ on the included internal usage — Microsoft confirms it exists and publishes no number.

Building one, concretely

  • 1. Create the agent and write its instructions in plain English — what it is for and, more usefully, what it must refuse.
  • 2. Add knowledge. Start with one SharePoint site. A narrow agent that is right beats a broad one that is plausible.
  • 3. Test in the built-in pane. Watch which topic fires, not just whether the answer reads well.
  • 4. Add actions only once the answers are right.
  • 5. Choose orchestration — classic while you are learning what it does, generative once you trust the scope.
  • 6. Publish to a channel. Re-read the billing rule above first.

Check yourself

What are the four parts of an agent?Instructions (what it is for), knowledge (what it may read), actions (what it may do), and channels (where people meet it).
How does trigger-phrase matching work?Fuzzily — you give examples for a model to generalise from, so five varied phrases beat twenty similar ones.
What is Dataverse?The Power Platform's managed relational database, shared by agents, apps and flows. Copilot Studio is one application inside Power Platform.
What is Microsoft's three-layer rule?Irreversible actions hard-coded; consequential ones with AI drafting and a human approving; full autonomy only for low-risk questions.
What is the key billing rule?Free for Copilot-licensed users on internal channels (Teams, SharePoint, M365 Copilot). External channels — websites, WhatsApp, Slack — always bill.
What happens at 125% of capacity?Custom agents are disabled, not throttled, until you top up.
What does the maker licence cost?Nothing. Only runtime consumption costs. But a trial licence cannot publish.
← Oversharing — the thing that actually stops deploymentsExtending with code, and choosing your platform →