{"product_id":"gate-ai-answers-w-groq-judge-source-docs-in-n8n","title":"Gate AI Answers w\/ Groq Judge \u0026 Source Docs in n8n","description":"\u003ch3\u003eGate AI Answers with a Groq Judge + Source Docs in n8n\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow automatically checks whether an AI-generated answer is supported by the provided source text—using deterministic safeguards and a Groq LLM judge—then returns a clear \u003cstrong\u003ePASS \/ REVIEW \/ BLOCK\u003c\/strong\u003e verdict and logs results to an n8n data table.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eStarts from either\u003c\/strong\u003e a sub-workflow call (inputs: \u003ccode\u003eanswer\u003c\/code\u003e and \u003ccode\u003esources\u003c\/code\u003e) or the workflow’s \u003cstrong\u003ebuilt-in n8n form\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eApplies a configurable gate policy\u003c\/strong\u003e, including review\/block thresholds, a model score cap, and a minimum source length (it refuses to PASS if sources are too short).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eRuns deterministic checks\u003c\/strong\u003e to detect \u003cstrong\u003enumbers and URLs\u003c\/strong\u003e present in the answer but missing from the provided sources, assigning risk points.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eJudges unsupported claims with Groq\u003c\/strong\u003e: sends the answer + sources to a selected \u003cstrong\u003eGroq chat model\u003c\/strong\u003e to extract unsupported claims, each with a short reason and a confidence score.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eComputes a final risk score\u003c\/strong\u003e by combining deterministic findings and \u003cstrong\u003ecapped\u003c\/strong\u003e Groq-based points, then outputs a \u003cstrong\u003ePASS \/ REVIEW \/ BLOCK\u003c\/strong\u003e verdict.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eLogs everything\u003c\/strong\u003e (verdict, score, findings) into an \u003cstrong\u003en8n data table\u003c\/strong\u003e, and either shows a results page (form submissions) or returns the verdict details to the calling workflow.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eRoute AI responses in a SaaS support agent so answers without sufficient source backing are flagged before sending.\u003c\/li\u003e\n  \u003cli\u003eBuild a reliable RAG quality gate: require that generated claims (including URLs\/numbers) appear in the supplied documents.\u003c\/li\u003e\n  \u003cli\u003eLet automation engineers audit model behavior by storing pass\/review\/block outcomes and reasons in a data table.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGroq integration\u003c\/strong\u003e: add a Groq API credential and select the Groq chat model used as the judge.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003en8n nodes used\u003c\/strong\u003e: if, set, code, form, data table, sticky note.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eLogging\u003c\/strong\u003e: configure the \u003cstrong\u003eData Table ID\u003c\/strong\u003e for the check log.\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45905436803251,"sku":"N8N-18728","price":56.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/pSfv0rnOTQ-H3RayUPxuu_rKdznCli.png?v=1787822062","url":"https:\/\/buyflowscripts.com\/products\/gate-ai-answers-w-groq-judge-source-docs-in-n8n","provider":"N8N Commerce","version":"1.0","type":"link"}