MSADVANCE LOGO
✕
  • Services
    • Microsoft 365 Consulting Services for Businesses
    • Migration to Microsoft 365
    • Microsoft 365 to Google Workspace Migration
    • Azure Cloud Architecture
    • Modern Workplace
    • Microsoft 365 & Azure Cybersecurity Services
    • Managed Microsoft 365 & Azure Services
    • Software License Procurement & Sales for Businesses
  • About Us
    • Success Stories
    • Microsoft Partner
    • Trust Center: Security, Privacy & Access
    • Our Methodology
  • Blog
  • Contact
  • English
    • Español
    • English
  • Services
    Microsoft Cloud services From strategy to operations Choose the service area that fits your project.
    Explore all services Talk to a specialist
    • 01 / STRATEGY Microsoft 365 Consulting Assessments, architecture and governance to guide your next steps. Assessment · Governance · Roadmap
    • 02 / MIGRATION Microsoft 365 Migrations Move email, files and tenants with planned cutover and validation. Tenant to tenant · Google · Exchange
    • 03 / WORKPLACE Modern Workplace Collaboration, devices and adoption across Microsoft 365, with governance built in. Teams · SharePoint · Intune
    • 04 / SECURITY Microsoft Cybersecurity Protect identities, data and endpoints with Microsoft security and Zero Trust. Entra · Defender · Purview
    • 05 / CLOUD Microsoft Azure Design landing zones, networks, resilience and cloud cost controls. Landing Zones · Networking · FinOps
    • 06 / OPERATIONS Managed Services Administration, support and continuous improvement for Microsoft 365 and Azure. Microsoft 365 · Azure · Security
    • 07 / LICENSING Microsoft Licensing Select, procure and optimize licenses based on usage and cost. Microsoft 365 · Azure · Copilot

    Microsoft Partner · 25+ Microsoft certifications · 51,000+ users · 500+ organizations

    Success stories Credentials Methodology Trust Center
    • Microsoft 365 Consulting Services for Businesses
    • Migration to Microsoft 365
    • Microsoft 365 to Google Workspace Migration
    • Azure Cloud Architecture
    • Modern Workplace
    • Microsoft 365 & Azure Cybersecurity Services
    • Managed Microsoft 365 & Azure Services
    • Software License Procurement & Sales for Businesses
  • About Us
    • Success Stories
    • Microsoft Partner
    • Trust Center: Security, Privacy & Access
    • Our Methodology
  • Blog
  • Contact
  • English
    • Español
    • English
Published by MSAdvance on September 10, 2025
Categories
  • Modern Workplace Microsoft 365
  • Copilot Studio
Tags
  • Microsoft Teams
  • Power Automate
  • Power Platform
