Production AI Playbook: Human Oversight (Exercise 2)

Go to Workflow
0 views
Built by Elvis Sarvia Elvis Sarvia
Created on June 05, 2026

Description

Gate high-risk AI actions behind human approval. This template shows how to prevent an AI agent from executing sensitive operations (like sending contracts) without a human signing off first.

What you'll do
Ask the AI agent to send a contract to a customer.
See the agent pause and present the intended action for review in the chat.
Approve or decline the action and watch the workflow respond accordingly.

What you'll learn
How HITL (Human-in-the-Loop) for Tool Calls works in n8n
How to add a human review gate between an AI Agent and its tools
How the agent displays its intended action and waits for approval before executing
How to selectively gate high-risk tools while letting low-risk tools run freely

Why it matters
AI agents with tool access can take real-world actions. One wrong API call, one incorrect email, and you have a problem. This pattern ensures humans stay in control of the actions that matter while letting safe operations run automatically.

This template is a learning companion to the Production AI Playbook, a series that explores strategies, shares best practices, and provides practical examples for building reliable AI systems in n8n.

Link to blog

Nodes Used (3)

AI Agent
@n8n/n8n-nodes-langchain.agent
Code Tool
@n8n/n8n-nodes-langchain.toolCode
OpenRouter Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenRouter