Agent Types: Task, Autonomous & Prompt/Response
Not all agents are created equal. Learn the three fundamental agent types in the Microsoft ecosystem β task agents, autonomous agents, and prompt/response agents β including when to use each, how they differ in governance, and the architectural patterns behind them.
Three ways agents work
Think of three types of colleagues:
A task agent is like a meticulous assistant who follows a checklist. βWhen a new hire starts, send the welcome email, create their accounts, schedule their orientation, and notify their manager.β It does tasks in order, step by step.
An autonomous agent is like a proactive team member who monitors situations and acts without being asked. βI noticed inventory is running low on brake pads β Iβve already placed a reorder with the supplier based on our rules.β It works independently, often in the background.
A prompt/response agent is like a knowledgeable colleague you chat with. βWhatβs our return policy for electronics?β β βElectronics can be returned within 30 days with receiptβ¦β It answers questions using its knowledge base.
The three agent types compared
| Feature | Trigger | Behaviour | Human Involvement | Governance Level |
|---|---|---|---|---|
| Task agent | User action or system event starts the workflow | Follows a defined sequence of steps β collects data, calls APIs, creates records | Human may provide input at steps; reviews output | Medium β predefined flow limits what it can do |
| Autonomous agent | Schedule, event, or condition triggers it automatically | Monitors, reasons, decides, and acts independently β no user prompt needed | Minimal β may notify humans of actions taken | High β can act without oversight, needs strict guardrails |
| Prompt/response agent | User asks a question or makes a request | Searches knowledge, reasons over context, generates a natural language response | User drives the conversation; agent responds | Low to medium β responses are advisory, user decides what to do |
Designing task agents
Task agents are workflow executors. Theyβre ideal for repeatable business processes with defined steps.
Design pattern:
- Trigger β user clicks a button, form is submitted, record is created
- Collect β gather required information (from user input or data sources)
- Process β execute steps (create records, call APIs, send notifications)
- Decide β branch based on conditions (approval needed? escalation required?)
- Complete β mark the task as done, notify stakeholders
Examples in business solutions:
| Process | Steps | Platform |
|---|---|---|
| Employee onboarding | Create accounts β assign licences β schedule training β notify manager | Copilot Studio with Power Automate actions |
| Purchase order approval | Validate budget β route to approver β update D365 SCM β notify supplier | Copilot Studio with D365 connectors |
| Customer complaint handling | Log case β classify severity β assign to team β track SLA β escalate if overdue | D365 Customer Service + Copilot Studio |
Scenario: Natalie designs a task agent for invoice processing
Natalieβs client (a logistics company) processes 500 supplier invoices per week. Currently, a team of 3 people manually checks each invoice against the purchase order, flags discrepancies, and routes for approval.
Task agent design:
- Trigger: New invoice arrives in email inbox
- Extract: AI reads the invoice (using document intelligence) and extracts key fields
- Match: Agent compares invoice data against the D365 purchase order
- Decide: If amounts match within 2% tolerance β auto-approve. If discrepancy > 2% β flag for human review
- Process: Create payment record in D365 Finance, update PO status
- Notify: Send confirmation to supplier, alert AP team of flagged invoices
Platform choice: Copilot Studio for the conversational interface + Power Automate for the workflow steps + D365 Finance connector for data
Designing autonomous agents
Autonomous agents are the most powerful β and the most dangerous. They act without user prompts, making governance critical.
Design pattern:
- Monitor β continuously watch for events, conditions, or scheduled triggers
- Reason β analyse the situation using AI models and business rules
- Decide β determine the appropriate action
- Act β execute the action (create records, send communications, update systems)
- Report β log what was done and notify relevant stakeholders
Critical design considerations:
| Consideration | Why It Matters | Design Decision |
|---|---|---|
| Action boundaries | What can the agent do without approval? | Define maximum authority β e.g., βcan reorder up to $10,000; above that, needs human approvalβ |
| Rollback capability | What if the agent makes a wrong decision? | Design undo mechanisms for every automated action |
| Monitoring and alerting | How do you know what the agent is doing? | Real-time dashboard of actions taken, anomaly detection |
| Kill switch | How do you stop the agent immediately? | Admin override that pauses all autonomous actions |
| Audit trail | Whoβs accountable for the agentβs actions? | Log every decision with reasoning, input data, and timestamp |
Scenario: Kai designs an autonomous supply chain agent
Kai designs an autonomous agent for Apex Industries that monitors supply chain risk:
Trigger: Runs every 4 hours, scanning supplier data, weather APIs, and D365 SCM inventory levels
Behaviour:
- Detects that a key supplierβs shipping port has been closed due to a storm
- Identifies 12 purchase orders that will be delayed
- Automatically contacts alternative suppliers from the approved vendor list
- Places expedited orders for critical components (within the $10,000 auto-approval limit)
- Escalates to procurement manager for orders above the limit
- Sends a summary to Lin (CTO) with the impact assessment
Guardrails:
- Cannot exceed $10,000 per order without human approval
- Can only order from pre-approved suppliers
- Must log every action with reasoning
- Kill switch available to procurement team in D365 SCM
Designing prompt/response agents
Prompt/response agents are conversational β they answer questions, provide recommendations, and guide users through decisions.
Design pattern:
- Receive β user sends a natural language prompt
- Understand β agent classifies intent and extracts entities
- Retrieve β search knowledge sources for relevant information
- Reason β generate a response using the model and retrieved context
- Respond β deliver a natural language answer, possibly with follow-up suggestions
Key design decisions:
- Knowledge scope β what should the agent know about? (Too broad = hallucination risk; too narrow = βI donβt knowβ frustration)
- Tone and persona β professional? casual? clinical? Match the audience
- Follow-up behaviour β should the agent ask clarifying questions or give its best guess?
- Escalation trigger β when should it hand off to a human?
Exam tip: choosing the right agent type
The exam frequently presents a scenario and asks which agent type to recommend:
- βProcess runs on a schedule without user interactionβ β Autonomous agent
- βUsers need to complete a multi-step workflowβ β Task agent
- βEmployees need to ask questions about company policiesβ β Prompt/response agent
- βSystem should automatically reorder when inventory dropsβ β Autonomous agent
- βCustomer submits a form and the system processes it step by stepβ β Task agent
- βSales reps want AI-generated insights about their dealsβ β Prompt/response agent
Key differentiator: Task agents follow YOUR defined steps. Autonomous agents make THEIR OWN decisions. Prompt/response agents answer QUESTIONS.
Flashcards
Knowledge check
CareFirst Health needs an AI solution that monitors patient appointment no-shows. When a patient misses an appointment, the system should automatically reschedule within 48 hours, send a reminder, and flag chronic no-show patients for outreach by the patient experience team. Which agent type should Jordan design?
Natalie's client needs an agent that guides loan officers through a 12-step mortgage application review process, collecting documents, running credit checks, and routing for approval at each stage. Which agent type is most appropriate?
Next up: Foundry Tools & Code-First Solutions β proposing the right Foundry tools for each requirement, designing code-first generative pages, and using agent feeds in apps.