Lesson 2 of 3 Agent Types

Designing Task Agents

This lesson explains how to design agents that act on systems at a user's request.

Learning outcomes

After completing this lesson, you will be able to:

  • Describe the characteristics of task agents.
  • Identify design elements for tools and identity.
  • Explain how agent flows support task agents.

Characteristics

A task agent goes beyond answering: it books, submits, updates and creates. A user might ask an employee agent to book two days of leave next week or ask a customer agent to change my delivery address, and the agent collects the details it needs, calls the relevant tools and confirms the outcome. Task agents are user-initiated: they act only in response to a request, within a conversation the user can see.

In Copilot Studio, the tools of a task agent can be Power Platform connectors, custom connectors, agent flows, REST APIs, MCP servers, prompts and, where no API exists, computer use. Under generative orchestration, the agent selects tools from their descriptions and fills their inputs from the conversation, asking the user for any missing input.

Design elements

Designing a task agent means designing its tools as carefully as its conversation.

  • Tool scope: give the agent only the operations its purpose requires; an agent that changes addresses does not need a tool that issues refunds.
  • Descriptions and inputs: describe each tool and each input clearly, including formats and allowed values, so that the orchestrator calls it correctly.
  • Identity: decide whether each tool runs with the user's credentials, preserving the user's permissions, or with a service connection, which then needs narrow permissions.
  • Confirmation: require the user to confirm before tools that change data, especially where the change is hard to reverse.
  • Validation and errors: validate inputs, handle tool failures with a clear message, and offer a human route.
  • Deterministic steps: use an authored topic or an agent flow where the process must follow a fixed order, such as identity verification before any change.

Agent flows inside task agents

Many task agents rely on agent flows for their actions. An agent flow is a deterministic, rule-based workflow in Copilot Studio: the same input always produces the same output, which makes it suitable for multi-step operations such as creating an order in an ERP system, sending a confirmation and logging the result. Agent flows can include human-in-the-loop steps, such as approval requests, which lets a task agent start an action that a manager must approve before it completes.

The following table shows how responsibilities typically divide between the generative part of a task agent and its deterministic parts.

ResponsibilityHandled by
Understand the request and gather missing detailsGenerative orchestration
Verify the customer's identity in a fixed sequenceAuthored topic
Create the order and send the confirmationAgent flow
Approve exceptions above a limitApproval step in the agent flow
Worked example

An expense task agent

A company wants employees to submit expense claims by chatting with an agent in Teams: they describe the expense, upload a receipt, and the agent files the claim in the finance system. Claims above 1,000 dollars need manager approval. Employees must be able to file claims only for themselves. What should the design include?

This is a task agent. The design uses generative orchestration to gather the expense details from the conversation, a prompt or Document Intelligence to extract data from the receipt, and an agent flow that files the claim through a finance system connector. The tool runs with the user's identity, so the finance system's permissions prevent filing for others. The agent asks the user to confirm the extracted details before filing, and the agent flow includes an approval step for claims above 1,000 dollars.

Check yourself

Why should a tool that changes customer addresses usually run with the user's identity?

Show answer

Delegated access preserves the user's permissions in the target system, so users can change only what they are allowed to change.

Exam Tips

Remember for the exam

  • Task agents act on systems when a user asks, within a visible conversation.
  • Scope tools narrowly, describe them clearly and decide their identity deliberately.
  • Require confirmation before changes that are hard to reverse.
  • Agent flows give deterministic multi-step actions and can include approvals.