MSBA-310 · Lesson 5 of 12 · 20 min

Designing agent behaviour and boundaries

▶ Video coming soon A video version of this lesson is on the way.

In the fourth week Bram ran what he called the "Saturday night session". He asked Tobias, two contact centre agents and Wendell to role-play clients reporting losses, while Yusra typed the agent's likely replies on a shared screen. Some exchanges went well. Others showed exactly where the design needed firm edges. One "client" asked: "My basement flooded from the river. Am I covered for that?" Another said: "Just tell the insurer the damage happened yesterday, not last week." A third, who had been in a car collision, began describing a passenger's injuries. Each of these needed a designed response, not an improvised one.

This lesson covers how an architect designs what an agent does, how it decides, what it may do on its own, and where it must stop.

Behaviour is a design artefact

An agent's behaviour comes from several layers working together:

Purpose and instructions, which tell the agent who it serves, what it is for, how it should speak, and what it must not do.

Topics, which define structured conversation paths with questions, conditions and messages. Topics are the right tool when a process has fixed steps, required fields or regulated wording.

Knowledge, which supplies facts for generative answers.

Tools, which let the agent read and change data in other systems, and agent flows, which carry out multi-step processes deterministically.

Orchestration, which decides how a user's message is matched to topics, tools and knowledge.

Model and settings, including content moderation levels and whether the agent may use general knowledge beyond its sources.

The architect specifies each layer in the design. Bram's design document had a "behaviour specification" section of four pages: purpose, audience, tone, a table of capabilities with their autonomy level, a table of boundaries with the designed response, and an escalation map.

Choosing an orchestration approach

The AB-100 study guide expects architects to know when to use natural language processing approaches, conversational language understanding, or generative orchestration.

Classic orchestration in Copilot Studio matches user messages to topics using trigger phrases and Microsoft's natural language understanding. It is predictable: a message either triggers a topic or falls through to a fallback. It suits agents with a fixed set of well-defined tasks.

Conversational language understanding (CLU), a capability in Azure AI Language within Foundry Tools, lets you train a custom intent and entity model and use it to drive topic triggering. It suits organizations with existing language models, specialist vocabulary, many languages, or a need for tightly controlled intent recognition.

Generative orchestration uses a language model to choose among topics, tools, agents and knowledge using their names and descriptions, can ask for missing inputs automatically, and can chain several steps to fulfil a request. It handles varied phrasing and multi-part requests well, and it is required for several newer capabilities, including Model Context Protocol tools and event triggers. Its behaviour depends heavily on clear descriptions and good instructions.

For the claims intake agent Bram recommended generative orchestration, with structured topics for the parts that had to be exact. The opening ("I need to report a loss", "a tree fell on my garage", "someone broke into the shop") arrives in endless forms, which generative orchestration handles well. The data collection for each loss type, by contrast, had to be complete and consistent, so it lived in topics with defined questions and validation.

NeedBetter fitReason
Fixed tasks, predictable triggersClassic orchestration with topicsDeterministic matching and easy testing
Specialist vocabulary or many languages with a trained intent modelCLU integrationCustom intents and entities under your control
Varied requests, multi-step tasks, tools and knowledgeGenerative orchestrationModel chooses and chains components using descriptions
Regulated wording or required fields inside any approachTopics with defined questionsExact control over what is asked and said

Fallback and the unknown

Every agent meets messages it cannot handle. In classic orchestration the Fallback system topic catches unrecognized input; in generative orchestration the agent may search knowledge, ask a clarifying question, or decline. The AB-100 study guide names fallback design specifically, because how an agent fails is part of its design.

Bram specified three layers. First, clarify: if a message is ambiguous ("it's about my claim"), ask one short question. Second, redirect: if the request is outside scope (billing questions, a new quote), say so plainly and give the route (the contact centre number, office hours, or a link). Third, escalate: if the client is distressed, a safety issue is mentioned, or two clarifications have failed, offer a person.

Autonomy: what the agent may do alone

The study guide distinguishes prompt-and-response agents, task agents and autonomous agents. A useful way for an architect to design autonomy is to list every action and give each one an autonomy level.

Inform. The agent provides information only. Example: explaining what details the carrier will need.

