Verify contract extraction and flag hallucinated fields with Judgment API
UnknownWhat this workflow does
This workflow has 10 nodes and runs manually, when you click “Execute workflow”. Along the way it connects Judgment (community).
How it runs
Trigger: Manually, when you click “Execute workflow”.
- Source Document (Edit Fields (Set)): sets 7 fields: record, source_text, counterparty…
- Fabricated Extraction (Edit Fields (Set)): sets 7 fields: record, source_text, counterparty…
- Two Records (Merge): merges the data from its input branches
- Verify Extract (Judgment): evaluate (evaluation)
- Reshape Checks (Edit Fields (Set)): sets 6 fields: record, field, check…
- Is the Field in Doubt? (If): checks a condition and branches into true / false
- Explain the Flag (Edit Fields (Set)): sets 1 field: reviewReason
Services it uses
Before you upgrade to n8n 3.0
We can't fully verify this one: it relies on 1 community package, and n8n 3.0 turns unverified community packages off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).
- Check that n8n-nodes-judgment is verified or supports 3.0 (used in Verify Extract).
Nodes used (6)
- Manual Trigger
n8n-nodes-base.manualTrigger - Judgment
n8n-nodes-judgment.judgment - Edit Fields (Set)
n8n-nodes-base.set - No Operation, do nothing
n8n-nodes-base.noOp - If
n8n-nodes-base.if - Merge
n8n-nodes-base.merge
From the author
Quick Overview This workflow runs manually to verify extracted contract terms against the original contract text using Judgment, then routes any suspicious or conflicting fields to a review queue while treating the remaining fields as confirmed. How it works…