Worked Example: Support Triage Agent
A complete runnable LangGraph agent in sixty lines: two tools, a router that knows which is dangerous, an approval gate on refunds, and a checkpointer so the pause survives a restart.
Last updated
After this section you can
- Assemble tools, a router, an approval gate and a checkpointer into one runnable agent
- Gate on the dangerous tool instead of on every turn
- Name the four changes that take this example to production
Worked Example: Support Triage Agent
One file, sixty lines: two tools, a router that knows which of them is dangerous, an approval gate on the expensive one, and a checkpointer so the pause survives a restart.
Gating every tool call trains reviewers to click approve. Gate on the tool, not on the turn: reads run free, writes stop. The router is the only place that knows the difference.