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, a review node and a checkpointer into one runnable agent
- Gate on the dangerous tool instead of on every turn, and keep every tool_use answered
- List the changes that take the example to production and why each is needed
Worked Example: Support Triage Agent
One file, about sixty lines: two tools, a router that knows which one moves money, a review node that pauses for a person, and a checkpointer so the pause survives a restart. Built from the pieces in the last four sections.
Gate the one tool that moves money. Lookups run free and refunds wait for a person, so reviewers see only the decisions that matter. The router is the one place that knows the difference, and the review node turns a person’s verdict into the next edge.