Lesson 4 of 5 Copilot Studio Agent Design

Designing Agents and Agent Flows

This lesson explains how to divide work between an agent and its deterministic agent flows.

Learning outcomes

After completing this lesson, you will be able to:

  • Describe agent flows and their billing.
  • Explain how to divide work between agents and flows.
  • Compare options for implementing an action.

What agent flows are

An agent flow is a rule-based workflow built in Copilot Studio as part of the standard harness. It executes actions in a fixed path, so the same input always produces the same output. Agent flows can be started by an agent as a tool, by a trigger such as a schedule or an event, or on demand, and they can include human-in-the-loop actions, such as approval requests or requests for information, which pause the flow until a person responds.

Agent flows use the same designer and connectors as Power Automate cloud flows, and a cloud flow can be converted to an agent flow. The conversion is one-way and changes billing: every action in an agent flow consumes Copilot Studio capacity, whereas cloud flows are licensed through Power Automate. Test runs in the designer and in the test chat do not consume capacity.

Dividing work between the agent and its flows

The design principle is to let the agent handle language and judgement and let flows handle procedure. An agent is good at understanding a varied request, asking clarifying questions and choosing what to do. A flow is good at running a sequence of system operations reliably, handling errors consistently and keeping an auditable record.

  • Use an agent flow when an operation has several steps across systems, such as creating a record, sending a notification and updating a log.
  • Use an agent flow when the business requires an approval or human input before the operation completes.
  • Use an agent flow for scheduled or event-driven processing that does not need language understanding at every step.
  • Call a prompt from inside a flow when one step needs language, such as summarizing or classifying text, while the rest stays deterministic.
  • Keep a single connector action as a tool, rather than a flow, when the operation is one simple call.

Designing flow inputs, outputs and errors

When an agent calls a flow, the flow's inputs and outputs are its interface. Inputs should be typed and described, so that generative orchestration can fill them from the conversation, and outputs should return the information the agent needs to tell the user what happened, such as an order number or an error reason. Flows should handle failures explicitly and return a meaningful status rather than failing silently, because the agent can only explain what it is told.

The following table compares the options for implementing an action, which helps decide whether a flow is warranted.

OptionBest forDeterminism
Connector action as a toolOne call to one systemHigh
Agent flowMulti-step procedures, approvals, schedulesHigh
PromptOne step that needs language generation or classificationLow to moderate
Generative orchestration over several toolsVaried requests where the order of steps differsLower
Worked example

A returns agent with an approval

A retailer wants customers to request returns through a chat agent. The agent must understand why the customer is returning the item, create a return authorization in the order system, email a shipping label, and record the reason in Dataverse. Returns above 300 dollars need approval from a supervisor before the label is sent. What should the design include?

The agent handles the conversation: it identifies the order, asks for the reason and classifies it. An agent flow, called as a tool with typed inputs for the order number, item and reason, creates the return authorization, records the reason in Dataverse and sends the label. For returns above 300 dollars, the flow includes an approval action that pauses until a supervisor responds, and it returns a status such as approved, pending or rejected so that the agent can tell the customer what will happen.

Check yourself

Do test runs of an agent flow in the designer consume Copilot Studio capacity?

Show answer

No. Test runs in the designer and test chat do not consume capacity, but every action in a production run does.

Exam Tips

Remember for the exam

  • Agent flows are deterministic, run in the standard harness and support human-in-the-loop steps.
  • Converting a cloud flow to an agent flow is one-way and changes billing.
  • Let the agent handle language and judgement and let flows handle procedure.
  • Give flows typed, described inputs and meaningful outputs and error statuses.