6.1 Designing Task Agents, Autonomous Agents & Prompt-and-Response Agents

Key Takeaways

  • The three fundamental agent archetypes evaluated on the AB-100 exam are Prompt-and-Response Agents (synchronous, turn-by-turn conversational interaction with ephemeral memory), Task Agents (deterministic, parameter slot-filling with transactional integrity and human confirmation gates), and Autonomous Agents (event- or schedule-driven, goal-directed reasoning loops with dynamic tool selection).
  • Task Agents enforce strict transactional consistency across enterprise backends (such as Dataverse, SAP, and Dynamics 365) by executing compensating rollback transactions (Saga pattern) whenever multi-step API operations fail mid-execution.
  • Autonomous Agents operate via continuous reflection loops (such as ReAct or Plan-and-Solve) and require architectural safety bounding mechanisms, including hard iteration limits (e.g., max 5–10 turns), blast-radius containment, scoped tool whitelists, and cryptographic idempotency keys.
  • Selecting the correct archetype depends on balancing process ambiguity against action consequence risk: low-consequence informational queries map to Prompt-and-Response, structured multi-system transactions map to Task Agents, and open-ended, event-driven remediation maps to Autonomous Agents with Human-in-the-Loop approval gates.
Last updated: September 2026

Designing Task Agents, Autonomous Agents & Prompt-and-Response Agents

Quick Answer: The Microsoft AB-100 exam classifies agentic architectures into three distinct operational archetypes: Prompt-and-Response Agents (synchronous, conversational Q&A and summarization with stateless or short-turn memory), Task Agents (semi-deterministic, multi-step goal execution with entity slot-filling, API integrations, and human confirmation gates), and Autonomous Agents (asynchronous, event- or schedule-triggered goal-directed reasoning loops executing across enterprise systems with minimal human intervention). Enterprise solution architects must enforce strict safety bounds—including iteration caps, blast-radius containment, idempotency keys, and compensating rollback transactions—to safely govern autonomous execution.

Enterprise agentic solutions cannot be designed using a one-size-fits-all approach. Deploying an autonomous multi-step reasoning loop for a simple informational policy lookup introduces unnecessary latency, compounding token costs, and non-deterministic risk. Conversely, attempting to handle complex, cross-system operational remediation using rigid single-turn prompt flows creates brittle user experiences that break whenever business parameters deviate from the happy path.

As a Microsoft Certified Agentic AI Business Solutions Architect, you must rigorously evaluate business requirements, risk profiles, and system integration patterns to select, design, and bound the appropriate agent archetype.


1. Architectural Taxonomy of Enterprise Agent Archetypes

                                  AGENT ARCHETYPE SPECTRUM

      Prompt-and-Response                 Task Agent                  Autonomous Agent
  +------------------------+      +------------------------+      +------------------------+
  | - Synchronous Turn/Turn|      | - Semi-Deterministic   |      | - Event/Schedule Driven|
  | - Ephemeral Memory     | ---> | - Slot-Filling & Tools | ---> | - Goal-Directed ReAct  |
  | - Q&A, Search, Summary |      | - Transactional Bounds |      | - Multi-Step Reflection|
  | - Zero Direct Mutation |      | - Human Approval Gates |      | - Cross-System Mutation|
  +------------------------+      +------------------------+      +------------------------+
       Lowest Risk / Latency           Balanced Enterprise Utility          Highest Autonomy / Risk

1.1 Prompt-and-Response Agents (Conversational Synthesizers)

Prompt-and-Response Agents represent the conversational tier of enterprise AI. They operate synchronously in direct response to user prompts, serving primarily as cognitive retrieval, synthesis, and summarization engines.

  • Operational Paradigm: Synchronous, turn-by-turn request and response. The agent executes only when explicitly addressed by a human user in a conversational channel (such as Microsoft Teams, a web chat widget, or Microsoft 365 Copilot chat).
  • State and Memory Lifecycle: Ephemeral or short-turn session memory. The agent maintains conversational context across the active session window (often sliding-window memory capped at 5–10 turns) but maintains no long-term persistent execution state across disparate user sessions.
  • Primary Workloads: Grounded enterprise Q&A, knowledge retrieval across Azure AI Search or SharePoint, unstructured document summarization, natural language data exploration, and email draft generation.
  • System Integration Boundary: Typically restricted to read-only retrieval tools (vector queries, semantic search indices, Read APIs). They do not directly mutate enterprise records (no create, update, or delete operations) without routing the request to a distinct downstream workflow.
  • Failure Modes & Anti-Patterns: Attempting to force a Prompt-and-Response agent to perform multi-step database updates across disparate enterprise systems via prompt instructions alone. Because the architecture lacks transactional state tracking, downstream API failures leave the user stranded with partial or hallucinated execution confirmations.