Copilot Studio cómo crear agentes paso a paso (guía 2025)
Here’s your article translated to English and fully adapted for SEO, links, terminology, and code—without reducing the content or structure.“`html

Copilot Studio: how to build agents step by step (2025 guide)

This guide explains how to build an agent in Copilot Studio from start to finish: environment prep, use-case design, how to choose knowledge sources, build agent actions (integrations), write high-quality prompts, test and evaluate, and publish to Microsoft Teams, web (Direct Line), and WhatsApp. It includes security (DLP/GDPR) best practices, ALM, key metrics, checklists, and official links.

Updated: September 10, 2025

Want to launch your first agent with confidence?

At MSAdvance we design the agent, connect data and systems, configure channels (Teams/web/WhatsApp), and set up metrics and governance.

Talk to an expert Copilot Studio service

Table of contents

  1. What is Copilot Studio?
  2. Quick gallery (UI & architecture ideas)
  3. Requirements and environment preparation
  4. Agent design: objectives, intents, and KPIs
  5. Knowledge sources: SharePoint, web, and internal data
  6. Agent actions: integrations and automations
  7. Prompts and behaviour: style guide and control
  8. Step-by-step build in Copilot Studio
  9. Testing, evaluation, and quality
  10. Publishing to Teams, web, and WhatsApp
  11. Conversational UX, accessibility, and multilingual
  12. Security, GDPR, and governance (DLP)
  13. ALM: versions, environments, and deployments
  14. Metrics, costs, and optimisation
  15. Go-Live checklist
  16. FAQ
  17. Official links
  18. Conclusion and next steps

Official Microsoft video on YouTube.

What is Copilot Studio?

Copilot Studio is Microsoft’s platform to create conversational agents (copilots) with a visual interface, enrich them with enterprise knowledge, and let them execute actions against your systems. You can publish to Microsoft Teams, web (iframe/Direct Line), and external channels like WhatsApp via Azure Communication Services.

Its power rests on three pillars: Knowledge (grounding over your sources), Actions (integrations with APIs/Power Automate/Graph), and Orchestration (prompts/rules that define behaviour). Result: more accurate answers and task automation in a single conversational flow.

Quick gallery (UI & architecture ideas)

Managing knowledge sources in Copilot Studio
Knowledge panel to share and manage sources (SharePoint, URLs, etc.). Source: Microsoft Learn.
Agent list with quick access to edit and publish
“My agents” view to create, edit, and manage agents. Source: Microsoft Learn.

Requirements and environment preparation

  • Capacity: enable Copilot Studio (packs or PAYG) and, for consumption-based usage, link Azure billing.
  • Access: assign the Copilot Studio User License to makers; grant the Environment Maker role in the environment.
  • Environments: prepare Dev / Test / Prod with separate consumption quotas.
  • DLP: define data loss prevention policies before connecting external data or actions.
  • Service identities: register an app in Microsoft Entra ID (formerly Azure AD) for API calls and store secrets in Key Vault.
  • Telemetry: choose which dashboards to use (built-in analytics and/or export to Power BI) and alert thresholds.

Work inside Solutions from day one to simplify ALM (migrations and versioning).

Agent design: objectives, intents, and KPIs

  1. Define objectives (max 2–3): e.g., “resolve HR FAQs” and “create L1 tickets”.
  2. Intent map: list questions/actions by priority (MoSCoW: Must/Should/Could/Won’t).
  3. Knowledge scope: what classic FAQs cover, what goes to grounding, and what needs actions.
  4. Constraints: technical/business limits (what it can read/write, by role or group).
  5. KPIs: resolution rate, ticket deflection, CSAT, cost/conversation, and P50/P95 latency.

Agent PRD template (summary): purpose → users → intents → sources → actions → policies (privacy/security) → metrics → milestones.

Knowledge sources: SharePoint, web, and internal data

Your accuracy depends on source quality and curation. Combine:

  • Classic FAQs: write “official” answers for repetitive topics. Cheap, precise, and stable.
  • Grounding (RAG): use SharePoint/OneDrive libraries and maintained, versioned corporate URLs.
  • Live data: integrate APIs (ERP/CRM/ITSM) via actions to fetch or update information in real time.
Quick source selection
TypeWhen to useStrengthWatch out for…
Classic FAQStable policies/processesPrecision, low costNeeds periodic curation
GroundingLiving documentationBroad coverageOrigin quality/permissions
ActionsReal-time dataCloses casesSecurity and validations

Include metadata (owner, date, version, category) and a review workflow to avoid outdated answers.

Agent actions: integrations and automations

With actions the agent does useful work (create tickets, check statuses, book resources). Typical sources:

  • Power Automate (standard/premium connectors and Logic Apps).
  • Microsoft Graph (calendars, users, files, Teams).
  • Your APIs (OpenAPI/Swagger, Azure Functions).
  • Dataverse (custom tables/actions).

For write operations, require confirmation (“Do you confirm?”), validate inputs, and log traceability (who, what, when).

Example: “Order status” action (OpenAPI)

{
  "openapi": "3.0.1",
  "info": { "title": "Orders API", "version": "1.0.0" },
  "paths": {
    "/orders/{id}": {
      "get": {
        "summary": "Get order status",
        "parameters": [{ "name": "id", "in": "path", "required": true, "schema": { "type": "string" } }],
        "responses": { "200": { "description": "OK" } },
        "security": [{ "oauth2": ["orders.read"] }]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "oauth2": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://login.microsoftonline.com/{tenant}/oauth2/v2.0/token",
            "scopes": { "orders.read": "Read orders" }
          }
        }
      }
    }
  }
}

Import the OpenAPI document into Copilot Studio or invoke it from a Power Automate flow.

Prompts and behaviour: style guide and control

  • System instructions: role, tone, language, limits (“if there’s not enough evidence, ask for clarification or hand off”).
  • Format: respond with clear headings, actionable steps, links to sources, and avoid long paragraphs.
  • Sources: when using grounding, add a link to the page/document backing the answer.
  • Security: never fabricate personal data; never expose secrets; handle PII according to GDPR.

Starter prompt template (copy/paste)

You act as a support agent for {product}.
- Respond in clear English.
- Use only the allowed sources (SharePoint/URLs).
- If there is no evidence, ask for more context or offer a human handoff.
- For actions, ask for confirmation before executing.
Format: short title, numbered steps, source links.

Step-by-step build in Copilot Studio

  1. Create the agent (Dev environment) → name it, default language, and welcome message.
  2. Add knowledge → “Knowledge” → add SharePoint/OneDrive/URLs; create 15–30 classic FAQs for critical topics.
  3. Define actions → “Actions” → connect Power Automate/Graph/APIs; add environment variables (URLs/IDs).
  4. Configure prompts → set system instructions, limits, and style; require source citations.
  5. Test in the Test canvas → happy paths, edge cases, and noisy inputs; review traces and per-event consumption.
  6. Telemetry → enable native dashboards and, if applicable, export to Log Analytics/Power BI.
  7. Prepare publishing → access permissions, privacy policy, announcements, and launch FAQ.

Testing, evaluation, and quality

  • Test dataset: 30–50 real questions per intent (include typos and jargon); define an “expected answer”.
  • Classic conversion: move repetitive responses into classic FAQ (faster and cheaper).
  • Security: test prompt injection, PII, and high-risk operations; validate fallback to human.
  • Continuous evaluation: review transcripts weekly; refactor low-confidence answers.
  • UAT: 10–20 end users for 1–2 weeks; target ≥ 60% first-contact resolution.

Publishing to Teams, web, and WhatsApp

Teams/Microsoft 365: ideal channel for internal assistants. Web: quick demo or integration via Direct Line (auth/CORS control). WhatsApp: via Azure Communication Services (verified number and templates).

  • Roles & permissions: limit access by groups; define agent owners and reviewers.
  • Telemetry: ensure dashboards measure usage, satisfaction, and errors.
  • Gradual rollout: UAT first, then production with feature flags and controlled announcement.
Web channel security and Direct Line configuration in Copilot Studio
Web channel security options and Direct Line configuration. Source: Microsoft Learn.
Direct Line secrets to embed an agent in applications
Using Direct Line secrets to embed the agent in web/mobile apps. Source: Microsoft Learn.

Embed snippet (Web Chat + Direct Line)

<div id="webchat"></div>
<script src="https://cdn.botframework.com/botframework-webchat/latest/webchat.js"></script>
<script>
  const dl = window.WebChat.createDirectLine({ token: "YOUR_DIRECT_LINE_TOKEN" });
  window.WebChat.renderWebChat({ directLine: dl, locale: "en-US" }, document.getElementById("webchat"));
</script>

Issue the Direct Line token from your backend (secret exchange) and apply appropriate CORS/CSRF.

Conversational UX, accessibility, and multilingual

  • Onboarding: one value sentence + 3 clickable example questions.
  • Accessibility: ARIA landmarks, AA+ contrast, keyboard navigation.
  • States: “thinking…” indicator and streaming to reduce perceived latency.
  • Language: detect language or set locale; duplicate FAQs in target languages.
  • Fallback: offer a human handoff (ticket/chat) when confidence is low or PII is involved.

Security, GDPR, and governance (DLP)

  • DLP: separate business vs. non-business connectors; block high-risk sources.
  • Privacy: notice about AI usage, retention, and legal basis; channel for data subject rights.
  • Access: least privilege for makers; audit publications/changes.
  • Content: version sources, remove obsolete items, and require an owner per document.
  • Sensitive actions: role-based limits, approvals, and rate limits.

ALM: versions, environments, and deployments

  1. Work in Solutions (Dev): agent, flows, connections, and environment variables.
  2. Use connection references and environment variables for URLs, IDs, and secrets.
  3. Export/import as managed to Test → run UAT → promote to Prod with approval.
  4. Document a changelog (prompts, actions, sources) and create a rollback plan.

Metrics, costs, and optimisation

Key success metrics
KPIInitial targetHow to improve
First-contact resolution≥ 60%More classic FAQs and actions that close cases
Ticket deflection≥ 30%Automate frequent tasks (resets, statuses)
CSAT≥ 4/5Clear answers + human handoff
Cost/conversation↓ month over monthConvert generative to classic where viable
P50/P95 latency≤ 3s / 8sStreaming, caching, and leaner grounding

Cost optimisation

  • Use classic FAQs for repetition and reserve grounding/actions for high-value tasks.
  • Tighten prompts for more concise answers and reuse approved snippets (answer bank).
  • Curate sources: remove obsolete docs and improve metadata to reduce hallucinations.
  • Combine base capacity + PAYG to absorb peaks smoothly.

Go-Live checklist

Pre-production checklist
AreaItemStatus
KnowledgeCritical FAQs reviewed and versioned□
ActionsValidations, confirmations, and auditing enabled□
SecurityDLP applied, least privilege, secrets in Key Vault□
PrivacyAI notice, retention, GDPR legal basis□
ALMManaged deployment and rollback plan□
TelemetryKPI dashboard and alerts configured□
SupportFeedback channel and human escalation□

FAQ

What do I need to get started?

A Power Platform environment, Copilot Studio capacity (pack or PAYG), maker licenses, DLP policies, and a simple agent PRD.

How do I add knowledge?

In “Knowledge”, add SharePoint/OneDrive/URLs and create classic FAQs for critical topics. Version content and assign an owner per source.

How do I connect business systems?

With actions that call Power Automate flows, Microsoft Graph, or your APIs (OpenAPI/Swagger). Use app identities and least privilege.

Can I publish outside Microsoft 365?

Yes: web via iframe/Direct Line (secure token handling and CORS) and WhatsApp via Azure Communication Services (verified number and templates).

How do I manage changes without breaking production?

Work in Solutions (Dev → Test → Prod), use environment variables, and deploy as managed with approval.

Official links

  • What is Copilot Studio?
  • Knowledge & Actions overview
  • Publish to web & channel security (Direct Line)
  • ALM in Power Platform
  • Power Platform DLP policies

Conclusion and next steps

Building an agent in Copilot Studio is an iterative process: design the use case, feed knowledge, connect actions, test with real users, and publish with security and metrics. With a base of classic FAQs, curated grounding, and well-designed actions, your copilot can solve most queries and automate tasks at a predictable cost.

Want to accelerate your first rollout?

We help with design, data, integrations, security, ALM, and operations.

Contact MSAdvance Copilot Studio services

“`

