Extract and classify legal documents with Claude Sonnet and Google Sheets
Ready for 3.0What this workflow does
This AI workflow has 31 nodes and runs when an HTTP POST request hits its webhook URL (plus 1 other trigger). Along the way it connects Slack, Google Sheets and Anthropic Chat Model.
How it runs
Trigger: When an HTTP POST request hits its webhook URL (plus 1 other trigger).
- Workflow Config (model + settings) (Edit Fields (Set)): sets 1 field: claude_model
- Slack: uses Slack
- Validate Payload (Code): runs custom JavaScript code
- Deduplication Check (Code): runs custom JavaScript code
- Is Duplicate? (If): checks a condition and branches into true / false
- Respond 200 Duplicate (Respond to Webhook): sends the response back to the webhook caller
- Is Valid? (If): checks a condition and branches into true / false
- Respond 202 Accepted (Respond to Webhook): sends the response back to the webhook caller
- Respond 400 Bad Request (Respond to Webhook): sends the response back to the webhook caller
- Has URL? (If): checks a condition and branches into true / false
…plus 18 more steps. 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 - Respond to Webhook
n8n-nodes-base.respondToWebhook - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - HTTP Request
n8n-nodes-base.httpRequest - Extract from File
n8n-nodes-base.extractFromFile - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Send Email
n8n-nodes-base.emailSend - Slack
n8n-nodes-base.slack - Google Sheets
n8n-nodes-base.googleSheets - Anthropic Chat Model
@n8n/n8n-nodes-langchain.lmChatAnthropic - Error Trigger
n8n-nodes-base.errorTrigger
From the author
Stop treating document review as a manual task. Let AI extract, classify, and route every contract, invoice, and NDA automatically. Legal and financial document review is slow, inconsistent, and expensive when done by hand. This workflow accepts any document…