Templates / Analyze legal contracts with GPT-4.1 and manage cases in Google Sheets and Slack

Analyze legal contracts with GPT-4.1 and manage cases in Google Sheets and Slack

Ready for 3.0

by Hyrum Hurst ✓ · 596 views · created 2026-01-15 · 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 when an HTTP POST request hits its webhook URL. Along the way it connects OpenAI Chat Model, Google Sheets, Slack and Google Calendar.

How it runs

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

  1. Workflow Configuration (Edit Fields (Set)): sets 5 fields: litigationAttorney, corporateAttorney, familyLawAttorney…
  2. Normalize Client and Case Info (Edit Fields (Set)): sets 5 fields: clientName, clientEmail, caseType…
  3. Extract Contract Text (Extract from File): extracts data from a file (pdf)
  4. Analyze Contract and Extract Clauses (AI Agent): runs an AI agent, with model: OpenAI Chat Model; output parser: Structured Output Parser
  5. Route by Case Type (Switch): routes items into 3 branches
  6. Log Case and Contract Info (Google Sheets): append or update
  7. Notify Responsible Attorney (Slack): uses Slack
  8. Send Summary to Client (Send Email): sends an email over SMTP
  9. Generate Contract Review PDF (Convert to File): converts data to a file (html)
  10. Schedule Case Follow-ups (Google Calendar): uses Google Calendar

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

Services it uses

OpenAI Chat ModelGoogle SheetsSlackGoogle Calendar

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

From the author

Who this workflow is for Law firms in corporate, litigation, or family law needing streamlined case and contract management. What this workflow does Automatically analyzes contracts using AI, extracts key clauses, logs cases in Google Sheets, routes cases to…

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