Standard harness overview

Applies to: Standard harness

The standard harness is the Copilot Studio runtime built around topics, triggers, and nodes. You control the path within explicitly authored topics, while generative orchestration can dynamically select and chain topics, tools, knowledge, and agents. The trade you make for that control is adaptability. Unexpected requests require fallback handling.

The component model

Agents powered by the standard harness are built from a set of components that define how the agent behaves, retrieves information, interacts with systems, and manages state.

Instructions

Instructions shape the agent's behavior. They provide guidance on how the agent should respond, use knowledge and tools, interact with users, and handle common situations.

Use instructions for behavior that should apply across the entire agent experience. Use topics when you need to control a specific conversation path.

Learn more:

Topics

Topics enable custom authored experiences that let you define and control every aspect of the conversation.

  • Triggers determine when a topic activates: The agent chooses, a message is received, knowledge is requested, or a trigger phrase matches.
  • Nodes are the building blocks inside the topic, from asking a question, sending a message, calling a tool, setting a variable, adding a condition, or using generative answers.

Use topics for predictable conversation paths. Generative orchestration can decide which topic to use, but you define the steps within it.

Knowledge

Copilot Studio uses a retrieval-augmented generation (RAG) pattern for search and summarization of content. Supported knowledge sources include public websites and Bing Custom Search, SharePoint and OneDrive, Dataverse, Microsoft Fabric, file uploads, GitHub, open web search, and Azure services such as Azure AI Search and Azure SQL.

Consider these factors for each knowledge source:

  • SharePoint requires Microsoft Entra ID authentication for delegated calls. Results include only content the signed-in user has permission to read.
  • Uploaded files are stored in Dataverse file storage and indexed in Dataverse Search.
  • Dataverse tables can be configured with synonyms and a glossary to improve search. Natural language queries are transformed into analytical queries over structured data.
  • Azure AI Search connections don't use delegated authentication, so results aren't filtered by the signed-in user's permissions.
  • Public websites must be indexed by Bing.

Retrieval runs query rewriting, content retrieval, summarization with citation generation, and grounding validation, with moderation at each step.

Tools

Tools extend an agent's capabilities by connecting to services, running prompts or flows, or interacting with application interfaces. With generative orchestration, the agent can select tools, determine their inputs, and use their outputs to respond to requests.

Tool types include:

  • Connectors: Connect to services through prebuilt connectors or custom connectors that can wrap any public API.
  • REST APIs: Add an API to an individual agent by providing an OpenAPI description.
  • Prompts: Run reusable prompts with a choice of models and support for code interpreter.
  • Agent flows: Run predictable automations with predefined steps.
  • Model Context Protocol (MCP): Access an open standard that connects line-of-business services with their tools and context.
  • Computer use: Allow the agent to operate apps and websites through the UI when no API or connector is available. Consider performance, resilience to interface changes, and authentication requirements.

Learn more:

Variables

Variables are where the agent stores conversation state.

  • Types include custom variables created in topics, system variables supplied by the platform, environment variables provided by the solution, and formula variables computed with Power Fx. Environment variables support moving an agent between development, test, and production environments.
  • Scope determines where and how long variables are available: within a topic, across topics during a conversation (global), or across conversations (cross-session).

Variables are the standard harness's answer to memory. The Microsoft Copilot harness has a dedicated memory component that works differently.

Agents

Agents can be child agents or connected agents.

  • Child agents are orchestrated by your agent. They have their own tools, knowledge, and instructions on how to use them. They belong to the application and solution, and you deploy them with your agent as part of the application lifecycle.
  • Connected agents are standalone agents that connect agent to agent. They might be another Copilot Studio agent, a Fabric Data agent, a Microsoft Foundry agent, or agents built with the Microsoft 365 Agents SDK. You manage them independently from your solution, and they have their own authentication and settings.

The decision rule is ownership, not size or complexity. If you own it and it ships with your agent, it's a child agent. If somebody else owns, deploys, and secures it, it's a connected agent.

As a guideline, consider splitting work across connected agents when a topic has 30 to 40 tools.

Choose child agent or connected agent

Use more child agents when:

  • A single developer or a small, cohesive team manages the entire agent solution.
  • You want to logically group tools, instructions, or knowledge into clearly defined child agents within a larger agent.
  • You don't need separate configuration settings.
  • You don't intend to publish these agents separately or make them available independently to end users.

Use connected agents when:

  • Multiple teams or developers manage different agents independently but in the same environment.
  • You need to publish and maintain agents separately, making them available directly to end users on independent channels.
  • Agents must have their own dedicated settings, including different channel configurations and models.
  • You need independent application lifecycle management (ALM) processes for each agent.

Learn more: Multi-agent orchestration patterns and best practices

Apply child agent best practices

The following best practices apply when authoring instructions for parent and subagents in a multi-agent setup.

  • Single response principle: Ensure only one agent talks to the user per turn. In a multi-agent setup, you need to define who is responsible to deliver the final response. Child agents can interact with users or return a payload to the parent.
  • Subagent instructions must declare their role: Always tell subagents they're subagents. Subagents don't inherently know they're part of an orchestration. Without explicit guidance, they behave as standalone agents and send messages directly to the user.
  • Parent instructions must define the orchestration pattern: Tell the parent agent how to orchestrate. Don't just say "use child agents." The parent needs explicit instructions on the pattern: invoke agents, wait for results, combine, then respond.

Child agents have access to the entire scope of the parent agent and conversation context from other child agents.

Learn more: Design subagents that avoid duplicate messages

Apply connected agent best practices

The following best practices apply when you author instructions for a connected agent in a multi-agent setup.

  • Use agent inputs and outputs: Use input and output if you need to share data beyond conversation context and user prompt between agents.
  • Make sure connected agents use "End all topics": If you're connected to another Copilot Studio agent, ensure that it uses End all topics to avoid generating responses in a loop.
  • Prevent double summarization: Tell the parent agent to "not summarize responses, repeat the response verbatim" from the connected agent (to avoid double summarization).

The main agent has access to the full conversation. You choose whether to pass conversation context to the connected agent.

Learn more: Design best practices to avoid duplicate messages

Channels

Channels make your agent available across multiple interfaces, including:

  • Websites, SharePoint, Microsoft Teams, Microsoft Copilot, and Power Pages.
  • Phone, SMS, and email.
  • Messaging channels such as WhatsApp, Facebook, Slack, Telegram, LINE, and Apple Messages for Business.

You can access more channels through Azure Bot Service, the Microsoft 365 Agents SDK, the Agents Client SDK, and Dynamics 365.

Analytics and evaluations

Use analytics and evaluations to measure and improve your agent's performance and response quality.

  • Analytics provide end-to-end telemetry on conversations, audit, and application performance. They show what users ask, where conversations succeed or fail, and how the agent performs.
  • Evaluations test agent quality and baseline performance against test sets. They help you identify areas for improvement with data rather than guesswork.