Templates / Analyze contract risk from PDFs with OpenAI, Supabase and Slack alerts

Analyze contract risk from PDFs with OpenAI, Supabase and Slack alerts

Ready for 3.0

by ben daamer ✓ · 178 views · created 2026-03-04 · 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 workflow has 23 nodes and runs when someone submits an n8n form (“Contract AI Analysis — Upload & Analyze”) (plus 2 other triggers). Along the way it connects Supabase, Slack and Gmail. It also calls api.openai.com over HTTP.

How it runs

Trigger: When someone submits an n8n form (“Contract AI Analysis — Upload & Analyze”) (plus 2 other triggers).

  1. Config (Edit Fields (Set)): sets 7 fields: RISK_THRESHOLD, SLACK_CHANNEL, ADMIN_SLACK_CHANNEL…
  2. Slack: create
  3. Check Duplicate (HTTP Request): calls an HTTP API
  4. Already Exists? (If): checks a condition and branches into true / false
  5. Already Analyzed (n8n Form): shows the next form page
  6. Has File? (If): checks a condition and branches into true / false
  7. Extract PDF Text (Extract from File): extracts data from a file (pdf)
  8. Sample Data (Edit Fields (Set)): sets 7 fields: contractText, filename, Contract Type…
  9. Prepare Text (Code): runs custom JavaScript code
  10. AI Pass 1 - Classify (HTTP Request): calls api.openai.com (POST)

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

Services it uses

SupabaseSlackGmail

HTTP calls to: api.openai.com

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

From the author

Who it's for Legal, Procurement, and Compliance teams at mid-size companies. ESN and agencies selling AI-powered contract review as a service. How it works Upload a contract PDF through a rich form (with metadata: contract type, counterparty, department,…

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