1.2 Task Agents (Deterministic Multi-Step Operators)

Task Agents are structured, goal-directed operators engineered to execute predefined business procedures. They combine natural language understanding (for extracting parameters and intent from unstructured user dialogue) with deterministic execution graphs to guarantee business consistency.

  • Operational Paradigm: Interactive, semi-deterministic execution. The agent guides the user through a bounded business process, identifying missing required parameters through entity slot-filling, validating constraints, and invoking enterprise APIs.
  • State and Memory Lifecycle: Structured session state machines. State is explicitly modeled using typed variables (e.g., Global and Topic variables in Copilot Studio). State transitions are governed by business rules, and the execution graph retains intermediate parameter values until the transaction commits or aborts.
  • Tool and Connector Invocation: Bounded tool invocation via typed schemas (Power Automate cloud flows, Power Platform connectors, Dataverse Web API, and REST endpoints via OpenAPI 3.0 specifications). Every tool has a strictly validated contract with expected input types and output schemas.
  • Transactional Integrity & Compensating Actions: Task agents frequently span multiple independent backends (e.g., updating customer address in Dynamics 365 Sales, notifying logistics in SAP ERP, and sending a confirmation email via Exchange). If step 3 fails, the task agent must execute a compensating transaction (the Saga pattern) to roll back or reverse intermediate mutations.
  • Human Confirmation Gates: For consequential or state-mutating actions (e.g., modifying billing information, cancelling an order, or dispatching inventory), the task agent must present an explicit confirmation gate—such as an Adaptive Card in Teams or an interactive confirmation node—requiring the human user to verify parameters before the mutation executes.
  • Primary Workloads: Employee onboarding equipment provisioning, return merchandise authorization (RMA) processing, IT service desk password resets, travel booking workflows, and customer account address updates.

1.3 Autonomous Agents (Goal-Directed Reasoning Engines)

Autonomous Agents represent the highest tier of agency. Rather than waiting for human conversational prompts or following rigid node-by-node decision trees, autonomous agents receive high-level strategic objectives and execute multi-step plans dynamically.

  • Operational Paradigm: Asynchronous, event-driven, or schedule-triggered execution. The agent activates in response to system telemetry, enterprise message bus events (e.g., Azure Event Grid, Service Bus queues, Dataverse automated triggers), or scheduled recurrence timers. Human prompting is minimal or entirely absent during the operational cycle.
  • Cognitive Architecture & Reflection Loops: Employs dynamic reasoning loops—such as ReAct (Reason + Act) or Plan-and-Solve. In each iteration, the agent:
    1. Perceives: Ingests environmental telemetry and system alerts.
    2. Reflects / Reasons: Evaluates current progress against the overarching business goal.
    3. Plans: Dynamically selects the next tool, API, or query to execute.
    4. Acts: Invokes external systems with synthesized arguments.
    5. Observes: Evaluates the output or error code from the tool and adjusts its subsequent actions.
  • Memory Systems: Employs multi-tiered memory architectures:
    • Working Memory: Scratchpad containing the active execution trace, current sub-goal, and recent tool outputs.
    • Short-Term Memory: Contextual session store retaining intermediate states during the active lifecycle of the event.
    • Long-Term Memory: Enterprise vector databases or semantic caches storing historical incident resolutions, business policy constraints, and past execution logs.
  • Primary Workloads: Automated invoice exception matching and reconciliation across SAP and Dynamics 365, continuous cloud infrastructure security triage and remediation, dynamic supply chain replenishment rescheduling, and predictive equipment maintenance dispatch.

2. Comparative Architectural Matrix

The following matrix summarizes the technical dimensions of each archetype as evaluated on the AB-100 exam:

