Human-in-the-Loop Approvals
AgentFlow’s approval system lets you gate sensitive tool executions with human review. When an agent tries to use a tool that requires approval, execution pauses until a user approves or denies the action.How it works
- A tool is registered with
require_approval=True - During a conversation, the agent decides to call that tool
- Execution pauses and an approval request is created with the tool name and arguments
- The user reviews the request via the API or UI
- If approved, the tool executes and the agent continues
- If denied, the agent is informed and can adjust its approach
Configuring approval on tools
Via SDK
Via REST API
Approval API
List pending approvals
Respond to an approval
approved, denied