Share

Related posts

August 2, 2026

How to Organize SharePoint When Your Company Has Grown Fast


Read more
July 19, 2026

Shared Mailboxes in Microsoft 365: Best Practices and Licensing


Read more
June 14, 2026

What to Do When an Employee Leaves with Important OneDrive Files


Read more
May 31, 2026

Microsoft 365 for Remote Workers: Security, Devices and Documents


Read more
MSAdvance
Microsoft 365 · Azure · Cybersecurity

Specialist consulting for Microsoft 365, Azure and cybersecurity.

MSAdvance provides Microsoft 365 consulting, migration, Modern Workplace, cybersecurity, Azure, managed services and Microsoft licensing. We work alongside the client team with a clearly defined scope, technical documentation and control throughout each phase of the project.

Microsoft Partner 25+ Microsoft certifications Established 2010 International projects
Project enquiries

Would you like us to review a project or prepare a proposal?

Send us the current environment, planned scope and target date. We will review the information and come back with the next steps and, where appropriate, a proposal.

Contact MSAdvance View success stories
info@msadvance.comInternational remote delivery
01 Services
  • All services
  • Microsoft 365 Consulting
  • Microsoft 365 Migrations
  • Modern Workplace
  • Microsoft Cybersecurity
  • Microsoft Azure
  • Managed Services
  • Microsoft Licensing
