Templates / Detect contract compliance violations with Notion, Google Sheets and Groq

Detect contract compliance violations with Notion, Google Sheets and Groq

Ready for 3.0

by WeblineIndia ✓ · 0 views · created 2026-09-30 · 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-10-19.

What this workflow does

This AI workflow has 14 nodes and runs on a schedule (every day at 06:00). Along the way it connects Notion, Google Sheets and Groq Chat Model.

How it runs

Trigger: On a schedule (every day at 06:00).

  1. Fetch Active Contracts (Notion): get many (database page)
  2. Fetch Recent Transactions (Google Sheets): uses Google Sheets
  3. Compare Terms vs Actuals (Code): runs custom JavaScript code
  4. Violation Detected Router (If): checks a condition and branches into true / false
  5. Fetch Violation History (Google Sheets): uses Google Sheets
  6. Log Compliant Transactions (Google Sheets): append
  7. Analyze Trends & Leakage (Code): runs custom JavaScript code
  8. Batch Current Violations (Loop Over Items (Split in Batches)): loops over the items in batches
  9. AI Analysis Chain (Basic LLM Chain): sends a prompt to an LLM, with model: Groq Inference Engine; output parser: Enforce JSON Schema
  10. Extract AI Recommendations (Edit Fields (Set)): sets 3 fields: action_category, urgency, recommendation

…plus 1 more step. See the full node list below.

Services it uses

NotionGoogle SheetsGroq 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 runs daily to compare procurement transactions in Google Sheets against active contract terms stored in Notion, flags pricing/SLA/volume violations with calculated leakage, and uses Groq LLM analysis to generate corrective…

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.