{
  "name": "Extract Contract Clause Data",
  "nodes": [
    {
      "parameters": {
        "content": "## Extract Contract Clause Data\n\nLegal teams and contract management platforms use this recipe to automate contract review. Upload a contract and receive structured JSON with involved parties, key dates, and individual clauses \u2014 ready for a compliance check, risk analysis, or contract database.\n\n**Note:** This workflow uses the Iteration Layer community node (`n8n-nodes-iterationlayer`). Install it via Settings > Community Nodes on self-hosted n8n, or add it directly on n8n Cloud with Verified Community Nodes enabled.",
        "height": 280,
        "width": 500,
        "color": 2
      },
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        200,
        40
      ],
      "id": "6e40f220-51d4-4a97-ad58-88b23de638e5",
      "name": "Overview"
    },
    {
      "parameters": {
        "content": "### Step 1: Extract Data\nResource: **Document Extraction**\n\nConfigure the Document Extraction parameters below, then connect your credentials.",
        "height": 160,
        "width": 300,
        "color": 6
      },
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        475,
        100
      ],
      "id": "bf59c222-8e4c-4369-86ab-6be21dce4a57",
      "name": "Step 1 Note"
    },
    {
      "parameters": {},
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        250,
        300
      ],
      "id": "e5f6a7b8-c9d0-1234-efab-345678901234",
      "name": "Manual Trigger"
    },
    {
      "parameters": {
        "resource": "documentExtraction",
        "schemaInputMode": "rawJson",
        "schemaJson": "{\"fields\":[{\"name\":\"parties\",\"type\":\"ARRAY\",\"description\":\"Parties involved in the contract\",\"fields\":[{\"name\":\"name\",\"type\":\"TEXT\",\"description\":\"Name of the party\"},{\"name\":\"role\",\"type\":\"TEXT\",\"description\":\"Role of the party (e.g. client, provider)\"}]},{\"name\":\"effective_date\",\"type\":\"DATE\",\"description\":\"Date the contract takes effect\"},{\"name\":\"termination_date\",\"type\":\"DATE\",\"description\":\"Date the contract expires or terminates\"},{\"name\":\"clauses\",\"type\":\"ARRAY\",\"description\":\"Individual contract clauses\",\"fields\":[{\"name\":\"title\",\"type\":\"TEXT\",\"description\":\"Clause heading or title\"},{\"name\":\"content\",\"type\":\"TEXTAREA\",\"description\":\"Full text of the clause\"}]}]}",
        "files": {
          "fileValues": [
            {
              "fileInputMode": "url",
              "fileName": "contract.pdf",
              "fileUrl": "https://example.com/contracts/service-agreement.pdf"
            }
          ]
        }
      },
      "type": "n8n-nodes-iterationlayer.iterationLayer",
      "typeVersion": 1,
      "position": [
        500,
        300
      ],
      "id": "f6a7b8c9-d0e1-2345-fabc-456789012345",
      "name": "Extract Data",
      "credentials": {
        "iterationLayerApi": {
          "name": "<your credential>"
        }
      }
    }
  ],
  "connections": {
    "Manual Trigger": {
      "main": [
        [
          {
            "node": "Extract Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  }
}