Build a supervised tool-using agent
Let an agent prepare a bounded action while a person controls execution.
Request
Agent decision
Read-only tools
Prepared action
Human approval
Execute and record
Scenario
An incoming request is classified. The agent may retrieve customer and order data, prepare an action, request approval, execute only after approval, and record the result.
Concepts used
- structured output
- tool calling
- agent loop
- permissions
- approval
- audit trail
Step-by-step build
- Define categories and a structured classification schema.
- Expose narrow read-only customer and order tools.
- Set a maximum number of agent steps and repeated-call protection.
- Prepare an action object without executing it.
- Show evidence, arguments, and risk to a reviewer.
- Enable one narrow action tool only after approval.
- Record model, tools, approval, result, and fallback.
Expected result
The agent can research and prepare, but no consequential change happens without explicit approval and a complete audit record.
Failure cases
- Wrong customer selected
- Tool returns stale data
- Agent repeats a call
- Approval expires
- Action fails after approval
Improvements
- Add confidence thresholds
- Use policy-based tool permissions
- Evaluate tool choice and argument accuracy
Platform variants
- n8n
- Microsoft
- UiPath
- OpenAI Agents SDK
- LangGraph