Architectural VectorPrompt-and-Response AgentTask AgentAutonomous Agent
Initiation TriggerSynchronous user messageSynchronous user messageEvent-driven (Event Grid/Dataverse) or Schedule (Cron)
Execution TopologySingle-turn / short dialog treeDeterministic directed graph / state machineDynamic reasoning loop (ReAct / Plan-and-Solve)
Human InteractionContinuous (turn-by-turn)Periodic (slot-filling & confirmation gates)Exception-only (Human-in-the-Loop escalation)
State ManagementEphemeral context windowTyped session variables & Dataverse stateDurable orchestrator state & external working memory
Tool IntegrationRead-only semantic search / RAGTyped Power Platform connectors / Flows / APIsUnbounded tool registry with dynamic schema binding
Error HandlingModel re-prompting / user clarificationPredefined condition branches & rollback flowsSelf-correcting reflection loops & automated replanning
Latency ProfileLow (1 to 3 seconds)Moderate (3 to 10 seconds)High / Asynchronous (30 seconds to several minutes)
Primary Tech StackCopilot Studio (Standard), M365 CopilotCopilot Studio Topics, Power Automate, DataverseAzure AI Foundry Agent Service, Semantic Kernel

3. Safety, Bounding & Governance Mechanisms for Autonomous Agents

Because autonomous agents possess the cognitive flexibility to formulate plans and call state-mutating enterprise tools without human pre-authorization, solution architects must implement non-negotiable bounding mechanisms to prevent catastrophic failure modes, infinite loops, and financial loss.

                         AUTONOMOUS AGENT SAFETY BOUNDARY

        +-------------------------------------------------------------+
        |                    Goal / Event Trigger                     |
        +-------------------------------------------------------------+
                                       |
                                       v
        +-------------------------------------------------------------+
        |  Iteration Controller (Hard Cap: max_turns <= 8)           |
        +-------------------------------------------------------------+
                                       |
                                       v
        +-------------------------------------------------------------+
        |  Reasoning Engine (ReAct / Reflection Loop)                 |
        +-------------------------------------------------------------+
                                       |
              +------------------------+------------------------+
              | Mutating Tool                                   | Read-Only Tool
              v                                                 v
  +------------------------+                        +------------------------+
  | Idempotency Key Gen    |                        | Schema & Semantic      |
  | HITL Approval Gate     |                        | Vector Query Cache     |
  | Blast-Radius Sandbox   |                        +------------------------+
  +------------------------+                                    |
              |                                                 |
              v                                                 |
  +------------------------+                                    |
  | Enterprise Mutation    |                                    |
  | (Dataverse, ERP, APIs) | <----------------------------------+
  +------------------------+
              |
       [Failure Detected]
              |
              v
  +------------------------+
  | Saga Rollback Flow     |
  | (Compensating Actions) |
  +------------------------+

3.1 Max Iteration Limits (Loop Termination Guards)

  • The Risk: In an unconstrained ReAct loop, an agent encountering unexpected tool outputs, syntax errors, or circular API dependencies can enter an infinite reasoning loop, consuming thousands of dollars in token fees and exhausting API rate limits.
  • The Architectural Guard: Enforce a hard ceiling on reasoning turns (e.g., max_iterations = 8 or max_execution_time = 300s). When the threshold is reached, the agent runtime terminates the loop, writes the execution trace to Application Insights, and escalates to a human operator or executes an alert flow.

3.2 Blast-Radius Containment & Least Privilege Tool Scoping

  • Action Space Segmentation: Categorize all agent tools into Safe / Non-Mutating (e.g., GetCustomerBalance, SearchInventory, ReadPolicyDocument) and Consequential / Mutating (e.g., CancelSubscription, AuthorizeRefund, UpdateCreditLimit).
  • Blast-Radius Guardrails: Constrain the agent's authorized execution envelope:
    • Financial caps: Autonomous refunds permitted up to $100; refunds exceeding $100 require Human-in-the-Loop (HITL) approval.
    • Quantity thresholds: Autonomous inventory reallocation capped at 50 units per transaction.
    • Network and environment isolation: The agent's connector service principal must possess least-privilege Entra ID security roles, preventing execution outside designated Dataverse business units.

3.3 State Checkpointing & Durable Execution

  • Autonomous workflows spanning minutes or hours across distributed systems are vulnerable to infrastructure interruptions, transient network disconnects, and API timeouts.
  • Checkpointing Architecture: After each completed reasoning step and tool invocation, the agent persists its working state (current plan, completed actions, intermediate payloads, and context variables) to a durable state store (such as Azure Cosmos DB or Azure Durable Task Framework). If the worker node restarts, the agent resumes execution from the last validated checkpoint without re-running completed mutations.

3.4 Cryptographic Idempotency Keys

  • The Risk: When an agent invokes a state-mutating tool (e.g., creating a purchase order in Dynamics 365 Supply Chain) and experiences an HTTP 504 Gateway Timeout or an ambiguous network disconnect, the agent's self-healing loop will typically retry the action. Without idempotency, this results in duplicate orders and double billing.
  • The Architectural Guard: The agent runtime must generate a unique, deterministic idempotency key for every distinct business intent (e.g., Idempotency-Key: PO-REQ-98432-REV1). Upstream enterprise APIs and Power Automate flows must validate this key against a distributed cache (such as Azure Redis) to ensure that retried calls return the cached original result without re-executing the transaction.

