Lesson 3 of 3 Agent Types

Designing Autonomous Agents

This lesson explains how to design agents that act on events and the controls they need.

Learning outcomes

After completing this lesson, you will be able to:

  • Describe how event triggers start autonomous agents.
  • Explain the identity risk of trigger connections.
  • Choose controls for actions of different impact.

Characteristics

An autonomous agent starts work when something happens: an email arrives, a record changes, a file is uploaded, or a schedule fires. In Copilot Studio, this is configured with event triggers, which require generative orchestration. When the trigger fires, it sends a payload describing the event to the agent, and the agent uses its instructions, knowledge and tools to decide what to do. A supplier communications agent that reads supplier emails about delayed deliveries and updates purchase orders is a typical example.

Autonomy brings both the greatest value and the greatest risk. The agent works continuously without staff effort, but nobody watches each decision as it happens, so the design must provide controls that a conversation would otherwise provide.

Designing triggers and identity

Trigger design decides what starts the agent and what information it receives. Triggers provide a default payload, and makers can add content and instructions to it, for example to tell the agent which fields of the event matter. Until the agent is published with the trigger, it is tested by replaying a recent event payload.

Identity needs particular attention. Event trigger connectors can authenticate only with the agent maker's account. Microsoft's documentation warns that this can give users of the agent access to data and systems they should not reach through the maker's credentials. The design should therefore use a dedicated, narrowly permissioned account for the trigger connection rather than a personal administrator account, restrict who can use the agent, and review the data that each trigger exposes. Enabling event triggers also affects billing, because every run consumes Copilot Credits.

Controls for autonomy

The controls for an autonomous agent compensate for the absence of a person in the loop.

  • Clear goals and boundaries in the instructions: what the agent should achieve, what it must never do and when it must stop.
  • Narrow tools: only the operations required, with limits such as maximum amounts.
  • Human-in-the-loop for high-impact actions: approvals or requests for information in agent flows before irreversible steps.
  • Monitoring of runs: Copilot Studio analytics show runs for autonomous agents, and activity maps show what each run did, so that failures and unusual behaviour are reviewed.
  • Rate and cost limits: protection against loops or floods of events that would consume capacity.
  • Staged rollout: begin in a recommend-only mode and grant authority to act as measured accuracy justifies it.

The following table shows how these controls can be combined for actions with different impact.

Action impactExampleControl pattern
LowCategorize an incoming emailAct; monitor samples
MediumUpdate a delivery date on a purchase orderAct within rules; log and review exceptions
HighCancel an order or pay a supplierPrepare the action; require human approval
Worked example

An autonomous order exception agent

A distributor wants an agent that detects when a shipment is delayed in the carrier system, informs the customer by email and proposes a new delivery date. If the delay exceeds five days, it may offer a discount of up to 5 percent. The trigger connection was set up with the IT director's account. What should you recommend?

The design is an autonomous agent with an event trigger on delayed shipments. The trigger connection should be moved from the IT director's account to a dedicated account with read access to shipments only, because trigger connectors run with the maker's credentials. Emails and new dates can be sent within rules and logged, while the discount is a higher-impact action: the agent should prepare it and send it for approval through an agent flow until the business has measured that its offers are appropriate. Runs are monitored in analytics, with alerts on failures and on unusual volumes.

Check yourself

Whose account do event trigger connectors authenticate with?

Show answer

Only the agent maker's account, which is why a dedicated, narrowly permissioned account should be used.

Exam Tips

Remember for the exam

  • Autonomous agents start from event triggers or schedules and need generative orchestration.
  • Event trigger connectors authenticate only with the maker's account; use a dedicated narrow account.
  • Use approvals for high-impact actions and monitor runs in analytics.
  • Roll out in recommend-only mode before granting authority to act.