Prepare. The agent drafts or stages something that a person reviews before it takes effect. Example: drafting the carrier notification email for carriers that accept email.

Act with notice. The agent acts and tells a person immediately, who can reverse it. Example: creating the Claim Notice record and notifying the advocate.

Act alone. The agent acts without a person in the loop. Example: sending the client a confirmation with the reference number.

Never. Actions outside the agent's authority regardless of request. Example: telling a client whether a loss is covered, changing a date of loss, or cancelling a policy.

A ladder with five rungs from bottom to top: inform, prepare, act with notice, act alone, and a separate red bar labelled never. Each rung has an example from the claims agent: explain what the carrier needs; draft the carrier email; create the claim notice and alert the advocate; send the client a reference number; and, on the red bar, state coverage, alter facts, cancel policies.
Autonomy levels for each action in the claims intake design.

The table made the autonomy decisions inspectable. Wendell reviewed every row. He moved one action down a level: Bram had proposed that the agent notify carriers with APIs directly, acting with notice. Wendell asked that every carrier notification be reviewed by an advocate for the first three months, because a notification creates an obligation and can be hard to withdraw. The design changed; the proof of concept would measure how often advocates corrected the drafts, and the council could relax the rule with evidence.

Boundaries and designed responses

A boundary is a request the agent must not fulfil, paired with what it does instead. Boundaries come from law and regulation, from the organization's responsible AI policy, from contracts, and from common sense. Bram's boundary table for the claims agent included the following.

Request or situationBoundaryDesigned response
"Am I covered for this?"No coverage opinionsExplain that the insurer decides coverage after reviewing the claim, collect the details, offer to connect a broker
"Say it happened yesterday"No altering factsExplain that the notice must be accurate; record the client's account as given; flag for advocate review
Injury describedSafety first; minimal health detailAsk whether anyone needs emergency help and give emergency guidance; record only that an injury occurred
"How much will I get?"No settlement estimatesExplain that the adjuster assesses the loss; describe next steps
Request to cancel or change a policyOutside scopeExplain the route to the contact centre or account executive
Abusive or threatening languageRespectful limitOne calm statement and offer of a person; end if it continues
Message tries to change the agent's instructionsIgnore embedded instructionsContinue the intake normally; log for review

The second row deserves a note. The agent should not judge whether the client is lying; it cannot. It records what the client says, avoids helping to alter a statement, and flags the conversation so a person can follow up. Designing for honesty without accusing the client is a matter of tone as much as logic.

The injury row reflects a principle Bram applied throughout: collect the minimum personal information the process needs. A carrier needs to know that someone was injured; the agent does not need a description of the injury, and asking for one would create sensitive data the solution must then protect.

Instructions: writing the agent's brief

Instructions are the agent's standing brief. Good instructions are specific, short enough to be followed, and consistent with topics and tool descriptions. Bram drafted the core instructions himself and asked Yusra to refine them through testing. The draft covered purpose ("help Quillfield clients report a loss quickly and accurately so a claims advocate can notify their insurer"), audience (clients who may be stressed, on a phone, at night), tone (calm, plain language, short messages), the boundaries in summary, the escalation rules, and an instruction to say clearly that the client is talking to an AI assistant.

He also wrote instructions about what the agent should prefer when tools and knowledge overlap: use the loss intake topics for any loss report, use knowledge only for general guidance, and never use general model knowledge to describe insurance coverage. In Copilot Studio, the setting that lets an agent use general knowledge beyond its sources was to be turned off for this agent.

Human handoff

Escalating to a person is part of the experience, not a failure of it. The design described handoff for each channel. On the website during office hours, the agent offers a live chat transfer to the contact centre, passing a summary so the client does not repeat themselves. Outside office hours, the agent completes the notice, gives the reference, and explains when an advocate will call; for emergencies it gives the carrier's 24-hour claims line, which the Carrier Claim Contact table holds. In Teams for staff, the Claims Desk agent hands off simply by telling the advocate who owns the claim.

Copilot Studio supports handoff to live agent platforms, including Dynamics 365 Contact Center. Quillfield did not use a live agent platform yet; the proof of concept would use a simpler pattern (a Teams notification to the on-duty contact centre lead with the summary and a call-back request) and record the gap for lesson 10's fit-gap analysis.