02 MSAdvance
  • About Us
  • Microsoft Partner & Certifications
  • Success Stories
  • Our Methodology
  • Trust Center
  • Blog & Technical Guides
03 Contact
General info@msadvance.com
Projects sales@msadvance.com
Support support@msadvance.com
Delivery International remote delivery
Remote delivery for organizations across Europe, the Americas and other international markets. Contact form

© 2026 MSAdvance. All rights reserved.

Legal NoticePrivacyCookies
ESEN
MSAdvance
Gestionar consentimiento
Para ofrecer las mejores experiencias, utilizamos tecnologías como las cookies para almacenar y/o acceder a la información del dispositivo. El consentimiento de estas tecnologías nos permitirá procesar datos como el comportamiento de navegación o las identificaciones únicas en este sitio. No consentir o retirar el consentimiento, puede afectar negativamente a ciertas características y funciones.
Funcional Always active
El almacenamiento o acceso técnico es estrictamente necesario para el propósito legítimo de permitir el uso de un servicio específico explícitamente solicitado por el abonado o usuario, o con el único propósito de llevar a cabo la transmisión de una comunicación a través de una red de comunicaciones electrónicas.
Preferencias
El almacenamiento o acceso técnico es necesario para la finalidad legítima de almacenar preferencias no solicitadas por el abonado o usuario.
Estadísticas
El almacenamiento o acceso técnico que es utilizado exclusivamente con fines estadísticos. El almacenamiento o acceso técnico que se utiliza exclusivamente con fines estadísticos anónimos. Sin un requerimiento, el cumplimiento voluntario por parte de tu proveedor de servicios de Internet, o los registros adicionales de un tercero, la información almacenada o recuperada sólo para este propósito no se puede utilizar para identificarte.
Marketing
El almacenamiento o acceso técnico es necesario para crear perfiles de usuario para enviar publicidad, o para rastrear al usuario en una web o en varias web con fines de marketing similares.
  • Manage options
  • Manage services
  • Manage {vendor_count} vendors
  • Read more about these purposes
Ver preferencias
  • {title}
  • {title}
  • {title}