3.5 Rollback and Compensating Transactions (The Saga Pattern)

  • In distributed enterprise architectures, atomic transactions (ACID distributed two-phase commits) across disparate SaaS backends (e.g., Salesforce, SAP, and Dataverse) are rarely technically feasible.
  • Compensating Flows: The architect must design a paired Compensating Action for every forward mutating action:
    • Forward Action: ReserveWarehouseStock(ItemSku, Qty) $\rightarrow$ Compensating Action: ReleaseWarehouseStock(ItemSku, Qty)
    • Forward Action: ChargeCreditCard(Amount, AccountId) $\rightarrow$ Compensating Action: RefundCreditCard(TxnId, Amount)
  • If an autonomous agent completes steps 1 and 2 but fails definitively on step 3 (e.g., CRM account creation fails), the agent runtime triggers the compensating transaction pipeline in reverse order, returning enterprise state to a consistent baseline.

4. Archetype Selection Framework for Business Requirements

When presented with complex enterprise use cases on the AB-100 exam, evaluate the scenario across four decision criteria:

                           ARCHETYPE DECISION TREE

                     Is direct human interaction present?
                                /          \
                              YES           NO
                              /              \
              Does the process mutate        Does the process follow
              critical enterprise records?   a dynamic, open-ended goal?
                     /          \                     /          \
                   YES           NO                 YES           NO
                   /              \                 /              \
             [TASK AGENT]    [PROMPT-AND-     [AUTONOMOUS      [DETERMINISTIC
             With HITL       RESPONSE AGENT]    AGENT]           WORKFLOW]
             Validation                       With Bounds      (Power Automate)
  1. Interaction Synchronicity: Does the business user expect real-time conversational assistance (Prompt-and-Response or Task Agent), or must the system process telemetry and events in the background (Autonomous Agent or Workflow)?
  2. Path Determinism: Can the execution path be completely mapped in advance as a flowchart (Task Agent or deterministic flow), or does the solution require open-ended cognitive reasoning, trial-and-error exploration, and dynamic sub-goal generation (Autonomous Agent)?
  3. Mutation Consequence: Do actions alter financial ledgers, customer contracts, or operational infrastructure? High-consequence mutations mandate Task Agents with Human-in-the-Loop gates or heavily constrained Autonomous Agents with strict financial thresholds and compensating rollbacks.
  4. Exception Rate: In processes where 95% of transactions follow standard rules, use deterministic Power Automate flows for the happy path and route the 5% ambiguous exceptions to an agent.
Loading diagram...
Enterprise Agent Archetype Lifecycle & Safety Governance Pipeline
Test Your Knowledge

A global logistics enterprise requires a solution to automate shipping container damage reconciliation. The system must ingest automated damage incident telemetry emitted by IoT crane sensors, cross-reference container leasing contracts in SAP ERP, autonomously evaluate whether damage claims fall below a $2,500 lease-allowance threshold, issue repair work orders via an external REST API, and post billing adjustments to Dynamics 365 Finance. If any downstream API fails during the repair dispatch, prior financial entries must be cleanly reversed without human intervention. Which architecture should the solutions architect specify?

A
B
C
D
Test Your Knowledge

An architect is designing an autonomous cybersecurity triage agent running in Azure AI Foundry. The agent is triggered by high-severity alerts from Microsoft Sentinel, analyzes network logs across multiple cloud tenants, and dynamically invokes remediation tools such as isolating virtual machines, resetting compromised Entra ID credentials, and revoking OAuth tokens. During stress testing, the agent entered an unconstrained execution loop when an external firewall API returned an unexpected 429 rate-limit code, generating hundreds of redundant log queries and token overages. Which bounding and safety mechanisms must the architect implement to resolve this vulnerability?

A
B
C
D
Test Your Knowledge

A retail bank desires an AI solution for its mobile banking application that enables customers to update their primary mailing addresses, verify active debit cards, and dispute unauthorized transactions under $100. Updating the address requires updating both the core banking mainframe and the CRM, while disputes require customer attestation. The bank insists that customers must review and explicitly verify all address changes before records are permanently altered, and no transaction disputes should ever execute without customer sign-off. Which agent archetype is most appropriate?

A
B
C
D