Analyze legal contracts with GPT-4.1 and manage cases in Google Sheets and Slack
Ready for 3.0What 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.
- Workflow Configuration (Edit Fields (Set)): sets 5 fields: litigationAttorney, corporateAttorney, familyLawAttorney…
- Normalize Client and Case Info (Edit Fields (Set)): sets 5 fields: clientName, clientEmail, caseType…
- Extract Contract Text (Extract from File): extracts data from a file (pdf)
- Analyze Contract and Extract Clauses (AI Agent): runs an AI agent, with model: OpenAI Chat Model; output parser: Structured Output Parser
- Route by Case Type (Switch): routes items into 3 branches
- Log Case and Contract Info (Google Sheets): append or update
- Notify Responsible Attorney (Slack): uses Slack
- Send Summary to Client (Send Email): sends an email over SMTP
- Generate Contract Review PDF (Convert to File): converts data to a file (html)
- Schedule Case Follow-ups (Google Calendar): uses Google Calendar
…plus 1 more step. See the full node list below.
Services it uses
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)
- Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - Extract from File
n8n-nodes-base.extractFromFile - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Switch
n8n-nodes-base.switch - Google Sheets
n8n-nodes-base.googleSheets - Slack
n8n-nodes-base.slack - Send Email
n8n-nodes-base.emailSend - Convert to File
n8n-nodes-base.convertToFile - Google Calendar
n8n-nodes-base.googleCalendar - HTTP Request
n8n-nodes-base.httpRequest
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…