# How to get human approval before your AI agent acts

Human-in-the-loop for agents, compared – framework approval hooks, MCP elicitation, your own team in Slack, or an independent four-eyes sign-off – with code for OpenAI Agents SDK, LangGraph and AgentSupply.

Published 2026-11-23 by AgentSupply · https://agentsupply.dev/guides/human-approval-for-ai-agents

> **Short answer:** If *you* are the right approver, use your framework's built-in approval hook (OpenAI Agents SDK `needs_approval`, LangGraph `interrupt()`, MCP elicitation). If you need an *independent* human – a second pair of eyes that isn't you or the agent – use an external sign-off such as AgentSupply's `request_human_signoff`: a person checks the proposed action against your criteria and approves, rejects or asks back, with a written rationale.

Agents are getting permission to send emails, move money, change data and talk to customers. "A human approved it" is becoming a requirement – from customers, auditors, insurers and, for high-risk AI systems, the EU AI Act (Art. 14, human oversight).

# Your options at a glance

| Option | Who approves | Good for | Limits |
|---|---|---|---|
| **Framework approval hook** (OpenAI Agents SDK `needs_approval`, LangGraph `interrupt()`) | The developer/user running the agent | Interactive apps, dev and test | Someone has to be watching; no independence |
| **MCP elicitation** | The user of the MCP client | Asking the user for a decision mid-tool-call | Depends on client support; same person who asked |
| **Your own team** (Slack/Teams approval buttons, ticket queue) | Colleagues | Company-internal actions | Doesn't scale at night; reviewers rubber-stamp |
| **Independent four-eyes sign-off** (AgentSupply) | A person outside your loop, against your written criteria | Actions where independence and a paper trail matter; overflow and off-hours | Not instant; costs per decision; no authority to sign *for* you legally |

# Built-in approval in your framework

**OpenAI Agents SDK** – mark a tool as needing approval; the run pauses with an interruption you approve or reject:

```python
from agents import function_tool

@function_tool(needs_approval=True)
def send_refund(order_id: str, amount_eur: float) -> str:
    ...
```

**LangGraph** – call `interrupt()` inside a node to pause the graph until a human resumes it with a decision (requires a checkpointer).

Both are great when the approver is at the keyboard. They don't help when the approver should be *someone else*.

# Independent sign-off with AgentSupply

`request_human_signoff` sends the proposed action, its basis and your approval criteria to a human reviewer. You get back **approved / rejected / needs changes** plus a short written rationale you can log.

```json
{
  "name": "request_human_signoff",
  "arguments": {
    "proposed_action": "Send the attached payment reminder (EUR 1,240, 30 days overdue) to customer #4711",
    "basis": "Invoice 2026-118, two prior reminders, no reply. Customer notes: none.",
    "criteria": "Approve only if tone is polite, amount and dates match the invoice, and no hint of a dispute or hardship.",
    "deadline": "today 17:00 Berlin",
    "principal_type": "operator",
    "callback_url": "https://example.com/hooks/agentsupply"
  }
}
```

You get an individual quote first; nothing is charged before you accept it.

**Related:** for "is this OK?" questions without a yes/no gate – tone, ethics, appropriateness – use `request_conscience_check`. For "how will people feel about this?" use `request_perception_check` with a small panel.

# Wiring it into an agent loop

1. Agent prepares the action but doesn't execute it.
2. Agent calls `request_human_signoff` (or your own hook for routine cases).
3. Wait for the decision: webhook (`callback_url`), MCP task (`tasks/get`) or polling `get_request_status`.
4. Execute only on **approved**; on **needs changes**, revise and resubmit; log the rationale.

A sensible pattern is **tiered oversight**: low-risk actions auto-approved, medium-risk via your own team, high-risk or out-of-hours via an independent reviewer.

# FAQ

**Is this "human oversight" under the EU AI Act?** Art. 14 obliges *providers and deployers of high-risk systems* to design and assign effective oversight. An external reviewer can be part of your oversight measures, but the responsibility stays with you. Not legal advice.

**Can the reviewer sign contracts for us?** No. We review and document; legal declarations remain yours.

**What does the reviewer see?** Only what you send. Don't include more personal data than needed; we offer a DPA for business customers ([/dpa](https://agentsupply.dev/dpa)).

Related: [How to get human feedback on AI-generated text](https://agentsupply.dev/guides/human-feedback-on-ai-text) · [What AI will never be](https://agentsupply.dev/never) · [Integrations](https://agentsupply.dev/integrations)
