Human-in-the-loop (HITL)
A person reviews, approves or adds input before a consequential action runs. The workflow pauses until the decision arrives.
In plain terms Like a manager’s sign-off: the work waits until a person approves it, asks for changes or rejects it.
Last reviewed · Native orchestration Agent Framework workflows support human-in-the-loop requests and tool approval.
How it works
Execution pauses at defined checkpoints for a person to approve, revise or reject an agent’s proposal before it continues; approval can be scoped to specific tool calls.
Roles in the example
- Nova · AI agent Proposes the action and revises it when asked.
- Pixel · Action executor Runs the action only after approval.
At a glance
- Pattern type
- Governance approach
- Execution model
- Pause–resume at approval gates
- Coordination
- Human decision at defined checkpoints
- Runs agents in parallel
- No, one step at a time
- Implementation complexity
- Medium
- Relative latency
- High · Waits for human response time
- Relative operational cost
- Low · Few extra model calls; the main cost is reviewers’ time and longer-running workflows.
- Predictability
- High · Explicit gates and outcomes
- Scalability
- Limited by reviewer capacity; scope approvals to high-risk actions only.
Complexity, latency, cost and predictability are qualitative ratings that compare these patterns with each other, not measured benchmarks.
When to use it
Good for: Payments, publishing and any action that needs accountability. Can be added to any pattern.
Use when
- Irreversible, financial or regulated actions
- Low model confidence
- Building trust before more autonomy
Avoid when
- High-volume, low-risk actions
- Real-time interactions
- Gates with no meaningful human judgement
Enterprise use cases
- Refunds and payments
- Publishing external communications
- Access or configuration changes
Advantages and limitations
Advantages
- Accountability and oversight
- Catches errors before side effects
- Supports regulatory compliance
Limitations and trade-offs
- Slower throughput
- Reviewer fatigue and rubber-stamping
- Needs durable state while waiting
Security, oversight and failure handling
Security and governance
- Show reviewers the exact tool call and arguments
- Authenticate and authorize approvers
- Audit every decision
Human oversight
Required. Required by design: the workflow pauses until a person approves, requests changes or rejects.
Failure handling and recovery
- Persist state at gates to resume without replay
- Timeouts with a safe default (reject or escalate)
- Revise loops with a cap
Implementation guidance
Decisions to settle before building
- Decide which actions need approval, who approves, and how long a request may wait before it times out or escalates.
- Persist workflow state with checkpoints so a run can wait for a person and resume later.
- A runtime confirmation is not a business approval: use a formal approval step where policy requires one.
Supported technologies
| Technology | Support | How |
|---|---|---|
| Microsoft Agent Framework | Native orchestration | Human-in-the-loop requests and tool approval in workflows and orchestrations |
| Copilot Studio | Platform feature | Makers can require user confirmation before tools that modify data; agent flows add multistage approvals |
| Microsoft Foundry | Build from primitives | Agent Framework orchestration run as a Foundry hosted agent, or a visual, low-code orchestration that calls Foundry agents from Azure Logic Apps (preview). Foundry’s visual workflows retired Dec 1, 2026 |
Availability notes
- Generally available Foundry hosted agents. Managed hosting is GA; the Python Agent Framework hosting integration is prerelease. Source
- Retired Foundry workflows (visual designer). Retired December 1, 2026. Microsoft’s migration paths: Agent Framework run as a hosted agent (recommended), Azure Logic Apps for a visual low-code designer, or A2A for simple agent-to-agent calls. Source
- Preview Foundry agents in Azure Logic Apps (Standard). Call and orchestrate Foundry agents from Logic Apps workflows, with event and schedule triggers, connectors and human approval steps. Source
Code samples and step-by-step guides for Python, C#, Microsoft Foundry and Copilot Studio are in the interactive explorer’s Developer implementation section.
Official references
- Agent Framework: human-in-the-loop
- Agent Framework: tool approval
- Azure Architecture Center: implementation considerations
- Agent Framework: workflow checkpoints
- Copilot Studio: generative orchestration FAQ (safeguards)
- Copilot Studio: multistage and AI approvals in agent flows
Last reviewed 5 December 2026 against Microsoft Agent Framework (Python 1.26 release line), Microsoft Foundry Agent Service, Copilot Studio. Platforms change often: confirm details in the linked documentation.