# Gumloop Docs: Human in the Loop

**来源：** https://docs.gumloop.com/core-concepts/human_in_the_loop.md
**抓取日期：** 2026-06-16
**状态：** ✅ 完整

---

Human in the Loop lets you decide exactly when your agent needs to pause and ask for permission before taking an action. Instead of blindly trusting every tool call, you can require approval for sensitive operations like sending emails, creating repositories, or deleting records.

## How It Works

When the agent tries to use a tool that requires approval, it stops and shows you exactly what it wants to do: the tool, the arguments, and the intent.

You receive an approval request via in-app notification, Slack DM, or directly in the chat thread.

If approved, the agent continues from where it left off. If rejected, it acknowledges the rejection and adjusts its approach.

The agent never executes a gated tool call without your explicit go-ahead.

## Setting Up Approval Controls

### Approval Settings (App Level)

| Mode | What it does |
|------|-------------|
| **Always allow** | The agent can use all tools from this app without asking. This is the default. |
| **Ask each time** | Every tool call requires your approval, whether it reads or writes data. |
| **Ask for writes/deletes** | Read-only tools run freely. Write and delete operations require approval. |
| **Custom** | Set approval requirements on a per-tool basis. |

### Per-Tool Control (Custom Mode)

Tools are grouped by risk level: Read-only tools (fetch data) and Write/delete tools (modify or create data).

| Icon | Mode | What it does |
|------|------|-------------|
| ✓ (checkmark) | **Always allow** | Runs without asking. |
| ✋ (hand) | **Ask each time** | Always requires approval. |
| 🚫 (block) | **Never allow** | Completely blocked from use. |

### App Rules (Parameter-Level Conditions)

App Rules let you define conditional approval requirements using CEL expressions that evaluate the actual arguments of each tool call. For example: "Require approval only when the email recipient is outside my company domain."

App Rules require the App Rules Creation ability to be enabled on your agent if you want the agent to create rules via chat. You can always create rules manually through the config UI.

### Ask Human Ability

The Ask Human ability is different from approval settings. Instead of gating tool calls, it lets your agent proactively ask you a question when it needs input to continue. When enabled, the agent can present you with structured choices and pause until you respond.
