Templates / Gate AI answers against source docs with Groq and n8n data tables

Gate AI answers against source docs with Groq and n8n data tables

Ready for 3.0

by Melbin Francis ✓ · 2 views · created 2026-08-26 · Document Extraction, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This AI workflow has 14 nodes and runs when another workflow calls it (plus 1 other trigger). Along the way it connects Groq Chat Model.

How it runs

Trigger: When another workflow calls it (plus 1 other trigger).

  1. Mark Sub-Workflow Entry (Edit Fields (Set)): sets 3 fields: entry, answer, sources
  2. Mark Form Entry (Edit Fields (Set)): sets 3 fields: entry, answer, sources
  3. Set Gate Policy (Edit Fields (Set)): sets 4 fields: block_at, review_at, model_max_points…
  4. Run Deterministic Fact Checks (Code): runs custom JavaScript code
  5. Judge Claims With Groq (AI Agent): runs an AI agent, with model: Groq Chat Model; output parser: Parse Claim Judgement
  6. Combine Into Gate Verdict (Code): runs custom JavaScript code
  7. Record In Check Log (Data table): uses Data table
  8. Came From Test Form (If): checks a condition and branches into true / false
  9. Show Verdict Page (n8n Form): shows the next form page
  10. Return Verdict To Caller (Edit Fields (Set)): sets 3 fields: verdict, risk_score, reasons

Services it uses

Groq Chat Model

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (10)

From the author

Quick overview This workflow checks an AI-generated answer against its provided source text using deterministic rules and a Groq LLM judge, then returns a PASS/REVIEW/BLOCK verdict and logs the results to an n8n data table. How it works 1. Starts either when…

Excerpt from Melbin Francis's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.