EN

Language

Our editions

Written for each audience, not translated word for word.

Human approval in agent workflows: which actions need a person and how to set it up

GuideBy Lucas Matías García TorresUpdated Data checked 4 min read

Reviewed on . How we work.

Leer en español

An industrial robotic arm placing small metal cubes connected by glowing orange cables

Short answer

Human approval in agent workflows means the agent prepares an action and a person approves or denies it before it runs. Following n8n's and OWASP's guidance, reading your own data or preparing a draft needs no approval, while sending anything outside, deleting data, spending money and running commands should always wait for a click. n8n adds a Human review step to an agent's tools with approval through Slack, Gmail, Teams and other channels; OpenAI's Agents SDK pauses the run on tools marked needs_approval; and Anthropic's Claude Agent SDK checks hooks, deny rules, modes and allow rules before asking your canUseTool callback. Checked on October 29, 2026.

Prices and limits change often: check the vendor's page before you pay. How we make money.

Human approval in agent workflows means the agent prepares an action and a person clicks approve or deny before it runs. It is the simplest safety net for agents that send, change, delete or pay for things, and the main tools now build it in: n8n has a human review step for an agent's tools, OpenAI's Agents SDK can pause a run until someone decides, and Anthropic's Claude Agent SDK hands any call your rules have not settled to a callback in your code. The hard part is choosing which actions need the click. On October 29, 2026 we read the documentation of all three, alongside OWASP's guidance, and turned it into the matrix below.

Which actions need a person

Table: When to require approval, by type of action (our matrix, based on n8n's and OWASP's guidance, October 29, 2026)

Action Example Can you undo it? Approval
Read or search your own data Look up rows in a sheet, search a knowledge base Nothing to undo Not needed; give the tool read-only access
Prepare something for you Write an email draft that you send yourself Yes Not needed; the draft is your review
Change internal records Update a field in your CRM, label an email Usually, if there is a history At first, until you trust the results
Send something outside Email or message a customer No Always
Delete data Delete rows, files or messages No, unless you have a backup Always
Spend money or commit to something Place an order, issue a refund No Always, plus spending limits
Run commands or code A shell or code tool Depends on the command Every call, with no blanket approvals

The rows follow n8n's own advice. It recommends review for tools that perform irreversible actions, such as deleting data, sending external communications or making purchases; where regulation requires it; for high-value decisions; and while you are building trust, starting with review on and reducing it as confidence grows. OWASP's entry on excessive agency adds the other half: give each tool only the functions and permissions it needs, avoid open-ended tools such as running a shell command or fetching any URL, and require approval for high-impact actions. The specification behind MCP servers agrees that there should always be a human in the loop who can deny a tool call. Our guide to prompt injection explains why that matters: text the agent reads can steer what it tries to do.

Set it up in n8n

Open the Tools connector on n8n's agent node, find the Human review section in the Tools Panel, choose a channel and connect the tools that need approval to the review step. When the agent wants one of those tools, the workflow pauses and sends the request. The reviewer sees the tool and its parameters and approves or denies: approved, the tool runs with the agent's input; denied, nothing runs and the agent is told.

  • Channels: n8n's own chat, Slack, Discord, Telegram, Microsoft Teams, Gmail, WhatsApp Business Cloud, Google Chat or Outlook. The approval can go somewhere other than the conversation: users can chat with the agent while requests go to one person in Slack.
  • Context for the reviewer: $tool.name and $tool.parameters put the tool and the exact values the agent chose into the message.
  • Tell the agent: n8n says the system prompt should state which tools need approval, what happens when a call is denied and how to respond, for example by telling the user or suggesting an alternative.
  • Sub-agents: review steps also work inside an agent that another agent uses as a tool.

If you run n8n on your own server, our guide to self-hosting n8n covers the setup.

Set it up in code

OpenAI Agents SDK. Mark a tool with needs_approval=True, or pass a function that decides per call from its parameters; if the SDK cannot read the arguments safely, that function fails closed. When approval is needed, the run stops and lists the pending calls in interruptions. You turn the result into a RunState, call approve or reject and resume. The state can be saved, so an approval can wait for hours. The documentation adds two cautions. For the local shell and file-editing tools, approval is off unless you turn it on. And an "always approve" decision for those tools is tied to the tool's type and name, not to one agent, so after a handoff it can approve another agent's tool with the same name.

Claude Agent SDK. Every tool call is checked in this order: hooks, deny rules, ask rules, the permission mode, allow rules and finally your canUseTool callback. A matching deny rule wins even in bypassPermissions mode, and in dontAsk mode a call that reaches the callback is denied instead of asked. A bare tool name in the allowed list approves that tool before your callback ever sees it, so keep irreversible tools out of that list. Our guide to function calling shows how the model asks for a tool in the first place.

Make the click mean something

  • Show the reviewer exactly what will happen: the recipient, the amount, the record. In n8n that means putting $tool.parameters in the message.
  • Keep approvals for the risky rows. If every call needs a click, clicking stops being a review.
  • Decide what the agent does after a "no" and write it into the system prompt.
  • Prefer a narrow tool to a broad one behind a review: OWASP's advice is to remove the functions and permissions the agent does not need.

Our guide on how to build an agent puts these pieces together.

How we checked

