Templates / Validate procurement records and learn error patterns with Gemini and Data Tables

Validate procurement records and learn error patterns with Gemini and Data Tables

Ready for 3.0

by WeblineIndia ✓ · 1 views · created 2026-09-28 · 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 17 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects Google Gemini Chat Model.

How it runs

Trigger: When an HTTP POST request hits its webhook URL.

  1. Configure Validation Rules (Edit Fields (Set)): sets 9 fields: cfg_default_currency, cfg_default_tax_rate, cfg_tax_tolerance…
  2. Normalize and Validate Procurement Record (Code): runs custom Python code
  3. Find Known Error Pattern (Data table): get
  4. Merge: merges the data from its input branches
  5. Is Trusted Pattern Known (If): checks a condition and branches into true / false
  6. Reuse Trusted Pattern Correction (Edit Fields (Set)): sets 4 fields: review_source, known_pattern_matched, historical_anomaly_detected…
  7. Analyze Procurement Anomalies (Basic LLM Chain): sends a prompt to an LLM, with model: Google Gemini Chat Model
  8. Merge: merges the data from its input branches
  9. Build Unified Error Decision (Edit Fields (Set)): sets 6 fields: known_pattern_matched, ai_anomaly_detected, has_detected_error…
  10. Are Errors Detected (If): checks a condition and branches into true / false

…plus 5 more steps. See the full node list below.

Services it uses

Google Gemini 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 (9)

From the author

Quick Overview This workflow receives procurement line-item data via a webhook, validates and normalizes it, checks for known recurring error patterns in an n8n Data Table, and uses Google Gemini to detect semantic anomalies when needed, returning an…

Excerpt from WeblineIndia'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.