{
 "name": "RecipeAgents: Summarize a contract PDF with Claude",
 "nodes": [
  {
   "parameters": {
    "pollTimes": {
     "item": [
      {
       "mode": "everyMinute"
      }
     ]
    },
    "triggerOn": "specificFolder",
    "folderToWatch": {
     "__rl": true,
     "value": "",
     "mode": "list"
    },
    "event": "fileCreated",
    "options": {}
   },
   "id": "8798cd83-22a3-4686-9fbc-a5735e4ace3d",
   "name": "Google Drive Trigger",
   "type": "n8n-nodes-base.googleDriveTrigger",
   "typeVersion": 1,
   "position": [
    240,
    300
   ]
  },
  {
   "parameters": {
    "operation": "download",
    "fileId": {
     "__rl": true,
     "value": "={{ $json.id }}",
     "mode": "id"
    },
    "options": {}
   },
   "id": "d0737a57-7d45-44f2-b3d0-dceb28ccc99e",
   "name": "Download PDF",
   "type": "n8n-nodes-base.googleDrive",
   "typeVersion": 3,
   "position": [
    500,
    300
   ]
  },
  {
   "parameters": {
    "resource": "text",
    "operation": "message",
    "modelId": {
     "__rl": true,
     "value": "claude-sonnet-5-5",
     "mode": "id"
    },
    "messages": {
     "values": [
      {
       "content": "You are helping someone who isn't a lawyer read a contract before signing. Read the attached PDF and write a plain-English summary under these headings:\nParties and what is being bought\nPrice and payment terms\nTerm, renewal and notice period\nHow either side can end it\nLiability, indemnity and caps\nUnusual or one-sided clauses\nQuestions to ask before signing\nUnder each heading, quote the key words and give the clause number, like (cl. 11.2). If the contract doesn't cover something, write 'Not stated'. Don't give legal advice and don't say whether to sign. Plain text, no tables.",
       "role": "user"
      }
     ]
    },
    "addAttachments": true,
    "attachmentsInputType": "binary",
    "binaryPropertyName": "data",
    "simplify": true,
    "options": {
     "includeMergedResponse": true,
     "maxTokens": 4000
    }
   },
   "id": "e0af9224-2b2b-4934-b05b-a58c8eac3e94",
   "name": "Claude: summarize",
   "type": "@n8n/n8n-nodes-langchain.anthropic",
   "typeVersion": 1,
   "position": [
    760,
    300
   ]
  },
  {
   "parameters": {
    "sendTo": "you@example.com",
    "subject": "=Contract summary: {{ $('Google Drive Trigger').item.json.name }}",
    "emailType": "text",
    "message": "={{ $json.merged_response }}",
    "options": {}
   },
   "id": "5720451c-dec7-4a1b-a4c3-abf1adcb7b77",
   "name": "Email me",
   "type": "n8n-nodes-base.gmail",
   "typeVersion": 2.1,
   "position": [
    1020,
    300
   ]
  },
  {
   "parameters": {
    "content": "## Summarize a contract PDF with Claude\nFrom recipeagents.usestarbase.com/recipes/contract-pdf-summary-claude\n\n1. Connect credentials on each node (Google Drive, Anthropic, Gmail).\n2. Pick your sheet/folder/channel and model.\n3. Run once with test data and check the output before activating.\nKeep a human check on anything customer-facing.",
    "height": 260,
    "width": 420
   },
   "id": "3d8ecbc6-cf0b-414b-b597-a16484059347",
   "name": "Read me",
   "type": "n8n-nodes-base.stickyNote",
   "typeVersion": 1,
   "position": [
    200,
    20
   ]
  }
 ],
 "connections": {
  "Google Drive Trigger": {
   "main": [
    [
     {
      "node": "Download PDF",
      "type": "main",
      "index": 0
     }
    ]
   ]
  },
  "Download PDF": {
   "main": [
    [
     {
      "node": "Claude: summarize",
      "type": "main",
      "index": 0
     }
    ]
   ]
  },
  "Claude: summarize": {
   "main": [
    [
     {
      "node": "Email me",
      "type": "main",
      "index": 0
     }
    ]
   ]
  }
 },
 "pinData": {},
 "active": false,
 "settings": {
  "executionOrder": "v1"
 },
 "meta": {
  "templateCredsSetupCompleted": false
 },
 "tags": []
}