On October 29, 2026 we read n8n's page on human-in-the-loop for tools, the human-in-the-loop page of OpenAI's Agents SDK for Python and the permissions page of Anthropic's Claude Agent SDK; on October 28 we had read OWASP's entry on excessive agency and the tools section of the MCP specification. The matrix is our reading of that guidance; we did not build or run an approval workflow for this article.

What we checked

  • n8n's documentation on human-in-the-loop for tools says you can require human approval before an agent executes a specific tool: the workflow pauses until a person approves, so the tool executes with the input specified by the model, or denies, so the action is canceled and the model is informed; it recommends human review when tools perform irreversible actions such as deleting data, sending external communications or making purchases, when compliance requirements exist, for high-value decisions and while building trust, starting with review enabled and reducing oversight as confidence grows; review can apply to all the tools connected to an agent or to selected ones. (n8n, )
  • The same page says review is set up in the Human review section of the agent node's Tools Panel, with approval channels including n8n Chat, Slack, Discord, Telegram, Microsoft Teams, Gmail, WhatsApp Business Cloud, Google Chat and Microsoft Outlook, which can differ from the channel of the main interaction; the $tool.name and $tool.parameters variables show the reviewer the tool and its parameters; the system prompt should state which tools require approval, what happens when approval is denied and how the model should respond; and human review steps work in sub-agents used as tools. (n8n, )
  • The human-in-the-loop page of OpenAI's Agents SDK for Python says tools can set needs_approval to True or to a function that decides per call, which fails closed when the arguments cannot be safely inspected; pending approvals surface as interruptions with ToolApprovalItem entries, the result is converted to a RunState, approved or rejected and the run resumed, and paused runs can be serialized; needs_approval is available on function tools, Agent.as_tool, ShellTool and ApplyPatchTool, local MCP servers support require_approval, and for local ShellTool and ApplyPatchTool approval is opt-in, with needs_approval defaulting to False; sticky always_approve decisions for ShellTool and ApplyPatchTool match the tool type and name, not the owning agent. (OpenAI, )
  • Anthropic's permissions page for the Claude Agent SDK says tool requests are checked in this order: hooks, deny rules, ask rules, permission mode, allow rules and the canUseTool callback; a matching deny rule denies the call even in bypassPermissions mode and even when a hook returned allow; in dontAsk mode calls not resolved earlier are denied instead of reaching canUseTool; and an allowedTools entry that is only a tool name approves calls to that tool before canUseTool is consulted. (Anthropic, )
  • OWASP's LLM06:2025 Excessive Agency entry names excessive functionality, excessive permissions and excessive autonomy as root causes and recommends minimising extensions and their functionality, avoiding open-ended extensions such as running a shell command or fetching a URL, minimising extension permissions, executing extensions in the user's context and requiring user approval for high-impact actions. (OWASP GenAI Security Project, )
  • The Tools section of the MCP specification says there SHOULD always be a human in the loop with the ability to deny tool invocations, and that clients MUST consider tool annotations to be untrusted unless they come from trusted servers. (Model Context Protocol, )

What may change

  • Approval features in n8n and in the agent SDKs change with each release. The matrix is our reading of the guidance, not a standard. This page is reviewed every quarter.

Frequently asked questions

What is human approval in an agent workflow?

A step where the agent prepares a tool call and a person approves or denies it before it runs. If the call is denied, the action does not happen and the agent is told.

Which agent actions should need approval?

Following n8n's and OWASP's guidance, anything irreversible or high-impact: sending messages outside, deleting data, spending money and running commands. Reading your own data usually does not need it.

How do I add human approval in n8n?

Open the Tools connector of n8n's agent node, add a Human review step in the Tools Panel, choose a channel such as Slack or Gmail and connect the risky tools to that step.

How does the OpenAI Agents SDK pause for approval?

Tools marked with needs_approval stop the run and appear in its interruptions. You approve or reject them on the RunState and resume the run, and the state can be saved while you wait.

Can a deny rule be bypassed in the Claude Agent SDK?

No. Anthropic's documentation says a matching deny rule blocks the call even in bypassPermissions mode and even when a hook returned allow.

Is a human click enough to make an agent safe?

No. OWASP recommends approval for high-impact actions together with fewer tools, narrower permissions and no open-ended tools such as running shell commands or fetching any URL.

Sources

  1. Human-in-the-loop for tools: the human review step, approval channels, the $tool variable and system prompt advice, n8n. Accessed October 29, 2026.
  2. Human-in-the-loop (OpenAI Agents SDK for Python): needs_approval, interruptions, RunState and sticky decisions, OpenAI. Accessed October 29, 2026.
  3. Configure permissions (Claude Agent SDK): evaluation order, allow and deny rules, permission modes and canUseTool, Anthropic. Accessed October 29, 2026.
  4. LLM06:2025 Excessive Agency (OWASP Top 10 for LLM Applications), OWASP GenAI Security Project. Accessed October 28, 2026.
  5. Tools (MCP specification, revision 2026-07-28): human in the loop, tool annotations and security considerations, Model Context Protocol. Accessed October 28, 2026.

Spotted an error or an outdated price? Tell us and we will fix it.

Change history

  • : First published. Checked against the documentation of n8n, OpenAI's Agents SDK and Anthropic's Claude Agent SDK on October 29, 2026, and OWASP and the MCP specification on October 28, 2026.

Next review: .

Part of our Agents & Automation guide.

Other topics