The risk-tiered review queue every agent workflow installs
Installs a review queue that routes agent outputs by risk tier so only high-impact decisions reach humans before execution.
A logistics company saw its agent greenlight a $2M contract change last quarter because no gate existed between output generation and system commit.
The play, step by step
- Map every agent action to one of three risk tiers inside LangGraph using a simple scoring node that checks dollar value, data sensitivity, and external system writes.
- Configure ServiceNow to create a ticket automatically for tier-2 and tier-3 items, assigning the ticket to the named workflow owner role.
- Set the agent to pause execution and wait for ticket resolution before any downstream API call or database write.
- Require the workflow owner to log the decision reason and outcome directly in the ServiceNow ticket within four hours.
- Run a daily script that pulls closed tickets and feeds the results back into the LangGraph scoring node for recalibration.
- Escalate any tier-3 ticket unresolved after 24 hours to the governance board via email alert.
You assign the scoring node first by editing the LangGraph graph definition file. Add three explicit tier constants at the top of the node script. Dollar value above 50000 routes to tier-2. Any write to customer records or external payment endpoints routes to tier-3 regardless of amount. The node returns the tier label as metadata on every agent output.
Next you open ServiceNow and create a new workflow called Agent Review Queue. Map the tier values to ticket priorities so tier-2 receives priority 3 and tier-3 receives priority 1. Set assignment rules so the ticket lands in the workflow owner queue. The workflow owner is a rotating on-call role held by one of three named operations leads.
The agent code itself must import the ServiceNow client library and call it immediately after the scoring node returns tier-2 or tier-3. Execution halts at that point. The agent writes the full output payload into the ticket description field and stores the ticket number in its own state for later retrieval.
The workflow owner reviews the ticket in ServiceNow, checks the attached output, and either approves or rejects. Approval posts a resolution note that the agent reads on its next polling cycle. Rejection includes a required comment field that the agent uses to revise or discard the action.
When to run this play
Run this play the week any agent moves from shadow to production traffic that touches payments, contracts, or customer data changes. Trigger the play as soon as the first production deployment ticket lists an external API write or a database commit on records tagged as financial or personal.
Watch-outs
The queue backs up when scoring labels too many items tier-2; stop and lower the dollar threshold if daily tickets exceed eight. If the workflow owner role stays vacant for more than one business day, pause all tier-2 and tier-3 agents and escalate to the head of operations. Watch the daily script log for repeated recalibration that pushes the same outputs into higher tiers three times in a row; that pattern means the scoring weights need manual adjustment before the next production run.
Add the mermaid workflow diagram
flowchart TD
A["Map actions to tiers"] --> B["Create ServiceNow ticket"]
B --> C["Pause agent execution"]
C --> D["Workflow owner reviews"]
D --> E{"Approved?"}
E -->|Yes| F["Log outcome and resume"]
E -->|No| G["Revise or discard action"]
F --> H["Daily script recalibrates"]
G --> H
H --> I["Check unresolved tier-3"]
Your first week
Pick one live agent, add the scoring node in LangGraph today, and route its next three outputs through a manual ServiceNow ticket to test the handoff.