123DevOps··9 min read

How to use Copilot Studio: build your first AI agent without coding

What Microsoft Copilot Studio is, what harnesses are, how licensing works in broad terms, and a step-by-step guide to building, testing, and publishing an agent with knowledge sources, well-written instructions, and governance safeguards.

AI

Every month, HR answers the same questions about vacation time. IT support explains for the hundredth time how to reset a password. In many companies, fixing this no longer requires a development project: an analyst can build an AI agent that answers from official documents, using nothing but a browser.

That is what Microsoft Copilot Studio is for. This guide is for makers (people who build solutions without being programmers), analysts, IT teams, and the curious. One warning first: the product changes fast, so check the official documentation before making any important decision.

What Copilot Studio is

Copilot Studio is a low-code (little or no code) studio from Microsoft for building agents, workflows, and agent flows (automated flows that agents use). An agent, here, is an assistant with a defined goal: it chats, looks things up in the knowledge sources you chose, and, if you allow it, takes actions.

The address is copilotstudio.microsoft.com, and you need to sign in with a work or school account (Microsoft Entra ID); a personal account won’t work. To see where Copilot Studio fits among Microsoft’s AI products, read the guide to Microsoft AI: Copilot, Copilot Studio, and Azure.

Harnesses: the “engine” behind the agent

In 2026, Copilot Studio started organizing agents by harness. Think of the harness as the agent’s type of engine and structure: it defines how the agent reasons, which features are available, and how usage is billed.

Harness What it’s for In one sentence
Microsoft Copilot (formerly “GitHub Copilot harness”) Agents that reason and solve multi-step tasks The most “thoughtful” one
Customer Conversation Customer service over chat or voice Built for the contact center
Standard Classic agents based on topics (conversation scripts) Predictable and controlled

If you’re just starting out, don’t worry about getting it right the first time: what matters is knowing that the harness choice changes features and billing, so it’s worth aligning with your IT team before putting an agent into production.

Licensing in broad terms

Without getting into prices (which change and depend on your contract), the basics are:

  • Copilot Credits are Copilot Studio’s consumption “currency.” This unit used to be called messages. Credits can come from prepaid packs, pay-as-you-go billing through Azure, or prepurchase plans.
  • With a trial, you can build and test agents, but you cannot publish them.
  • Users with a Microsoft Copilot license (formerly Microsoft 365 Copilot; the license may still show the old name) can build agents on the Microsoft Copilot harness, and some agent usage in Copilot, Teams, and SharePoint isn’t billed for people with that license.

For your specific situation, check with your company’s licensing team and the official Copilot Studio licensing page.

Step by step: your first agent

The names below follow the official English guide; on your screen, they may appear translated.

  1. Go to copilotstudio.microsoft.com, sign in with your work account (or start a trial), and you’ll land on the Home page.
  2. The official guide for the standard harness asks you to turn off the New experience option before following the steps.
  3. In the text box, describe the agent in natural language (up to 1,024 characters). Example: “Help employees answer questions about vacation, benefits, and remote work based on the HR policies.”
  4. The Overview page opens with an AI-generated name, description, and instructions, plus suggested knowledge, tools, and triggers. Review everything: it’s a draft, not the final version.
  5. In Knowledge, select Add, choose the source, and confirm with Add to agent.
  6. Use the Test your agent pane to ask real questions and see how the agent answers.
  7. To change the greeting, open the Conversation Start topic, edit the message, and click Save.
  8. Add up to 10 Suggested prompts (sample questions) to help people who have never used the agent.
  9. Click Publish and confirm with Publish. Then, in the … menu, choose Go to demo website to see the agent on a demo page.

Animated illustration: building an agent in Copilot Studio, from the first description to publishing Animated illustration (not a real screenshot): describing the agent in natural language, clicking Create, seeing the Overview with the name and instructions filled in, adding knowledge (a PDF and a SharePoint site), testing in the “Test your agent” pane with an answer that cites its source, and publishing to Teams, Microsoft Copilot, and other channels. The real interface may use different names and positions.

How to write good instructions

