AutomationFlowsGeneral › Legal Case Automation Workflow

Legal Case Automation Workflow

Legal Case Automation Workflow. Webhook trigger; 11 nodes.

Webhook trigger★★★★☆ complexity11 nodes
General Trigger: Webhook Nodes: 11 Complexity: ★★★★☆ Added:

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "name": "Legal Case Automation Workflow",
  "nodes": [
    {
      "parameters": {
        "path": "start-case",
        "httpMethod": "POST",
        "responseMode": "onReceived",
        "responseData": "firstEntryJson"
      },
      "id": "TriggerCase",
      "name": "Trigger Case",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 1,
      "position": [
        100,
        300
      ]
    },
    {
      "parameters": {
        "functionCode": "// Step 2: Start Case Data\nreturn [{ json: { step: 'Start Case Data', status: 'ok' } }];"
      },
      "id": "StartCaseData",
      "name": "Start Case Data",
      "type": "n8n-nodes-base.function",
      "typeVersion": 1,
      "position": [
        300,
        300
      ]
    },
    {
      "parameters": {
        "functionCode": "// Step 3: Classify Request\nreturn [{ json: { step: 'Classify Request', status: 'ok' } }];"
      },
      "id": "ClassifyRequest",
      "name": "Classify Request",
      "type": "n8n-nodes-base.function",
      "typeVersion": 1,
      "position": [
        500,
        300
      ]
    },
    {
      "parameters": {
        "functionCode": "// Step 4: Collect Inputs\nreturn [{ json: { step: 'Collect Inputs', status: 'ok' } }];"
      },
      "id": "CollectInputs",
      "name": "Collect Inputs",
      "type": "n8n-nodes-base.function",
      "typeVersion": 1,
      "position": [
        700,
        300
      ]
    },
    {
      "parameters": {
        "functionCode": "// Step 5: Validate Inputs\nreturn [{ json: { step: 'Validate Inputs', status: 'ok' } }];"
      },
      "id": "ValidateInputs",
      "name": "Validate Inputs",
      "type": "n8n-nodes-base.function",
      "typeVersion": 1,
      "position": [
        900,
        300
      ]
    },
    {
      "parameters": {
        "functionCode": "// Step 6: Apply Rules\nreturn [{ json: { step: 'Apply Rules', status: 'ok' } }];"
      },
      "id": "ApplyRules",
      "name": "Apply Rules",
      "type": "n8n-nodes-base.function",
      "typeVersion": 1,
      "position": [
        1100,
        300
      ]
    },
    {
      "parameters": {
        "functionCode": "// Step 7: Generate Draft Output\nreturn [{ json: { step: 'Generate Draft Output', status: 'ok' } }];"
      },
      "id": "GenerateDraftOutput",
      "name": "Generate Draft Output",
      "type": "n8n-nodes-base.function",
      "typeVersion": 1,
      "position": [
        1300,
        300
      ]
    },
    {
      "parameters": {
        "functionCode": "// Step 8: AI Quality Check\nreturn [{ json: { step: 'AI Quality Check', status: 'ok' } }];"
      },
      "id": "AIQualityCheck",
      "name": "AI Quality Check",
      "type": "n8n-nodes-base.function",
      "typeVersion": 1,
      "position": [
        1500,
        300
      ]
    },
    {
      "parameters": {
        "functionCode": "// Step 9: Expert Review\nreturn [{ json: { step: 'Expert Review', status: 'ok' } }];"
      },
      "id": "ExpertReview",
      "name": "Expert Review",
      "type": "n8n-nodes-base.function",
      "typeVersion": 1,
      "position": [
        1700,
        300
      ]
    },
    {
      "parameters": {
        "functionCode": "// Step 10: Deliver Result\nreturn [{ json: { step: 'Deliver Result', status: 'ok' } }];"
      },
      "id": "DeliverResult",
      "name": "Deliver Result",
      "type": "n8n-nodes-base.function",
      "typeVersion": 1,
      "position": [
        1900,
        300
      ]
    },
    {
      "parameters": {
        "functionCode": "// Step 11: Log & Knowledge Base\nreturn [{ json: { step: 'Log & Knowledge Base', status: 'ok' } }];"
      },
      "id": "Log&KnowledgeBase",
      "name": "Log & Knowledge Base",
      "type": "n8n-nodes-base.function",
      "typeVersion": 1,
      "position": [
        2100,
        300
      ]
    }
  ],
  "connections": {
    "Trigger Case": {
      "main": [
        [
          {
            "node": "Start Case Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Start Case Data": {
      "main": [
        [
          {
            "node": "Classify Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Classify Request": {
      "main": [
        [
          {
            "node": "Collect Inputs",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Collect Inputs": {
      "main": [
        [
          {
            "node": "Validate Inputs",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Validate Inputs": {
      "main": [
        [
          {
            "node": "Apply Rules",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Apply Rules": {
      "main": [
        [
          {
            "node": "Generate Draft Output",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Draft Output": {
      "main": [
        [
          {
            "node": "AI Quality Check",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Quality Check": {
      "main": [
        [
          {
            "node": "Expert Review",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Expert Review": {
      "main": [
        [
          {
            "node": "Deliver Result",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Deliver Result": {
      "main": [
        [
          {
            "node": "Log & Knowledge Base",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {},
  "id": "legal-case-flow"
}
Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

Legal Case Automation Workflow. Webhook trigger; 11 nodes.

Source: https://gist.github.com/Georgy-opx/5024cacf8f893bb10037ed09c9809b35 — original creator credit. Request a take-down →

More General workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

General

A production-ready authentication workflow implementing secure user registration, login, token verification, and refresh token mechanisms. Perfect for adding authentication to any application without

Crypto, Data Table, Execute Workflow Trigger
General

Portfolio Orchestrator. Uses httpRequest. Webhook trigger; 59 nodes.

HTTP Request
General

This n8n template demonstrates how a simple Multi-Layer Perceptron (MLP) neural network can predict housing prices. The prediction is based on four key features, processed through a three-layer model.

General

github code Try yourself

Google Calendar
General

This workflow contains community nodes that are only compatible with the self-hosted version of n8n.

N8N Nodes 1Shot