{"product_id":"n8n-judgment-api-verify-contract-terms-flag-hallucinations","title":"n8n Judgment API: Verify Contract Terms \u0026 Flag Hallucinations","description":"\u003ch3\u003eVerify contract fields with Judgment—automatically flag mismatches and hallucinations\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow uses the \u003cstrong\u003eJudgment API\u003c\/strong\u003e to verify extracted contract terms against the original contract text. For each field, it confirms what’s supported by the source—or routes suspicious, missing, or conflicting values to a review queue with a human-readable explanation.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cp\u003eBuilt for manual testing and evaluation, the workflow runs when you click \u003cstrong\u003e“Test workflow”\u003c\/strong\u003e and performs a field-by-field consistency check:\u003c\/p\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGenerates two sample extractions\u003c\/strong\u003e from the same \u003ccode\u003esource_text\u003c\/code\u003e (one accurate, one containing fabricated values).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eMerges both extraction records\u003c\/strong\u003e into a single stream so Judgment can evaluate them side by side.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSends each record to Judgment\u003c\/strong\u003e to evaluate, per field:\n    \u003cul\u003e\n      \u003cli\u003ewhether the extracted value is \u003cstrong\u003emissing from the source text\u003c\/strong\u003e\n\u003c\/li\u003e\n      \u003cli\u003ewhether the source states a \u003cstrong\u003edifferent value\u003c\/strong\u003e\n\u003c\/li\u003e\n    \u003c\/ul\u003e\n  \u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReshapes results into per-field checks\u003c\/strong\u003e, including field name, check type, extracted value, risk score, and a verdict of \u003cstrong\u003econfirmed\u003c\/strong\u003e vs \u003cstrong\u003eneeds review\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eRoutes results intelligently\u003c\/strong\u003e:\n    \u003cul\u003e\n      \u003cli\u003eIf confirmed, the field is treated as verified.\u003c\/li\u003e\n      \u003cli\u003eIf needs review, it adds an explanation and routes the item to a \u003cstrong\u003ereview queue\u003c\/strong\u003e.\u003c\/li\u003e\n    \u003c\/ul\u003e\n  \u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eValidate outputs from a contract extraction pipeline before saving terms to your system.\u003c\/li\u003e\n  \u003cli\u003eDetect LLM hallucinations in extracted clauses (e.g., dates, parties, payment terms) by confirming presence and correctness in the contract text.\u003c\/li\u003e\n  \u003cli\u003eRoute only risky fields to legal or ops review while letting the rest pass automatically.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eJudgment API integration\u003c\/strong\u003e via the community node \u003ccode\u003en8n-nodes-judgment\u003c\/code\u003e.\u003c\/li\u003e\n  \u003cli\u003eSetup steps: install the node (Settings → Community Nodes), create a \u003cstrong\u003eJudgment API credential\u003c\/strong\u003e, and configure provider Base URL if required.\u003c\/li\u003e\n  \u003cli\u003eWorkflow nodes include: \u003ccode\u003eif\u003c\/code\u003e, \u003ccode\u003eset\u003c\/code\u003e, \u003ccode\u003eno op\u003c\/code\u003e, \u003ccode\u003emerge\u003c\/code\u003e, \u003ccode\u003esticky note\u003c\/code\u003e, and \u003ccode\u003en8n-nodes-judgment\u003c\/code\u003e (Judgment evaluation).\u003c\/li\u003e\n  \u003cli\u003eCustomize by replacing the sample \u003ccode\u003esource_text\u003c\/code\u003e and extracted fields with your own extraction output, then updating Judgment questions to include \u003cstrong\u003etwo checks per field\u003c\/strong\u003e (not-in-source and wrong-value).\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":46063653879987,"sku":"N8N-19722","price":21.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/gRAP5pkO06kCpqOFTj3vc_vCtasKeY.png?v=1789808735","url":"https:\/\/buyflowscripts.com\/products\/n8n-judgment-api-verify-contract-terms-flag-hallucinations","provider":"N8N Commerce","version":"1.0","type":"link"}