Instructions are the agent’s “code of conduct.” The AI generates a draft, but you’re the one who knows the process. A good instruction makes clear the role, the tone, the sources, what to do when unsure, and what to never do:

You are the HR help assistant for Example Corp.
Audience: company employees. Tone: friendly and direct, short sentences, in English.

Sources: answer only from the HR website and the "HR Policies" folder
in SharePoint. Always cite the name of the document you used.

When you're not sure or can't find the answer in the sources: say so
clearly and tell the person to open a ticket on the HR portal. Don't guess.

Never: share salaries or other employees' data; give legal or medical
advice; promise exceptions to policies; ask for passwords or documents.

Tip: test the instruction with hard questions (“can I cash out all of my vacation days?”) and adjust the text until the behavior is consistent.

Knowledge sources and permissions

The agent can use websites, SharePoint, uploaded files, and other sources as knowledge. The more focused and up to date the source, the better the answer: a folder with current policies is worth more than an entire site full of old documents.

The question everyone should ask: who can see what? Before connecting a source, review who has access to it and who will be able to chat with the agent. Check the official documentation for how each type of source handles authentication and permissions, and test with accounts from different roles. If a document shouldn’t be read by every user of the agent, it shouldn’t be in the knowledge base.

Tools: when the agent starts acting

Answering questions is just the beginning. With tools, the agent carries out tasks:

  • Connectors: link the agent to systems such as email, spreadsheets, CRM, and ticketing tools.
  • Workflows and agent flows: automated sequences, such as “log the request and notify the manager.”
  • MCP servers (generally available): MCP is an open standard for connecting AI to tools and data; learn more in what is MCP.
  • Computer use (generally available): the agent operates websites and apps through their interface, as a person would. It’s powerful but calls for extra caution: start in a test environment with low-risk tasks.
  • Autonomous agents with triggers (in preview): the agent starts working on its own when something happens, such as an email arriving.

The more an agent can do, the more damage a mistake can cause. The article AI agents in DevOps discusses these limits with examples.

Publishing channels

Once published, the agent can be available in Microsoft Teams, in Microsoft Copilot, on a website (including the demo website), and in other channels. Pick the channel where people already work: an HR agent in Teams tends to get more use than a link buried on the intranet. If you don’t know the user side yet, see how to use Microsoft Copilot at work.

Governance and safety

A useful agent also has to be safe. The basic safeguards:

  • Least privilege: give the agent only the sources and actions it needs. No “access to everything, just in case.”
  • Test with real questions: collect genuine questions from users and use them in tests and evaluations before publishing.
  • Human approval: actions with impact (sending email, changing records, opening purchase requests) should require a person’s confirmation.
  • Monitoring: follow the usage analytics to spot unanswered questions, errors, and new topics, and update the sources.
  • Personal data and privacy laws: avoid putting personal data in the sources unless necessary, and align the project with your privacy and legal teams under privacy laws such as Brazil’s LGPD or the GDPR. This article is not legal advice.
  • Prompt injection: a document or page can contain hidden instructions that try to hijack the agent. Review your sources and see the defenses in AI application security with the OWASP LLM Top 10.

Use cases to start with

Use case Typical knowledge Risk
HR questions Vacation, benefits, and remote work policies Medium: personal data and rules that change
IT help desk Support article base and procedures Low to medium: be careful with reset actions
New employee onboarding Employee handbook, first-week schedule Low
Sales FAQ Catalog, approved commercial terms Medium: wrong promises to customers

Start with a low-risk use case and well-maintained sources, and only then move on to agents that take actions.

Checklist

  • I signed in to copilotstudio.microsoft.com with my work account
  • I aligned the harness and licensing model (Copilot Credits) with IT
  • I reviewed the generated instructions: role, tone, sources, uncertainty, and prohibitions
  • I checked who has access to each knowledge source
  • I tested in the “Test your agent” pane with real questions
  • I required human approval for actions with impact
  • I defined who monitors the analytics and updates the sources

A good agent starts small, answers with sources, and knows how to say “I don’t know” before it acts.

Get updates on new posts and stay in the loop!