Templates / Analyze contract PDFs and score risk with Claude 3.5, Postgres, email and Slack alerts

Analyze contract PDFs and score risk with Claude 3.5, Postgres, email and Slack alerts

Ready for 3.0

by ResilNext ✓ · 125 views · created 2026-04-06 · 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 22 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects Anthropic Chat Model, Postgres, Gmail and Slack.

How it runs

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

  1. Workflow Configuration (Edit Fields (Set)): sets 3 fields: riskThreshold, alertRecipients, slackChannel
  2. Extract PDF Text (Extract from File): extracts data from a file (pdf)
  3. Clause Extraction Agent (AI Agent): runs an AI agent, with model: Claude 3.5 Model; output parser: Clause Parser
  4. Risk Assessment Agent (AI Agent): runs an AI agent, with model: Claude 3.5 Model; output parser: Risk Parser
  5. Obligation Extraction Agent (AI Agent): runs an AI agent, with model: Claude 3.5 Model; output parser: Obligation Parser
  6. Executive Summary Agent (AI Agent): runs an AI agent, with model: Claude 3.5 Model; output parser: Summary Parser
  7. Merge: merges the data from its input branches
  8. Calculate Risk Score (Code): runs custom JavaScript code
  9. Prepare Contract Data (Edit Fields (Set)): sets 18 fields: contract_id, contract_name, contract_type…
  10. Insert Contract (Postgres): uses Postgres

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

Services it uses

Anthropic Chat ModelPostgresGmailSlack

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

Overview This workflow automates end-to-end contract analysis using AI. It extracts clauses, evaluates risks, tracks obligations, and generates an executive summary from uploaded contracts. By combining multiple AI agents with structured parsing and scoring…

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