
Approval Nodes
The 'Pause' button for your graph.
Approval Nodes
Sometimes, the best AI action is to wait for a human.
The Breakpoint
You configure LangGraph to interrupt_before=["ExecuteTransaction"].
When the graph reaches this node, it halts.
The state is saved. The process idles.
The UI shows the user: "The agent wants to send $500. [Approve] [Reject]".
Resuming
When the user clicks "Approve", you call graph.invoke(Command(resume="approved")).
The graph wakes up, sees the approval signal, and proceeds to execute the transaction.