Choose inline or referenced agents in a workflow

Only applies to: Microsoft Copilot harness

Workflows let you add an agent directly to a workflow step or call an agent that already exists. The choice depends on scope and reuse. If the capability belongs to a single workflow, build it inline. If multiple workflows or users need it, use a referenced agent.

Ask three questions

  1. Does more than one process need this capability? If so, use a referenced agent.
  2. Does a person need to interact with the agent directly? If so, use a referenced agent.
  3. Is the agent needed only to complete a single workflow step? If so, use an inline agent.

Choose inline or referenced agents

Aspect Inline agents Referenced agents (published agents)
Shape An action inside a workflow, through the Agents connector A published Copilot Studio agent through the Agents connector, or a Microsoft Copilot agent through the Microsoft 365 Copilot connector
Where it lives In the workflow object In its own agent object
Starts with A workflow calls it from an agent node A user starts a conversation in a channel, or a workflow calls it from an agent node
Building blocks Modern agent components: instructions, knowledge, tools, MCP servers, and the agent sandbox. Custom agents use modern or standard agent components, as the use case requires. Declarative agents in Agent Builder use knowledge, Copilot connectors, and Work IQ

Tip

Start with an inline agent. Move the capability into a published agent when it needs to be reused, maintained separately, accessed directly by users, or independently monitored or governed.

When to use an inline agent

An inline agent exists only within the workflow that contains it. It doesn't require a separate asset and can use its own instructions, knowledge, and tools to complete a task.

Choose an inline agent when:

  • The agent serves a purpose tied to a single process step.
  • Portability and reusability add no value.
  • Human input is only needed to clarify or resolve uncertainty.
  • You need to replace a prompt in a standard workflow, or extend what a prompt used to do.

An inline agent keeps its reasoning logic within the workflow step that needs it. Keeping the agent inline can make the workflow visually easier to understand, but it doesn't provide the independent lifecycle management of a referenced agent.

When to reference a published agent

Call an agent you already published from the list of agents available in the environment. For example, a conversational agent that handles compliance questions can take care of one step in the process you're automating.

Choose a referenced agent when:

  • You need to reuse the capability across multiple workflows or solutions.
  • Interaction with the agent could also be conversational.
  • The agent can benefit from multi-agent orchestration to reach its goal.
  • Specialized agents exist that meet the needs.
  • You need independent ownership, production monitoring, governance, or audit evidence.

Referencing a published agent avoids rebuilding the same capability across workflows and gives you a single place to maintain instructions, knowledge, and tools.

Check for an existing agent first

Some capabilities already exist as specialized agents, such as Analyst and Researcher. In those cases, use a Copilot node instead of recreating the capability in a custom agent.

Use a Copilot node when:

  • A specialist Copilot capability already does the job.
  • You want built-in Copilot grounding.
  • The operations are read-only.

Use an agent node when:

  • An existing Copilot Studio agent already does the job, or you want to define your own instructions, knowledge, and tools.
  • The operations read and write across systems.

Build your own agent when you need custom instructions, knowledge, tools, or orchestration that those specialized agents don't provide.