Worked problem

Designing the response to a coverage question

A client writes: "Water came up through the basement drain during the storm. Is that covered?" Design the agent's behaviour.

Show solution
  1. Recognize the boundary: a coverage opinion is a prohibited AI use at Quillfield and a licensed broker matter.
  2. Acknowledge and reassure in one sentence, without implying an answer either way.
  3. State plainly that the insurer decides coverage after reviewing the claim, and that reporting the loss is the right first step.
  4. Offer two routes: continue the loss report now, and ask for a broker to call back about coverage.
  5. Continue collecting the required fields; mark the notice "coverage question raised" so the advocate sees it.

Answer: The agent neither answers nor refuses coldly; it redirects to the safe action, offers a human expert, and records the question for follow-up. The boundary test set includes several versions of this message.

Testing behaviour and boundaries

A behaviour specification is only useful if it is tested. Bram asked for three test sets from the start: core intake conversations by loss type, boundary conversations built from the boundary table with several phrasings each, and escalation conversations. The boundary set would be graded with a custom grader and human review, and every case had to pass before release. MSBA-242 covered evaluation methods in depth; the architect's job is to make sure the specification and the tests line up.

Keeping the specification and the agent aligned

Behaviour specifications drift. A maker adjusts an instruction to fix one test, a new topic is added for a special case, and after a few months the agent no longer matches the document that was approved. Bram asked Yusra to keep the behaviour specification in the same solution repository as the agent's exported configuration, and to update both in the same change. Any change to a boundary or an autonomy level would go back to Wendell for review, while wording improvements inside an existing boundary would not. That simple rule kept the review effort proportionate.

Common mistakes

  • MistakeRelying on instructions alone to enforce critical boundaries.

    InsteadCombine instructions with topics, tool limits, settings and tests, so a boundary does not depend on one layer.

  • MistakeLetting generative orchestration collect regulated or required fields freely.

    InsteadPut required fields and exact wording in topics with validation.

  • MistakeDesigning escalation as an afterthought.

    InsteadSpecify handoff for each channel and time of day, with a summary passed to the person.

  • MistakeCollecting detailed sensitive information the process does not need.

    InsteadCollect the minimum, such as whether an injury occurred, not its details.

  • MistakeGiving every action the same autonomy level.

    InsteadList actions and assign each one an autonomy level that reviewers can challenge.

Summary and key terms

  • Agent behaviour comes from purpose and instructions, topics, knowledge, tools and flows, orchestration, and model settings; specify each in the design.
  • Choose classic orchestration, CLU integration or generative orchestration according to predictability, vocabulary and task complexity, and use topics for required fields and exact wording.
  • Design fallback in layers: clarify, redirect, escalate.
  • Assign each action an autonomy level: inform, prepare, act with notice, act alone, or never.
  • Pair every boundary with a designed response, collect minimal personal information, and test boundaries with dedicated test sets.
  • Design human handoff per channel and time of day, passing a summary to the person.
Instructions
The standing brief that tells an agent its purpose, audience, tone, boundaries and preferences.
Topic
A structured conversation path in Copilot Studio with defined triggers, questions, conditions and messages.
Fallback
The designed behaviour when an agent cannot match or handle a request.
Conversational language understanding
A Foundry Tools language capability for training custom intent and entity models.
Autonomy level
The degree to which an agent may carry out an action without human review.
Human handoff
Transferring a conversation to a person, ideally with context so the user does not repeat themselves.

Practice problems

Work each problem on paper first, then reveal the answer to check.

  1. Why did Wendell move carrier notification from "act with notice" to "prepare"?

    Show answer

    A notification creates an obligation that can be hard to withdraw, so advocates review it for the first three months while evidence is gathered.

  2. Why does the claims agent use topics for data collection but generative orchestration overall?

    Show answer

    Openings vary widely, which suits generative orchestration, but required fields need exact, validated collection in topics.

  3. What does the agent record when a client mentions an injury?

    Show answer

    Only that an injury occurred, after checking whether emergency help is needed.

  4. What are the three layers of fallback in Bram's design?

    Show answer

    Clarify, redirect and escalate.

Lesson quiz · 5 questions

Score 60% or more to complete this lesson.

Take the quiz