Templates / Route legal contract risks with GPT-4o, Slack, Google Sheets and a regulatory API

Route legal contract risks with GPT-4o, Slack, Google Sheets and a regulatory API

Ready for 3.0

by Cheng Siong Chin ✓ · 66 views · created 2026-03-29 · Document Extraction, AI RAG

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 25 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects OpenAI Chat Model, HTTP Request and Slack.

How it runs

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

  1. Extract Contract Text (Extract from File): extracts data from a file (text)
  2. Legal Governance Agent (AI Agent): runs an AI agent, with model: Governance Model; 3 tools (Slack Alert Tool, Contract Review Agent, Compliance Validation Agent); memory: Contract Review Memory; output parser: Structured Output Parser
  3. Route by Risk Level (Switch): routes items into 3 branches
  4. Prepare Critical Alert (Edit Fields (Set)): sets 4 fields: alertType, priority, requiresImmediateAction…
  5. Prepare High Risk Alert (Edit Fields (Set)): sets 4 fields: alertType, priority, requiresImmediateAction…
  6. Prepare Standard Review (Edit Fields (Set)): sets 4 fields: alertType, priority, requiresImmediateAction…
  7. Prepare Audit Record (Edit Fields (Set)): sets 9 fields: contractId, riskLevel, complianceStatus…
  8. Track Contract Reviews (Data table): uses Data table
  9. Split Risk Clauses (Split Out): splits a list into separate items
  10. Check Approval Required (If): checks a condition and branches into true / false

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

Services it uses

OpenAI Chat ModelHTTP RequestSlack

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 (14)

From the author

How It Works This workflow automates end-to-end legal contract review and compliance governance for legal teams, contract managers, and risk officers. It solves the problem of manually reviewing uploaded contracts for regulatory compliance, risk…

Excerpt from Cheng Siong Chin'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.