{"workflow":{"id":14320,"name":"Detect and mask PII for GDPR-safe AI document analysis with Anthropic and PostgreSQL","views":20,"recentViews":1,"totalViews":20,"createdAt":"2026-03-25T15:24:24.256Z","description":"## Overview\n\nThis workflow enables GDPR-compliant document processing by detecting, masking, and securely handling personally identifiable information (PII) before AI analysis.\n\nIt ensures that sensitive data is never exposed to AI systems by replacing it with tokens, while still allowing controlled re-injection of original values when permitted. The workflow also maintains full audit logs for compliance and traceability.\n\n---\n\n## How It Works\n\n1. **Document Upload & Configuration**  \n   Receives documents via webhook and initializes configuration such as document ID, thresholds, and database tables.\n\n2. **Text Extraction**  \n   Extracts raw text from uploaded documents for processing.\n\n3. **Multi-Detector PII Detection**  \n   Detects emails, phone numbers, ID numbers, and addresses using regex and AI-based detection.\n\n4. **PII Aggregation & Conflict Resolution**  \n   Merges detections, resolves overlaps, removes duplicates, and builds a unified PII map.\n\n5. **Tokenization & Vault Storage**  \n   Replaces sensitive data with secure tokens and stores original values in a database vault.\n\n6. **Masking & Validation**  \n   Generates masked text and verifies that all PII has been successfully removed before AI processing.\n\n7. **AI Processing (Masked Data)**  \n   Processes the document using AI while preserving tokens to prevent exposure of sensitive information.\n\n8. **Re-Injection Controller**  \n   Determines which fields are allowed to restore original PII based on permissions.\n\n9. **Secure Retrieval & Restoration**  \n   Retrieves original values from the vault and restores them only where permitted.\n\n10. **Audit Logging**  \n   Stores metadata, detected PII types, and re-injection events for compliance tracking.\n\n11. **Error Handling & Alerts**  \n   Blocks processing and triggers alerts if masking fails or compliance rules are violated.\n\n---\n\n## Setup Instructions\n\n1. Activate the webhook and upload a document (PDF or supported file)  \n2. Configure AI credentials (Anthropic / OpenAI)  \n3. Set database credentials for PII vault and audit logs  \n4. Adjust detection thresholds and compliance settings if needed  \n5. Execute the workflow and review outputs and logs  \n\n---\n\n## Use Cases\n\n- GDPR-compliant document processing pipelines  \n- Secure AI document analysis with PII protection  \n- Automated redaction and tokenization systems  \n- Financial, legal, or healthcare document processing  \n- Privacy-first AI workflows for sensitive data  \n\n---\n\n## Requirements\n\n- n8n (latest version recommended)  \n- Anthropic or OpenAI API credentials  \n- PostgreSQL (or compatible database) for vault and audit logs  \n- Input documents (PDF or text-based files)  ","workflow":{"meta":{"instanceId":"48aac30adfc5487a33ef16e0e958096f27cef40df3ed0febcbe1ca199e789786"},"nodes":[{"id":"509fea67-c604-42e9-abc9-ce599ad31da8","name":"Document Upload Webhook","type":"n8n-nodes-base.webhook","position":[-2480,448],"webhookId":"c1520de7-cbb8-4219-9b7f-94215dc5c899","parameters":{"path":"gdpr-document-upload","options":{"rawBody":true},"httpMethod":"POST","responseMode":"lastNode"},"typeVersion":2.1},{"id":"2d5bcfdf-1489-43ad-8504-87f6a3db157b","name":"Workflow Configuration","type":"n8n-nodes-base.set","position":[-2240,448],"parameters":{"options":{},"assignments":{"assignments":[{"id":"id-1","name":"documentId","type":"string","value":"={{ $now.toISO() }}"},{"id":"id-2","name":"confidenceThreshold","type":"number","value":0.8},{"id":"id-3","name":"vaultTable","type":"string","value":"pii_vault"},{"id":"id-4","name":"auditTable","type":"string","value":"pii_audit_log"}]},"includeOtherFields":true},"typeVersion":3.4},{"id":"b3a269ce-b37e-4541-a87f-e5a0b4dae12d","name":"Email Detector","type":"n8n-nodes-base.code","position":[-1632,160],"parameters":{"jsCode":"// Email Detector - Extract all email addresses from OCR text\nconst items = $input.all();\nconst results = [];\n\n// Email regex pattern with domain validation\nconst emailRegex = /\\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\\.[A-Z|a-z]{2,}\\b/g;\n\nfor (const item of items) {\n  const text = item.json.text || '';\n  const detectedEmails = [];\n  \n  let match;\n  while ((match = emailRegex.exec(text)) !== null) {\n    detectedEmails.push({\n      value: match[0],\n      type: 'email',\n      start_pos: match.index,\n      end_pos: match.index + match[0].length,\n      confidence: 1.0\n    });\n  }\n  \n  results.push({\n    json: {\n      detections: detectedEmails,\n      detector: 'email',\n      original_text: text\n    }\n  });\n}\n\nreturn results;"},"typeVersion":2},{"id":"b6ebdf9f-f3de-4a80-beb4-f726821403f5","name":"Phone Detector","type":"n8n-nodes-base.code","position":[-1632,352],"parameters":{"jsCode":"// Phone number detection with country-aware patterns\nconst items = $input.all();\nconst results = [];\n\n// Get the extracted text from OCR node\nfor (const item of items) {\n  const text = item.json.text || '';\n  \n  // Comprehensive phone number patterns for various countries\n  // Matches formats like: +1234567890, +1234567890, (555) 123-4567, etc.\n  const phonePatterns = [\n    // International format with country code\n    /\\+\\d{1,3}[\\s.-]?\\(?\\d{1,4}\\)?[\\s.-]?\\d{1,4}[\\s.-]?\\d{1,4}[\\s.-]?\\d{1,9}/g,\n    // US/Canada format with parentheses\n    /\\(?\\d{3}\\)?[\\s.-]?\\d{3}[\\s.-]?\\d{4}/g,\n    // General format with separators\n    /\\d{3,4}[\\s.-]\\d{3,4}[\\s.-]\\d{3,4}/g\n  ];\n  \n  const detectedPhones = [];\n  const seenPhones = new Set();\n  \n  for (const pattern of phonePatterns) {\n    let match;\n    while ((match = pattern.exec(text)) !== null) {\n      const phoneValue = match[0];\n      \n      // Avoid duplicates\n      if (!seenPhones.has(phoneValue)) {\n        seenPhones.add(phoneValue);\n        \n        detectedPhones.push({\n          value: phoneValue,\n          type: 'phone',\n          start_pos: match.index,\n          end_pos: match.index + phoneValue.length,\n          confidence: 0.95\n        });\n      }\n    }\n  }\n  \n  // Return results for this item\n  if (detectedPhones.length > 0) {\n    results.push({\n      json: {\n        detected_pii: detectedPhones,\n        original_text: text,\n        detection_type: 'phone',\n        count: detectedPhones.length\n      }\n    });\n  }\n}\n\n// If no phones detected, return empty result\nif (results.length === 0) {\n  return [{\n    json: {\n      detected_pii: [],\n      detection_type: 'phone',\n      count: 0\n    }\n  }];\n}\n\nreturn results;"},"typeVersion":2},{"id":"024b8041-4754-4318-86e5-957b877ba894","name":"ID Number Detector","type":"n8n-nodes-base.code","position":[-1632,544],"parameters":{"jsCode":"// ID Number Detector - Detects SSN, PAN, License Numbers, Bank Account Numbers\n// Returns array of objects with value, type, start_pos, end_pos, confidence\n\nconst items = $input.all();\nconst results = [];\n\nfor (const item of items) {\n  const text = item.json.extractedText || item.json.text || '';\n  const detections = [];\n  \n  // SSN Pattern (XXX-XX-XXXX or XXXXXXXXX)\n  const ssnPattern = /\\b(?:\\d{3}-\\d{2}-\\d{4}|\\d{9})\\b/g;\n  let match;\n  \n  while ((match = ssnPattern.exec(text)) !== null) {\n    const value = match[0];\n    // Basic validation: not all zeros, not sequential\n    const digits = value.replace(/-/g, '');\n    if (digits !== '+1234567890' && digits !== '123456789') {\n      detections.push({\n        value: value,\n        type: 'id_number',\n        subtype: 'ssn',\n        start_pos: match.index,\n        end_pos: match.index + value.length,\n        confidence: 0.9\n      });\n    }\n  }\n  \n  // PAN (Permanent Account Number - India) Pattern (AAAAA9999A)\n  const panPattern = /\\b[A-Z]{5}[0-9]{4}[A-Z]\\b/g;\n  \n  while ((match = panPattern.exec(text)) !== null) {\n    const value = match[0];\n    detections.push({\n      value: value,\n      type: 'id_number',\n      subtype: 'pan',\n      start_pos: match.index,\n      end_pos: match.index + value.length,\n      confidence: 0.9\n    });\n  }\n  \n  // Driver's License Pattern (varies by region, common formats)\n  // US format: 1-2 letters followed by 6-8 digits\n  const licensePattern = /\\b[A-Z]{1,2}[0-9]{6,8}\\b/g;\n  \n  while ((match = licensePattern.exec(text)) !== null) {\n    const value = match[0];\n    detections.push({\n      value: value,\n      type: 'id_number',\n      subtype: 'drivers_license',\n      start_pos: match.index,\n      end_pos: match.index + value.length,\n      confidence: 0.9\n    });\n  }\n  \n  // Bank Account Number Pattern (8-17 digits)\n  const bankAccountPattern = /\\b[0-9]{8,17}\\b/g;\n  \n  while ((match = bankAccountPattern.exec(text)) !== null) {\n    const value = match[0];\n    // Avoid false positives by checking it's not already detected as SSN\n    const isSSN = detections.some(d => d.subtype === 'ssn' && d.value.replace(/-/g, '') === value);\n    if (!isSSN) {\n      detections.push({\n        value: value,\n        type: 'id_number',\n        subtype: 'bank_account',\n        start_pos: match.index,\n        end_pos: match.index + value.length,\n        confidence: 0.9\n      });\n    }\n  }\n  \n  // IBAN Pattern (International Bank Account Number)\n  const ibanPattern = /\\b[A-Z]{2}[0-9]{2}[A-Z0-9]{11,30}\\b/g;\n  \n  while ((match = ibanPattern.exec(text)) !== null) {\n    const value = match[0];\n    detections.push({\n      value: value,\n      type: 'id_number',\n      subtype: 'iban',\n      start_pos: match.index,\n      end_pos: match.index + value.length,\n      confidence: 0.9\n    });\n  }\n  \n  results.push({\n    json: {\n      detections: detections,\n      originalText: text,\n      detectionCount: detections.length\n    }\n  });\n}\n\nreturn results;"},"typeVersion":2},{"id":"66ab913d-3b63-4f75-8a1b-8044f9d87de5","name":"Address Detector AI","type":"@n8n/n8n-nodes-langchain.agent","position":[-1696,832],"parameters":{"text":"={{ $json.text }}","options":{"systemMessage":"You are a PII detection specialist. Analyze the provided text and identify all physical addresses (street, city, state, postal code, country). Return each address found with its position in the text and a confidence score between 0 and 1."},"promptType":"define","hasOutputParser":true},"typeVersion":3},{"id":"e98b7074-76d6-47ee-8ef2-675f3bd0072f","name":"Anthropic Chat Model","type":"@n8n/n8n-nodes-langchain.lmChatAnthropic","position":[-1680,1056],"parameters":{"model":{"__rl":true,"mode":"list","value":"claude-sonnet-4-5-20250929","cachedResultName":"Claude Sonnet 4.5"},"options":{}},"typeVersion":1.3},{"id":"a62f38ce-f36f-44b6-8779-300ed5696de7","name":"Address Output Parser","type":"@n8n/n8n-nodes-langchain.outputParserStructured","position":[-1552,1056],"parameters":{"schemaType":"manual","inputSchema":"{\n\t\"type\": \"object\",\n\t\"properties\": {\n\t\t\"addresses\": {\n\t\t\t\"type\": \"array\",\n\t\t\t\"items\": {\n\t\t\t\t\"type\": \"object\",\n\t\t\t\t\"properties\": {\n\t\t\t\t\t\"value\": {\n\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t},\n\t\t\t\t\t\"type\": {\n\t\t\t\t\t\t\"type\": \"string\",\n\t\t\t\t\t\t\"enum\": [\"address\"]\n\t\t\t\t\t},\n\t\t\t\t\t\"start_pos\": {\n\t\t\t\t\t\t\"type\": \"number\"\n\t\t\t\t\t},\n\t\t\t\t\t\"end_pos\": {\n\t\t\t\t\t\t\"type\": \"number\"\n\t\t\t\t\t},\n\t\t\t\t\t\"confidence\": {\n\t\t\t\t\t\t\"type\": \"number\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t\"required\": [\"value\", \"type\", \"start_pos\", \"end_pos\", \"confidence\"]\n\t\t\t}\n\t\t}\n\t},\n\t\"required\": [\"addresses\"]\n}"},"typeVersion":1.3},{"id":"20e85e22-f4bd-4f36-9c8d-a035bd4ac003","name":"Merge PII Detections","type":"n8n-nodes-base.merge","position":[-1344,256],"parameters":{"numberInputs":4},"typeVersion":3.2},{"id":"38f16629-57c7-45df-ba10-d9ea4f82369a","name":"PII Consolidation & Conflict Resolver","type":"n8n-nodes-base.code","position":[-1104,288],"parameters":{"jsCode":"// PII Consolidation & Conflict Resolver\n// Merges all PII detections, resolves overlaps, deduplicates, and returns consolidated PII map\n\nconst allDetections = [];\n\n// Collect all PII detections from all input items\nfor (const item of $input.all()) {\n  if (item.json.detections && Array.isArray(item.json.detections)) {\n    allDetections.push(...item.json.detections);\n  }\n}\n\nconsole.log(`Total detections collected: ${allDetections.length}`);\n\n// Sort detections by start position for easier overlap detection\nallDetections.sort((a, b) => a.start - b.start);\n\n// Resolve overlaps: higher confidence wins, longer span preferred if confidence is equal\nconst resolvedDetections = [];\n\nfor (const detection of allDetections) {\n  let shouldAdd = true;\n  let indexToReplace = -1;\n  \n  for (let i = 0; i < resolvedDetections.length; i++) {\n    const existing = resolvedDetections[i];\n    \n    // Check for overlap\n    const hasOverlap = (\n      (detection.start >= existing.start && detection.start < existing.end) ||\n      (detection.end > existing.start && detection.end <= existing.end) ||\n      (detection.start <= existing.start && detection.end >= existing.end)\n    );\n    \n    if (hasOverlap) {\n      const detectionLength = detection.end - detection.start;\n      const existingLength = existing.end - existing.start;\n      \n      // Higher confidence wins\n      if (detection.confidence > existing.confidence) {\n        indexToReplace = i;\n        break;\n      } else if (detection.confidence === existing.confidence) {\n        // If confidence is equal, prefer longer span\n        if (detectionLength > existingLength) {\n          indexToReplace = i;\n          break;\n        } else {\n          shouldAdd = false;\n          break;\n        }\n      } else {\n        shouldAdd = false;\n        break;\n      }\n    }\n  }\n  \n  if (indexToReplace >= 0) {\n    resolvedDetections[indexToReplace] = detection;\n  } else if (shouldAdd) {\n    resolvedDetections.push(detection);\n  }\n}\n\nconsole.log(`Detections after overlap resolution: ${resolvedDetections.length}`);\n\n// Deduplicate exact matches (same type, value, and position)\nconst deduplicatedDetections = [];\nconst seen = new Set();\n\nfor (const detection of resolvedDetections) {\n  const key = `${detection.type}|${detection.value}|${detection.start}|${detection.end}`;\n  \n  if (!seen.has(key)) {\n    seen.add(key);\n    deduplicatedDetections.push(detection);\n  }\n}\n\nconsole.log(`Detections after deduplication: ${deduplicatedDetections.length}`);\n\n// Create consolidated PII map\nconst piiMap = deduplicatedDetections.map((detection, index) => ({\n  id: `pii_${index + 1}`,\n  type: detection.type,\n  value: detection.value,\n  start: detection.start,\n  end: detection.end,\n  confidence: detection.confidence,\n  source: detection.source || 'unknown'\n}));\n\n// Sort by start position for final output\npiiMap.sort((a, b) => a.start - b.start);\n\nreturn [\n  {\n    json: {\n      piiMap: piiMap,\n      totalDetections: piiMap.length,\n      originalText: $input.first().json.extractedText || $input.first().json.text || '',\n      timestamp: new Date().toISOString()\n    }\n  }\n];"},"typeVersion":2},{"id":"772fe712-8991-4aee-a79d-62477300c34a","name":"Tokenization & Vault Storage","type":"n8n-nodes-base.code","position":[-864,288],"parameters":{"jsCode":"// Tokenization & Vault Storage\n// Generates secure tokens for PII and prepares vault records\n\nconst items = $input.all();\nconst vaultRecords = [];\nconst tokenMap = {};\n\n// Helper function to generate random hash\nfunction generateHash(length = 4) {\n  const chars = '0123456789ABCDEF';\n  let hash = '';\n  for (let i = 0; i < length; i++) {\n    hash += chars.charAt(Math.floor(Math.random() * chars.length));\n  }\n  return hash;\n}\n\n// Process all PII items from consolidated data\nfor (const item of items) {\n  const piiData = item.json.consolidatedPII || [];\n  const originalText = item.json.originalText || '';\n  const documentId = item.json.documentId || item.json.document_id || 'unknown';\n  \n  for (const pii of piiData) {\n    const type = pii.type.toUpperCase();\n    const originalValue = pii.value;\n    const hash = generateHash(4);\n    const token = `<<${type}_${hash}>>`;\n    \n    // Create vault record\n    vaultRecords.push({\n      token: token,\n      original_value: originalValue,\n      type: type,\n      document_id: documentId,\n      created_at: new Date().toISOString()\n    });\n    \n    // Store token mapping for text replacement\n    tokenMap[originalValue] = token;\n  }\n}\n\n// Generate masked text by replacing all PII with tokens\nlet maskedText = items[0]?.json?.originalText || '';\nfor (const [originalValue, token] of Object.entries(tokenMap)) {\n  // Use global replace to handle multiple occurrences\n  const regex = new RegExp(originalValue.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&'), 'g');\n  maskedText = maskedText.replace(regex, token);\n}\n\nreturn [{\n  json: {\n    vaultRecords: vaultRecords,\n    tokenMap: tokenMap,\n    maskedText: maskedText,\n    documentId: items[0]?.json?.documentId || items[0]?.json?.document_id || 'unknown',\n    originalText: items[0]?.json?.originalText || '',\n    totalTokensGenerated: vaultRecords.length\n  }\n}];"},"typeVersion":2},{"id":"b47316b1-0af7-4008-879d-3e6cb8e9bbd5","name":"Store Tokens in Vault","type":"n8n-nodes-base.postgres","position":[-688,288],"parameters":{"table":{"__rl":true,"mode":"name","value":"={{ $('Workflow Configuration').first().json.vaultTable }}"},"schema":{"__rl":true,"mode":"list","value":"public"},"columns":{"value":{"type":"={{ $json.type }}","token":"YOUR_CREDENTIAL_HERE","created_at":"={{ $json.created_at }}","document_id":"={{ $json.document_id }}","original_value":"={{ $json.original_value }}"},"mappingMode":"defineBelow"},"options":{}},"typeVersion":2.6},{"id":"af0a7c94-8163-438d-a6c5-aa8f6f7b9087","name":"Generate Masked Text","type":"n8n-nodes-base.code","position":[-448,288],"parameters":{"jsCode":"// Generate Masked Text - Replace PII with tokens\nconst items = $input.all();\n\nif (items.length === 0) {\n  return [{\n    json: {\n      masked_text: '',\n      token_count: 0,\n      masking_success: false,\n      error: 'No input items'\n    }\n  }];\n}\n\n// Get the original text from OCR Extract Text node\nconst ocrData = $('Extract Text').first().json;\nlet originalText = ocrData.text || '';\n\n// Get the tokenized PII data from Store Tokens in Vault node\nconst vaultData = $('Store Tokens in Vault').all();\n\nif (!vaultData || vaultData.length === 0) {\n  return [{\n    json: {\n      masked_text: originalText,\n      token_count: 0,\n      masking_success: false,\n      error: 'No tokenized data available'\n    }\n  }];\n}\n\nlet maskedText = originalText;\nlet tokenCount = 0;\nlet allReplacementsSucceeded = true;\nconst replacements = [];\n\n// Process each tokenized PII item\nfor (const item of vaultData) {\n  const piiData = item.json;\n  \n  if (piiData.original_value && piiData.token) {\n    const originalValue = piiData.original_value;\n    const token = piiData.token;\n    \n    // Check if the original value exists in the text\n    if (maskedText.includes(originalValue)) {\n      // Replace all occurrences of the original value with the token\n      const regex = new RegExp(originalValue.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&'), 'g');\n      const beforeLength = maskedText.length;\n      maskedText = maskedText.replace(regex, token);\n      const afterLength = maskedText.length;\n      \n      // Count successful replacements\n      if (beforeLength !== afterLength || maskedText.includes(token)) {\n        tokenCount++;\n        replacements.push({\n          original: originalValue,\n          token: token,\n          type: piiData.pii_type || 'unknown',\n          replaced: true\n        });\n      } else {\n        allReplacementsSucceeded = false;\n        replacements.push({\n          original: originalValue,\n          token: token,\n          type: piiData.pii_type || 'unknown',\n          replaced: false\n        });\n      }\n    } else {\n      // Original value not found in text\n      allReplacementsSucceeded = false;\n      replacements.push({\n        original: originalValue,\n        token: token,\n        type: piiData.pii_type || 'unknown',\n        replaced: false,\n        reason: 'Value not found in text'\n      });\n    }\n  }\n}\n\n// Return the masked text with metadata\nreturn [{\n  json: {\n    masked_text: maskedText,\n    original_text: originalText,\n    token_count: tokenCount,\n    masking_success: allReplacementsSucceeded && tokenCount > 0,\n    replacements: replacements,\n    timestamp: new Date().toISOString()\n  }\n}];"},"typeVersion":2},{"id":"bc397644-596a-4577-bbfc-1b07e642c8bd","name":"AI Processing (Masked Data)","type":"@n8n/n8n-nodes-langchain.agent","position":[0,-80],"parameters":{"text":"={{ $json.masked_text }}","options":{"systemMessage":"You are a document processing AI. Extract structured information from the provided document. IMPORTANT: You are working with masked data where PII has been replaced with tokens like <<EMAIL_7F3A>>. Process the document normally and preserve these tokens in your output exactly as they appear."},"promptType":"define","hasOutputParser":true},"typeVersion":3},{"id":"6635ccf1-cf62-4d25-9380-82f069f03ac4","name":"AI Processing Model","type":"@n8n/n8n-nodes-langchain.lmChatAnthropic","position":[-48,160],"parameters":{"model":{"__rl":true,"mode":"list","value":"claude-sonnet-4-5-20250929","cachedResultName":"Claude Sonnet 4.5"},"options":{}},"typeVersion":1.3},{"id":"38140b45-2819-4624-9205-3d6a34e57990","name":"AI Output Parser","type":"@n8n/n8n-nodes-langchain.outputParserStructured","position":[176,176],"parameters":{"schemaType":"manual","inputSchema":"{\n\t\"type\": \"object\",\n\t\"properties\": {\n\t\t\"documentType\": {\n\t\t\t\"type\": \"string\",\n\t\t\t\"description\": \"Type of document processed (e.g., invoice, contract, form)\"\n\t\t},\n\t\t\"summary\": {\n\t\t\t\"type\": \"string\",\n\t\t\t\"description\": \"Brief summary of the document content\"\n\t\t},\n\t\t\"keyEntities\": {\n\t\t\t\"type\": \"array\",\n\t\t\t\"items\": {\n\t\t\t\t\"type\": \"object\",\n\t\t\t\t\"properties\": {\n\t\t\t\t\t\"entityType\": {\n\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t},\n\t\t\t\t\t\"value\": {\n\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"description\": \"Key entities extracted from the document\"\n\t\t},\n\t\t\"dates\": {\n\t\t\t\"type\": \"array\",\n\t\t\t\"items\": {\n\t\t\t\t\"type\": \"string\"\n\t\t\t},\n\t\t\t\"description\": \"Important dates found in the document\"\n\t\t},\n\t\t\"amounts\": {\n\t\t\t\"type\": \"array\",\n\t\t\t\"items\": {\n\t\t\t\t\"type\": \"object\",\n\t\t\t\t\"properties\": {\n\t\t\t\t\t\"currency\": {\n\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t},\n\t\t\t\t\t\"amount\": {\n\t\t\t\t\t\t\"type\": \"number\"\n\t\t\t\t\t},\n\t\t\t\t\t\"description\": {\n\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"description\": \"Monetary amounts found in the document\"\n\t\t},\n\t\t\"processedData\": {\n\t\t\t\"type\": \"object\",\n\t\t\t\"description\": \"Additional processed information specific to document type\"\n\t\t}\n\t},\n\t\"required\": [\"documentType\", \"summary\"]\n}"},"typeVersion":1.3},{"id":"4ebcce26-37f1-4648-83a6-1b02a85a6b14","name":"Re-Injection Controller","type":"n8n-nodes-base.code","position":[400,96],"parameters":{"jsCode":"// Re-Injection Controller\n// Analyzes AI output, identifies fields requiring PII restoration,\n// extracts tokens, and prepares re-injection request\n\nconst items = $input.all();\nconst results = [];\n\nfor (const item of items) {\n  const aiOutput = item.json.aiOutput || item.json;\n  const fieldPermissions = item.json.fieldPermissions || {};\n  const tokensToRetrieve = [];\n  const reinjectionMap = {};\n  \n  // Define which fields should have PII restored based on permissions\n  // Fields marked as 'restore' or 'unmask' will have original PII restored\n  const fieldsToRestore = Object.keys(fieldPermissions).filter(\n    field => fieldPermissions[field] === 'restore' || fieldPermissions[field] === 'unmask'\n  );\n  \n  // Traverse AI output and identify token placeholders\n  function extractTokens(obj, path = '') {\n    for (const key in obj) {\n      const currentPath = path ? `${path}.${key}` : key;\n      const value = obj[key];\n      \n      if (typeof value === 'string') {\n        // Check if value contains token pattern (e.g., TOKEN_EMAIL_123, TOKEN_PHONE_456)\n        const tokenPattern = /TOKEN_([A-Z_]+)_([a-f0-9-]+)/g;\n        const matches = value.matchAll(tokenPattern);\n        \n        for (const match of matches) {\n          const fullToken = match[0];\n          const tokenType = match[1];\n          const tokenId = match[2];\n          \n          // Check if this field should be restored\n          const shouldRestore = fieldsToRestore.some(field => \n            currentPath.includes(field) || key === field\n          );\n          \n          if (shouldRestore) {\n            tokensToRetrieve.push({\n              token: fullToken,\n              tokenId: tokenId,\n              tokenType: tokenType,\n              field: currentPath,\n              originalValue: value\n            });\n            \n            if (!reinjectionMap[currentPath]) {\n              reinjectionMap[currentPath] = [];\n            }\n            reinjectionMap[currentPath].push(fullToken);\n          }\n        }\n      } else if (typeof value === 'object' && value !== null) {\n        extractTokens(value, currentPath);\n      }\n    }\n  }\n  \n  extractTokens(aiOutput);\n  \n  // Prepare output with re-injection instructions\n  results.push({\n    json: {\n      aiOutput: aiOutput,\n      tokensToRetrieve: tokensToRetrieve,\n      reinjectionMap: reinjectionMap,\n      fieldPermissions: fieldPermissions,\n      totalTokensFound: tokensToRetrieve.length,\n      fieldsToRestore: fieldsToRestore,\n      timestamp: new Date().toISOString(),\n      workflowExecutionId: $execution.id\n    }\n  });\n}\n\nreturn results;"},"typeVersion":2},{"id":"0600a96e-6d42-4f3f-8873-053e4bc165f8","name":"Retrieve Original Values","type":"n8n-nodes-base.postgres","position":[592,96],"parameters":{"table":{"__rl":true,"mode":"name","value":"={{ $('Workflow Configuration').first().json.vaultTable }}"},"where":{"values":[{"value":"={{ $('Re-Injection Controller').item.json.token }}","column":"token"}]},"schema":{"__rl":true,"mode":"list","value":"public"},"options":{},"operation":"select","returnAll":true},"typeVersion":2.6},{"id":"421b28cc-27c5-4657-ad05-18580a6fe572","name":"Restore Original PII","type":"n8n-nodes-base.code","position":[800,96],"parameters":{"jsCode":"// Restore Original PII - Replace tokens with original values from vault\n// Only restore PII for explicitly allowed fields based on re-injection policy\n\nconst aiOutput = $input.first().json;\nconst vaultData = $('Retrieve Original Values').all();\n\n// Create a map of tokens to original values\nconst tokenMap = {};\nvaultData.forEach(item => {\n  const data = item.json;\n  tokenMap[data.token] = {\n    originalValue: data.original_value,\n    piiType: data.pii_type,\n    allowedForReinjection: data.allowed_for_reinjection\n  };\n});\n\n// Function to recursively restore PII in objects\nfunction restorePII(obj) {\n  if (typeof obj === 'string') {\n    // Check if string contains tokens (format: [TOKEN_xxxxx])\n    const tokenRegex = /\\[TOKEN_[A-Z0-9]+\\]/g;\n    return obj.replace(tokenRegex, (token) => {\n      const tokenData = tokenMap[token];\n      if (tokenData && tokenData.allowedForReinjection) {\n        return tokenData.originalValue;\n      }\n      // Keep token if not allowed for re-injection\n      return token;\n    });\n  } else if (Array.isArray(obj)) {\n    return obj.map(item => restorePII(item));\n  } else if (obj !== null && typeof obj === 'object') {\n    const restored = {};\n    for (const key in obj) {\n      restored[key] = restorePII(obj[key]);\n    }\n    return restored;\n  }\n  return obj;\n}\n\n// Restore PII in the AI output\nconst restoredOutput = restorePII(aiOutput);\n\n// Create audit trail\nconst restoredFields = [];\nfor (const token in tokenMap) {\n  if (tokenMap[token].allowedForReinjection) {\n    restoredFields.push({\n      token: token,\n      piiType: tokenMap[token].piiType\n    });\n  }\n}\n\nreturn [\n  {\n    json: {\n      finalOutput: restoredOutput,\n      restoredFields: restoredFields,\n      restorationTimestamp: new Date().toISOString(),\n      totalTokensRestored: restoredFields.length\n    }\n  }\n];"},"typeVersion":2},{"id":"2c6f4f1e-4a06-4e1d-8b42-cc7900705149","name":"Store Audit Log","type":"n8n-nodes-base.postgres","position":[1024,96],"parameters":{"table":{"__rl":true,"mode":"name","value":"={{ $('Workflow Configuration').first().json.auditTable }}"},"schema":{"__rl":true,"mode":"list","value":"public"},"columns":{"value":{"actor":"system","timestamp":"={{ $json.timestamp }}","document_id":"={{ $json.document_id }}","token_count":"={{ $json.token_count }}","pii_types_detected":"={{ $json.pii_types_detected }}","ai_access_confirmed":true,"re_injection_events":"={{ $json.re_injection_events }}"},"schema":[],"mappingMode":"defineBelow","matchingColumns":[]},"options":{}},"typeVersion":2.6},{"id":"8da4b467-5509-4ebb-9c02-569ab4d641e6","name":"Masking Success Check","type":"n8n-nodes-base.if","position":[-224,288],"parameters":{"options":{},"conditions":{"options":{"leftValue":"","caseSensitive":false,"typeValidation":"loose"},"combinator":"and","conditions":[{"id":"id-1","operator":{"type":"boolean","operation":"equals"},"leftValue":"={{ $('Generate Masked Text').item.json.masking_success }}","rightValue":"true"}]}},"typeVersion":2.3},{"id":"0f13d421-974b-4be1-b63d-14f960285477","name":"Block AI Processing","type":"n8n-nodes-base.set","position":[32,656],"parameters":{"options":{},"assignments":{"assignments":[{"id":"id-1","name":"error","type":"string","value":"Masking failed - AI processing blocked"},{"id":"id-2","name":"status","type":"string","value":"BLOCKED"},{"id":"id-3","name":"requires_manual_review","type":"boolean","value":true}]}},"typeVersion":3.4},{"id":"a7569d7e-db56-4b12-9791-b706598c336a","name":"Send Alert Notification","type":"n8n-nodes-base.httpRequest","position":[272,656],"parameters":{"url":"<__PLACEHOLDER_VALUE__Alert webhook or notification endpoint URL__>","method":"POST","options":{},"sendBody":true,"bodyParameters":{"parameters":[{"name":"error_details","value":"={{ $json.error_details }}"},{"name":"document_id","value":"={{ $json.document_id }}"},{"name":"timestamp","value":"={{ $now.toISO() }}"}]}},"typeVersion":4.3},{"id":"77b63ba2-8ba4-405a-998c-bf223e7e9a1c","name":"Sticky Note1","type":"n8n-nodes-base.stickyNote","position":[-2544,304],"parameters":{"color":7,"width":422,"height":336,"content":"## Document Intake & Configuration\n\nReceives documents via webhook and initializes workflow settings such as document ID, confidence thresholds, and database table configuration."},"typeVersion":1},{"id":"8c88f2f3-b3e1-4c2d-a3ae-3f114abf5687","name":"Sticky Note2","type":"n8n-nodes-base.stickyNote","position":[-2096,304],"parameters":{"color":7,"width":326,"height":336,"content":"##  Text Extraction\n\nExtracts raw text from uploaded PDF or document files while preserving original content for downstream processing."},"typeVersion":1},{"id":"4e63dfbc-bfd9-4ca3-bd59-3e8203bd306d","name":"Sticky Note3","type":"n8n-nodes-base.stickyNote","position":[-1744,-48],"parameters":{"color":7,"width":326,"height":720,"content":"## Multi-Detector PII Detection\n\nIdentifies sensitive data including emails, phone numbers, IDs, and addresses using regex-based logic and AI-powered detection."},"typeVersion":1},{"id":"0693dde2-322f-460a-81ee-818fc47d9069","name":"Sticky Note4","type":"n8n-nodes-base.stickyNote","position":[-1792,688],"parameters":{"color":7,"width":486,"height":528,"content":"## Address Detection (AI-Powered)\n\nUses an AI model to identify physical addresses in text and returns structured results with location, position, and confidence for each detected address."},"typeVersion":1},{"id":"422a1021-f3ca-4548-9e36-edd8bcca935a","name":"Sticky Note5","type":"n8n-nodes-base.stickyNote","position":[-1392,48],"parameters":{"color":7,"width":214,"height":416,"content":"## PII Aggregation\n\nCombines outputs from multiple detectors into a unified dataset for further processing."},"typeVersion":1},{"id":"af88bf3a-0499-4e2c-a1c7-2701604aac83","name":"Sticky Note6","type":"n8n-nodes-base.stickyNote","position":[-1152,48],"parameters":{"color":7,"width":230,"height":416,"content":"## Conflict Resolution Engine\n\nResolves overlapping detections, prioritizes higher confidence matches, and removes duplicate PII entries."},"typeVersion":1},{"id":"dab87540-2c97-41af-895c-758a92ec7499","name":"Sticky Note7","type":"n8n-nodes-base.stickyNote","position":[368,-48],"parameters":{"color":7,"width":566,"height":352,"content":"## Re-Injection Controller\n\nDetermines which fields are allowed to restore original PII based on permissions and prepares retrieval requests and Fetches original sensitive values and Replaces tokens with original values only"},"typeVersion":1},{"id":"75e4b5f1-545c-40cf-8737-780eb2b79ead","name":"Sticky Note8","type":"n8n-nodes-base.stickyNote","position":[-144,-208],"parameters":{"color":7,"width":470,"height":336,"content":"## AI Processing (Safe Data)\n\nProcesses the masked document using AI while preserving tokens to prevent exposure of sensitive information."},"typeVersion":1},{"id":"15588210-d142-4328-83a2-cba8155a23ef","name":"Sticky Note9","type":"n8n-nodes-base.stickyNote","position":[960,-64],"parameters":{"color":7,"width":246,"height":368,"content":"## Audit Logging\n\nStores processing metadata, detected PII types, and re-injection events for compliance and traceability."},"typeVersion":1},{"id":"5050b4ea-ac25-43d9-9d3b-88b392e70636","name":"Sticky Note10","type":"n8n-nodes-base.stickyNote","position":[-16,528],"parameters":{"color":7,"width":454,"height":272,"content":"## Error Handling & Alerts\n\nBlocks AI processing and triggers alerts when masking fails or compliance rules are violated."},"typeVersion":1},{"id":"e6490d3e-4ed4-45f6-b851-3c57f6974863","name":"Sticky Note11","type":"n8n-nodes-base.stickyNote","position":[-896,48],"parameters":{"color":7,"width":358,"height":416,"content":"## Tokenization & Vault Storage\n\nReplaces detected PII with secure tokens and stores original values in a protected database vault."},"typeVersion":1},{"id":"0391e0e3-e5b1-4f7c-9e8e-8638bf9c3c35","name":"Sticky Note12","type":"n8n-nodes-base.stickyNote","position":[-512,48],"parameters":{"color":7,"width":278,"height":416,"content":"## Masking Validation\n\nEnsures all PII has been successfully masked and blocks further processing if any sensitive data remains exposed."},"typeVersion":1},{"id":"f3b40a67-5f75-4495-93cb-1f1939af6088","name":"Sticky Note13","type":"n8n-nodes-base.stickyNote","position":[-3232,192],"parameters":{"width":416,"height":512,"content":"##  GDPR-Compliant AI Document Processing Pipeline\n\nThis workflow securely processes documents by detecting and tokenizing PII, masking sensitive data before AI analysis, and selectively restoring original values with full audit logging to ensure privacy, security, and regulatory compliance.\n\n## Setup steps\n\n1. Activate the webhook and upload a document (PDF or supported file)  \n2. Configure AI credentials (Anthropic / OpenAI for detection and processing)  \n3. Set database credentials for PII vault and audit log storage  \n4. Adjust detection thresholds and compliance settings if needed  \n5. Execute workflow and review masked output, AI results, and audit logs  "},"typeVersion":1},{"id":"d1a3aad2-b91c-4551-851c-0c52035b89ef","name":"Extract Text","type":"n8n-nodes-base.extractFromFile","position":[-2032,448],"parameters":{"options":{"keepSource":"both"},"operation":"pdf"},"typeVersion":1.1}],"pinData":{},"connections":{"Extract Text":{"main":[[{"node":"Email Detector","type":"main","index":0},{"node":"Phone Detector","type":"main","index":0},{"node":"ID Number Detector","type":"main","index":0},{"node":"Address Detector AI","type":"main","index":0}]]},"Email Detector":{"main":[[{"node":"Merge PII Detections","type":"main","index":0}]]},"Phone Detector":{"main":[[{"node":"Merge PII Detections","type":"main","index":1}]]},"AI Output Parser":{"ai_outputParser":[[{"node":"AI Processing (Masked Data)","type":"ai_outputParser","index":0}]]},"ID Number Detector":{"main":[[{"node":"Merge PII Detections","type":"main","index":2}]]},"AI Processing Model":{"ai_languageModel":[[{"node":"AI Processing (Masked Data)","type":"ai_languageModel","index":0}]]},"Address Detector AI":{"main":[[{"node":"Merge PII Detections","type":"main","index":3}]]},"Block AI Processing":{"main":[[{"node":"Send Alert Notification","type":"main","index":0}]]},"Anthropic Chat Model":{"ai_languageModel":[[{"node":"Address Detector AI","type":"ai_languageModel","index":0}]]},"Generate Masked Text":{"main":[[{"node":"Masking Success Check","type":"main","index":0}]]},"Merge PII Detections":{"main":[[{"node":"PII Consolidation & Conflict Resolver","type":"main","index":0}]]},"Restore Original PII":{"main":[[{"node":"Store Audit Log","type":"main","index":0}]]},"Address Output Parser":{"ai_outputParser":[[{"node":"Address Detector AI","type":"ai_outputParser","index":0}]]},"Masking Success Check":{"main":[[{"node":"AI Processing (Masked Data)","type":"main","index":0}],[{"node":"Block AI Processing","type":"main","index":0}]]},"Store Tokens in Vault":{"main":[[{"node":"Generate Masked Text","type":"main","index":0}]]},"Workflow Configuration":{"main":[[{"node":"Extract Text","type":"main","index":0}]]},"Document Upload Webhook":{"main":[[{"node":"Workflow Configuration","type":"main","index":0}]]},"Re-Injection Controller":{"main":[[{"node":"Retrieve Original Values","type":"main","index":0}]]},"Retrieve Original Values":{"main":[[{"node":"Restore Original PII","type":"main","index":0}]]},"AI Processing (Masked Data)":{"main":[[{"node":"Re-Injection Controller","type":"main","index":0}]]},"Tokenization & Vault Storage":{"main":[[{"node":"Store Tokens in Vault","type":"main","index":0}]]},"PII Consolidation & Conflict Resolver":{"main":[[{"node":"Tokenization & Vault Storage","type":"main","index":0}]]}}},"lastUpdatedBy":1,"workflowInfo":{"nodeCount":37,"nodeTypes":{"n8n-nodes-base.if":{"count":1},"n8n-nodes-base.set":{"count":2},"n8n-nodes-base.code":{"count":8},"n8n-nodes-base.merge":{"count":1},"n8n-nodes-base.webhook":{"count":1},"n8n-nodes-base.postgres":{"count":3},"n8n-nodes-base.stickyNote":{"count":13},"n8n-nodes-base.httpRequest":{"count":1},"@n8n/n8n-nodes-langchain.agent":{"count":2},"n8n-nodes-base.extractFromFile":{"count":1},"@n8n/n8n-nodes-langchain.lmChatAnthropic":{"count":2},"@n8n/n8n-nodes-langchain.outputParserStructured":{"count":2}}},"status":"published","readyToDemo":null,"user":{"name":"ResilNext","username":"rnair1996","bio":"","verified":true,"links":[""],"avatar":"https://gravatar.com/avatar/c20bc6c3bcdf260fac3c28c556a8db661ee93670037a3ceb857e047851f6f438?r=pg&d=retro&size=200"},"nodes":[{"id":19,"icon":"file:httprequest.svg","name":"n8n-nodes-base.httpRequest","codex":{"data":{"alias":["API","Request","URL","Build","cURL"],"resources":{"generic":[{"url":"https://n8n.io/blog/2021-the-year-to-automate-the-new-you-with-n8n/","icon":"☀️","label":"2021: The Year to Automate the New You with n8n"},{"url":"https://n8n.io/blog/why-business-process-automation-with-n8n-can-change-your-daily-life/","icon":"🧬","label":"Why business process automation with n8n can change your daily life"},{"url":"https://n8n.io/blog/automatically-pulling-and-visualizing-data-with-n8n/","icon":"📈","label":"Automatically pulling and visualizing data with n8n"},{"url":"https://n8n.io/blog/learn-how-to-automatically-cross-post-your-content-with-n8n/","icon":"✍️","label":"Learn how to automatically cross-post your content with n8n"},{"url":"https://n8n.io/blog/automatically-adding-expense-receipts-to-google-sheets-with-telegram-mindee-twilio-and-n8n/","icon":"🧾","label":"Automatically Adding Expense Receipts to Google Sheets with Telegram, Mindee, Twilio, and n8n"},{"url":"https://n8n.io/blog/running-n8n-on-ships-an-interview-with-maranics/","icon":"🛳","label":"Running n8n on ships: An interview with Maranics"},{"url":"https://n8n.io/blog/what-are-apis-how-to-use-them-with-no-code/","icon":" 🪢","label":"What are APIs and how to use them with no code"},{"url":"https://n8n.io/blog/5-tasks-you-can-automate-with-notion-api/","icon":"⚡️","label":"5 tasks you can automate with the new Notion API "},{"url":"https://n8n.io/blog/world-poetry-day-workflow/","icon":"📜","label":"Celebrating World Poetry Day with a daily poem in Telegram"},{"url":"https://n8n.io/blog/automate-google-apps-for-productivity/","icon":"💡","label":"15 Google apps you can combine and automate to increase productivity"},{"url":"https://n8n.io/blog/automate-designs-with-bannerbear-and-n8n/","icon":"🎨","label":"Automate Designs with Bannerbear and n8n"},{"url":"https://n8n.io/blog/how-uproc-scraped-a-multi-page-website-with-a-low-code-workflow/","icon":" 🕸️","label":"How uProc scraped a multi-page website with a low-code workflow"},{"url":"https://n8n.io/blog/building-an-expense-tracking-app-in-10-minutes/","icon":"📱","label":"Building an expense tracking app in 10 minutes"},{"url":"https://n8n.io/blog/5-workflow-automations-for-mattermost-that-we-love-at-n8n/","icon":"🤖","label":"5 workflow automations for Mattermost that we love at n8n"},{"url":"https://n8n.io/blog/how-to-use-the-http-request-node-the-swiss-army-knife-for-workflow-automation/","icon":"🧰","label":"How to use the HTTP Request Node - The Swiss Army Knife for Workflow Automation"},{"url":"https://n8n.io/blog/learn-how-to-use-webhooks-with-mattermost-slash-commands/","icon":"🦄","label":"Learn how to use webhooks with Mattermost slash commands"},{"url":"https://n8n.io/blog/how-a-membership-development-manager-automates-his-work-and-investments/","icon":"📈","label":"How a Membership Development Manager automates his work and investments"},{"url":"https://n8n.io/blog/a-low-code-bitcoin-ticker-built-with-questdb-and-n8n-io/","icon":"📈","label":"A low-code bitcoin ticker built with QuestDB and n8n.io"},{"url":"https://n8n.io/blog/how-to-set-up-a-ci-cd-pipeline-with-no-code/","icon":"🎡","label":"How to set up a no-code CI/CD pipeline with GitHub and TravisCI"},{"url":"https://n8n.io/blog/automations-for-activists/","icon":"✨","label":"How Common Knowledge use workflow automation for activism"},{"url":"https://n8n.io/blog/creating-scheduled-text-affirmations-with-n8n/","icon":"🤟","label":"Creating scheduled text affirmations with n8n"},{"url":"https://n8n.io/blog/how-goomer-automated-their-operations-with-over-200-n8n-workflows/","icon":"🛵","label":"How Goomer automated their operations with over 200 n8n workflows"},{"url":"https://n8n.io/blog/aws-workflow-automation/","label":"7 no-code workflow automations for Amazon Web Services"}],"primaryDocumentation":[{"url":"https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.httprequest/"}]},"categories":["Development","Core Nodes"],"nodeVersion":"1.0","codexVersion":"1.0","subcategories":{"Core Nodes":["Helpers"]}}},"group":"[\"output\"]","defaults":{"name":"HTTP Request","color":"#0004F5"},"iconData":{"type":"file","fileBuffer":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA0MCA0MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik00MCAyMEM0MCA4Ljk1MzE0IDMxLjA0NjkgMCAyMCAwQzguOTUzMTQgMCAwIDguOTUzMTQgMCAyMEMwIDMxLjA0NjkgOC45NTMxNCA0MCAyMCA0MEMzMS4wNDY5IDQwIDQwIDMxLjA0NjkgNDAgMjBaTTIwIDM2Ljk0NThDMTguODg1MiAzNi45NDU4IDE3LjEzNzggMzUuOTY3IDE1LjQ5OTggMzIuNjk4NUMxNC43OTY0IDMxLjI5MTggMTQuMTk2MSAyOS41NDMxIDEzLjc1MjYgMjcuNjg0N0gyNi4xODk4QzI1LjgwNDUgMjkuNTQwMyAyNS4yMDQ0IDMxLjI5MDEgMjQuNTAwMiAzMi42OTg1QzIyLjg2MjIgMzUuOTY3IDIxLjExNDggMzYuOTQ1OCAyMCAzNi45NDU4Wk0xMi45MDY0IDIwQzEyLjkwNjQgMjEuNjA5NyAxMy4wMDg3IDIzLjE2NCAxMy4yMDAzIDI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MDEgMTAuNjIyNiAxMi4zMTUzWk0zLjA1NDE5IDIwQzMuMDU0MTkgMjEuNjAzIDMuMjc3NDMgMjMuMTU3NSAzLjY5NDg0IDI0LjYzMDVIMTAuMTIxN0M5Ljk0NjE5IDIzLjE0MiA5Ljg1MjIyIDIxLjU5NDMgOS44NTIyMiAyMEM5Ljg1MjIyIDE4LjQwNTcgOS45NDYxOSAxNi44NTggMTAuMTIxNyAxNS4zNjk1SDMuNjk0ODRDMy4yNzc0MyAxNi44NDI1IDMuMDU0MTkgMTguMzk3IDMuMDU0MTkgMjBaTTI2LjI3NjYgMzUuNzQyN0MyNy42MzY1IDMzLjYzOTMgMjguNzExIDMwLjg2OCAyOS4zNzc0IDI3LjY4NDdIMzUuMTA0NkMzMy4yNTEgMzEuMzMyMiAzMC4xMDY4IDM0LjIxNzkgMjYuMjc2NiAzNS43NDI3Wk0xMy43MjM0IDM1Ljc0MjdDOS44OTM2OSAzNC4yMTc5IDYuNzUxNTUgMzEuMzMyNCA0Ljg5MjkzIDI3LjY4NDdIMTAuNjIyNkMxMS4yODkgMzAuODY4IDEyLjM2MzUgMzMuNjM5MyAxMy43MjM0IDM1Ljc0MjdaIiBmaWxsPSIjM0E0MkU5Ii8+Cjwvc3ZnPgo="},"displayName":"HTTP Request","typeVersion":4,"nodeCategories":[{"id":5,"name":"Development"},{"id":9,"name":"Core Nodes"}]},{"id":20,"icon":"fa:map-signs","name":"n8n-nodes-base.if","codex":{"data":{"alias":["Router","Filter","Condition","Logic","Boolean","Branch"],"details":"The IF node can be used to implement binary conditional logic in your workflow. You can set up one-to-many conditions to evaluate each item of data being inputted into the node. That data will either evaluate to TRUE or FALSE and route out of the node accordingly.\n\nThis node has multiple types of conditions: Bool, String, Number, and Date & Time.","resources":{"generic":[{"url":"https://n8n.io/blog/learn-to-automate-your-factorys-incident-reporting-a-step-by-step-guide/","icon":"🏭","label":"Learn to Automate Your Factory's Incident Reporting: A Step by Step Guide"},{"url":"https://n8n.io/blog/2021-the-year-to-automate-the-new-you-with-n8n/","icon":"☀️","label":"2021: The Year to Automate the New You with n8n"},{"url":"https://n8n.io/blog/why-business-process-automation-with-n8n-can-change-your-daily-life/","icon":"🧬","label":"Why business process automation with n8n can change your daily life"},{"url":"https://n8n.io/blog/create-a-toxic-language-detector-for-telegram/","icon":"🤬","label":"Create a toxic language detector for Telegram in 4 step"},{"url":"https://n8n.io/blog/no-code-ecommerce-workflow-automations/","icon":"store","label":"6 e-commerce workflows to power up your Shopify s"},{"url":"https://n8n.io/blog/how-to-build-a-low-code-self-hosted-url-shortener/","icon":"🔗","label":"How to build a low-code, self-hosted URL shortener in 3 steps"},{"url":"https://n8n.io/blog/automate-your-data-processing-pipeline-in-9-steps-with-n8n/","icon":"⚙️","label":"Automate your data processing pipeline in 9 steps"},{"url":"https://n8n.io/blog/how-to-get-started-with-crm-automation-and-no-code-workflow-ideas/","icon":"👥","label":"How to get started with CRM automation (with 3 no-code workflow ideas"},{"url":"https://n8n.io/blog/5-tasks-you-can-automate-with-notion-api/","icon":"⚡️","label":"5 tasks you can automate with the new Notion API "},{"url":"https://n8n.io/blog/automate-google-apps-for-productivity/","icon":"💡","label":"15 Google apps you can combine and automate to increase productivity"},{"url":"https://n8n.io/blog/automation-for-maintainers-of-open-source-projects/","icon":"🏷️","label":"How to automatically manage contributions to open-source projects"},{"url":"https://n8n.io/blog/how-uproc-scraped-a-multi-page-website-with-a-low-code-workflow/","icon":" 🕸️","label":"How uProc scraped a multi-page website with a low-code workflow"},{"url":"https://n8n.io/blog/5-workflow-automations-for-mattermost-that-we-love-at-n8n/","icon":"🤖","label":"5 workflow automations for Mattermost that we love at n8n"},{"url":"https://n8n.io/blog/why-this-product-manager-loves-workflow-automation-with-n8n/","icon":"🧠","label":"Why this Product Manager loves workflow automation with n8n"},{"url":"https://n8n.io/blog/sending-automated-congratulations-with-google-sheets-twilio-and-n8n/","icon":"🙌","label":"Sending Automated Congratulations with Google Sheets, Twilio, and n8n "},{"url":"https://n8n.io/blog/how-to-set-up-a-ci-cd-pipeline-with-no-code/","icon":"🎡","label":"How to set up a no-code CI/CD pipeline with GitHub and TravisCI"},{"url":"https://n8n.io/blog/benefits-of-automation-and-n8n-an-interview-with-hubspots-hugh-durkin/","icon":"🎖","label":"Benefits of automation and n8n: An interview with HubSpot's Hugh Durkin"},{"url":"https://n8n.io/blog/aws-workflow-automation/","label":"7 no-code workflow automations for Amazon Web Services"}],"primaryDocumentation":[{"url":"https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.if/"}]},"categories":["Core Nodes"],"nodeVersion":"1.0","codexVersion":"1.0","subcategories":{"Core Nodes":["Flow"]}}},"group":"[\"transform\"]","defaults":{"name":"If","color":"#408000"},"iconData":{"icon":"map-signs","type":"icon"},"displayName":"If","typeVersion":2,"nodeCategories":[{"id":9,"name":"Core Nodes"}]},{"id":24,"icon":"file:merge.svg","name":"n8n-nodes-base.merge","codex":{"data":{"alias":["Join","Concatenate","Wait"],"resources":{"generic":[{"url":"https://n8n.io/blog/how-to-sync-data-between-two-systems/","icon":"🏬","label":"How to synchronize data between two systems (one-way vs. two-way sync"},{"url":"https://n8n.io/blog/supercharging-your-conference-registration-process-with-n8n/","icon":"🎫","label":"Supercharging your conference registration process with n8n"},{"url":"https://n8n.io/blog/migrating-community-metrics-to-orbit-using-n8n/","icon":"📈","label":"Migrating Community Metrics to Orbit using n8n"},{"url":"https://n8n.io/blog/build-your-own-virtual-assistant-with-n8n-a-step-by-step-guide/","icon":"👦","label":"Build your own virtual assistant with n8n: A step by step guide"},{"url":"https://n8n.io/blog/sending-automated-congratulations-with-google-sheets-twilio-and-n8n/","icon":"🙌","label":"Sending Automated Congratulations with Google Sheets, Twilio, and n8n "},{"url":"https://n8n.io/blog/aws-workflow-automation/","label":"7 no-code workflow automations for Amazon Web Services"}],"primaryDocumentation":[{"url":"https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.merge/"}]},"categories":["Core Nodes"],"nodeVersion":"1.0","codexVersion":"1.0","subcategories":{"Core Nodes":["Flow","Data Transformation"]}}},"group":"[\"transform\"]","defaults":{"name":"Merge"},"iconData":{"type":"file","fileBuffer":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTEyIiBoZWlnaHQ9IjUxMiIgdmlld0JveD0iMCAwIDUxMiA1MTIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMF8xMTc3XzUxOCkiPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTAgNDhDMCAyMS40OTAzIDIxLjQ5MDMgMCA0OCAwSDExMkMxMzguNTEgMCAxNjAgMjEuNDkwMyAxNjAgNDhWNTZIMTk2LjI1MkMyNDAuNDM1IDU2IDI3Ni4yNTIgOTEuODE3MiAyNzYuMjUyIDEzNlYxOTJDMjc2LjI1MiAyMTQuMDkxIDI5NC4xNjEgMjMyIDMxNi4yNTIgMjMySDM1MlYyMjRDMzUyIDE5Ny40OSAzNzMuNDkgMTc2IDQwMCAxNzZINDY0QzQ5MC41MSAxNzYgNTEyIDE5Ny40OSA1MTIgMjI0VjI4OEM1MTIgMzE0LjUxIDQ5MC41MSAzMzYgNDY0IDMzNkg0MDBDMzczLjQ5IDMzNiAzNTIgMzE0LjUxIDM1MiAyODhWMjgwSDMxNi4yNTJDMjk0LjE2MSAyODAgMjc2LjI1MiAyOTcuOTA5IDI3Ni4yNTIgMzIwVjM3NkMyNzYuMjUyIDQyMC4xODMgMjQwLjQzNSA0NTYgMTk2LjI1MiA0NTZIMTYwVjQ2NEMxNjAgNDkwLjUxIDEzOC41MSA1MTIgMTEyIDUxMkg0OEMyMS40OTAzIDUxMiAwIDQ5MC41MSAwIDQ2NFY0MDBDMCAzNzMuNDkgMjEuNDkwMyAzNTIgNDggMzUySDExMkMxMzguNTEgMzUyIDE2MCAzNzMuNDkgM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IGhlaWdodD0iNTEyIiBmaWxsPSJ3aGl0ZSIvPgo8L2NsaXBQYXRoPgo8L2RlZnM+Cjwvc3ZnPgo="},"displayName":"Merge","typeVersion":3,"nodeCategories":[{"id":9,"name":"Core Nodes"}]},{"id":30,"icon":"file:postgres.svg","name":"n8n-nodes-base.postgres","codex":{"data":{"resources":{"generic":[{"url":"https://n8n.io/blog/love-at-first-sight-ricardos-n8n-journey/","icon":"❤️","label":"Love at first sight: Ricardo’s n8n journey"},{"url":"https://n8n.io/blog/why-i-chose-n8n-over-zapier-in-2020/","icon":"😍","label":"Why I chose n8n over Zapier in 2020"},{"url":"https://n8n.io/blog/database-monitoring-and-alerting-with-n8n/","icon":"📡","label":"Database Monitoring and Alerting with n8n"},{"url":"https://n8n.io/blog/running-n8n-on-ships-an-interview-with-maranics/","icon":"🛳","label":"Running n8n on ships: An interview with Maranics"},{"url":"https://n8n.io/blog/automate-your-data-processing-pipeline-in-9-steps-with-n8n/","icon":"⚙️","label":"Automate your data processing pipeline in 9 steps"},{"url":"https://n8n.io/blog/how-honest-burgers-use-automation-to-save-100k-per-year/","icon":"🍔","label":"How Honest Burgers Use Automation to Save $100k per year"}],"primaryDocumentation":[{"url":"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.postgres/"}],"credentialDocumentation":[{"url":"https://docs.n8n.io/integrations/builtin/credentials/postgres/"}]},"categories":["Development","Data & Storage"],"nodeVersion":"1.0","codexVersion":"1.0"}},"group":"[\"input\"]","defaults":{"name":"Postgres"},"iconData":{"type":"file","fileBuffer":"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBmaWxsPSIjZmZmIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIHN0cm9rZT0iIzAwMCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZ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5IDEuMjA4LTMuMzMyIDUuNDIyLS4xNjcgMi4xMTUtMS4zNTYgMTIuMDE2LTEuOTU5IDE1LjUxNC0uNzk3IDQuNjIxLTIuNDk3IDYuMzQzLTcuMjc5IDcuMzY4em0yMC42OTMtMjMuNjhjLTEuMjk0LjYwMS0zLjQ2IDEuMDUyLTUuNTE4IDEuMTQ4LTIuMjczLjEwNy0zLjQzLS4yNTUtMy43MDItLjQ3Ny0uMTI4LTIuNjI2Ljg1LTIuOTAxIDEuODg0LTMuMTkxLjE2My0uMDQ2LjMyMS0uMDkuNDc0LS4xNDRhNCA0IDAgMCAwIC4zMTMuMjNjMS44MjcgMS4yMDYgNS4wODUgMS4zMzYgOS42ODUuMzg2bC4wNS0uMDFjLS42Mi41OC0xLjY4MiAxLjM1OS0zLjE4NyAyLjA1OHoiLz48L2c+PC9zeW1ib2w+PC9zdmc+"},"displayName":"Postgres","typeVersion":3,"nodeCategories":[{"id":3,"name":"Data & Storage"},{"id":5,"name":"Development"}]},{"id":38,"icon":"fa:pen","name":"n8n-nodes-base.set","codex":{"data":{"alias":["Set","JS","JSON","Filter","Transform","Map"],"resources":{"generic":[{"url":"https://n8n.io/blog/learn-to-automate-your-factorys-incident-reporting-a-step-by-step-guide/","icon":"🏭","label":"Learn to Automate Your Factory's Incident Reporting: A Step by Step Guide"},{"url":"https://n8n.io/blog/2021-the-year-to-automate-the-new-you-with-n8n/","icon":"☀️","label":"2021: The Year to Automate the New You with n8n"},{"url":"https://n8n.io/blog/automatically-pulling-and-visualizing-data-with-n8n/","icon":"📈","label":"Automatically pulling and visualizing data with n8n"},{"url":"https://n8n.io/blog/database-monitoring-and-alerting-with-n8n/","icon":"📡","label":"Database Monitoring and Alerting with n8n"},{"url":"https://n8n.io/blog/automatically-adding-expense-receipts-to-google-sheets-with-telegram-mindee-twilio-and-n8n/","icon":"🧾","label":"Automatically Adding Expense Receipts to Google Sheets with Telegram, Mindee, Twilio, and n8n"},{"url":"https://n8n.io/blog/no-code-ecommerce-workflow-automations/","icon":"store","label":"6 e-commerce workflows to power up your Shopify s"},{"url":"https://n8n.io/blog/how-to-build-a-low-code-self-hosted-url-shortener/","icon":"🔗","label":"How to build a low-code, self-hosted URL shortener in 3 steps"},{"url":"https://n8n.io/blog/automate-your-data-processing-pipeline-in-9-steps-with-n8n/","icon":"⚙️","label":"Automate your data processing pipeline in 9 steps"},{"url":"https://n8n.io/blog/how-to-get-started-with-crm-automation-and-no-code-workflow-ideas/","icon":"👥","label":"How to get started with CRM automation (with 3 no-code workflow ideas"},{"url":"https://n8n.io/blog/5-tasks-you-can-automate-with-notion-api/","icon":"⚡️","label":"5 tasks you can automate with the new Notion API "},{"url":"https://n8n.io/blog/automate-google-apps-for-productivity/","icon":"💡","label":"15 Google apps you can combine and automate to increase productivity"},{"url":"https://n8n.io/blog/how-uproc-scraped-a-multi-page-website-with-a-low-code-workflow/","icon":" 🕸️","label":"How uProc scraped a multi-page website with a low-code workflow"},{"url":"https://n8n.io/blog/building-an-expense-tracking-app-in-10-minutes/","icon":"📱","label":"Building an expense tracking app in 10 minutes"},{"url":"https://n8n.io/blog/the-ultimate-guide-to-automate-your-video-collaboration-with-whereby-mattermost-and-n8n/","icon":"📹","label":"The ultimate guide to automate your video collaboration with Whereby, Mattermost, and n8n"},{"url":"https://n8n.io/blog/5-workflow-automations-for-mattermost-that-we-love-at-n8n/","icon":"🤖","label":"5 workflow automations for Mattermost that we love at n8n"},{"url":"https://n8n.io/blog/learn-to-build-powerful-api-endpoints-using-webhooks/","icon":"🧰","label":"Learn to Build Powerful API Endpoints Using Webhooks"},{"url":"https://n8n.io/blog/how-a-membership-development-manager-automates-his-work-and-investments/","icon":"📈","label":"How a Membership Development Manager automates his work and investments"},{"url":"https://n8n.io/blog/a-low-code-bitcoin-ticker-built-with-questdb-and-n8n-io/","icon":"📈","label":"A low-code bitcoin ticker built with QuestDB and n8n.io"},{"url":"https://n8n.io/blog/how-to-set-up-a-ci-cd-pipeline-with-no-code/","icon":"🎡","label":"How to set up a no-code CI/CD pipeline with GitHub and TravisCI"},{"url":"https://n8n.io/blog/benefits-of-automation-and-n8n-an-interview-with-hubspots-hugh-durkin/","icon":"🎖","label":"Benefits of automation and n8n: An interview with HubSpot's Hugh Durkin"},{"url":"https://n8n.io/blog/how-goomer-automated-their-operations-with-over-200-n8n-workflows/","icon":"🛵","label":"How Goomer automated their operations with over 200 n8n workflows"},{"url":"https://n8n.io/blog/aws-workflow-automation/","label":"7 no-code workflow automations for Amazon Web Services"}],"primaryDocumentation":[{"url":"https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.set/"}]},"categories":["Core Nodes"],"nodeVersion":"1.0","codexVersion":"1.0","subcategories":{"Core Nodes":["Data Transformation"]}}},"group":"[\"input\"]","defaults":{"name":"Edit Fields"},"iconData":{"icon":"pen","type":"icon"},"displayName":"Edit Fields (Set)","typeVersion":3,"nodeCategories":[{"id":9,"name":"Core Nodes"}]},{"id":47,"icon":"file:webhook.svg","name":"n8n-nodes-base.webhook","codex":{"data":{"alias":["HTTP","API","Build","WH"],"resources":{"generic":[{"url":"https://n8n.io/blog/learn-how-to-automatically-cross-post-your-content-with-n8n/","icon":"✍️","label":"Learn how to automatically cross-post your content with n8n"},{"url":"https://n8n.io/blog/running-n8n-on-ships-an-interview-with-maranics/","icon":"🛳","label":"Running n8n on ships: An interview with Maranics"},{"url":"https://n8n.io/blog/how-to-build-a-low-code-self-hosted-url-shortener/","icon":"🔗","label":"How to build a low-code, self-hosted URL shortener in 3 steps"},{"url":"https://n8n.io/blog/what-are-apis-how-to-use-them-with-no-code/","icon":" 🪢","label":"What are APIs and how to use them with no code"},{"url":"https://n8n.io/blog/5-tasks-you-can-automate-with-notion-api/","icon":"⚡️","label":"5 tasks you can automate with the new Notion API "},{"url":"https://n8n.io/blog/how-a-digital-strategist-uses-n8n-for-online-marketing/","icon":"💻","label":"How a digital strategist uses n8n for online marketing"},{"url":"https://n8n.io/blog/the-ultimate-guide-to-automate-your-video-collaboration-with-whereby-mattermost-and-n8n/","icon":"📹","label":"The ultimate guide to automate your video collaboration with Whereby, Mattermost, and n8n"},{"url":"https://n8n.io/blog/how-to-automatically-give-kudos-to-contributors-with-github-slack-and-n8n/","icon":"👏","label":"How to automatically give kudos to contributors with GitHub, Slack, and n8n"},{"url":"https://n8n.io/blog/5-workflow-automations-for-mattermost-that-we-love-at-n8n/","icon":"🤖","label":"5 workflow automations for Mattermost that we love at n8n"},{"url":"https://n8n.io/blog/why-this-product-manager-loves-workflow-automation-with-n8n/","icon":"🧠","label":"Why this Product Manager loves workflow automation with n8n"},{"url":"https://n8n.io/blog/creating-custom-incident-response-workflows-with-n8n/","label":"How to automate every step of an incident response workflow"},{"url":"https://n8n.io/blog/learn-to-build-powerful-api-endpoints-using-webhooks/","icon":"🧰","label":"Learn to Build Powerful API Endpoints Using Webhooks"},{"url":"https://n8n.io/blog/learn-how-to-use-webhooks-with-mattermost-slash-commands/","icon":"🦄","label":"Learn how to use webhooks with Mattermost slash commands"},{"url":"https://n8n.io/blog/how-goomer-automated-their-operations-with-over-200-n8n-workflows/","icon":"🛵","label":"How Goomer automated their operations with over 200 n8n workflows"}],"primaryDocumentation":[{"url":"https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.webhook/"}]},"categories":["Development","Core Nodes"],"nodeVersion":"1.0","codexVersion":"1.0","subcategories":{"Core Nodes":["Helpers"]}}},"group":"[\"trigger\"]","defaults":{"name":"Webhook"},"iconData":{"type":"file","fileBuffer":"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0OCIgaGVpZ2h0PSI0OCI+PHBhdGggZmlsbD0iIzM3NDc0ZiIgZD0iTTM1IDM3Yy0yLjIgMC00LTEuOC00LTRzMS44LTQgNC00IDQgMS44IDQgNC0xLjggNC00IDQiLz48cGF0aCBmaWxsPSIjMzc0NzRmIiBkPSJNMzUgNDNjLTMgMC01LjktMS40LTcuOC0zLjdsMy4xLTIuNWMxLjEgMS40IDIuOSAyLjMgNC43IDIuMyAzLjMgMCA2LTIuNyA2LTZzLTIuNy02LTYtNmMtMSAwLTIgLjMtMi45LjdsLTEuNyAxTDIzLjMgMTZsMy41LTEuOSA1LjMgOS40YzEtLjMgMi0uNSAzLS41IDUuNSAwIDEwIDQuNSAxMCAxMFM0MC41IDQzIDM1IDQzIi8+PHBhdGggZmlsbD0iIzM3NDc0ZiIgZD0iTTE0IDQzQzguNSA0MyA0IDM4LjUgNCAzM2MwLTQuNiAzLjEtOC41IDcuNS05LjdsMSAzLjlDOS45IDI3LjkgOCAzMC4zIDggMzNjMCAzLjMgMi43IDYgNiA2czYtMi43IDYtNnYtMmgxNXY0SDIzLjhjLS45IDQuNi01IDgtOS44IDgiLz48cGF0aCBmaWxsPSIjZTkxZTYzIiBkPSJNMTQgMzdjLTIuMiAwLTQtMS44LTQtNHMxLjgtNCA0LTQgNCAxLjggNCA0LTEuOCA0LTQgNCIvPjxwYXRoIGZpbGw9IiMzNzQ3NGYiIGQ9Ik0yNSAxOWMtMi4yIDAtNC0xLjgtNC00czEuOC00IDQtNCA0IDEuOCA0IDQtMS44IDQtNCA0Ii8+PHBhdGggZmlsbD0iI2U5MWU2MyIgZD0ibTE1LjcgMzQtMy40LTIgNS45LTkuN2MtMi0xLjktMy4yLTQuNS0zLjItNy4zIDAtNS41IDQuNS0xMCAxMC0xMHMxMCA0LjUgMTAgMTBjMCAuOS0uMSAxLjctLjMgMi41bC0zLjktMWMuMS0uNS4yLTEgLjItMS41IDAtMy4zLTIuNy02LTYtNnMtNiAyLjctNiA2YzAgMi4xIDEuMSA0IDIuOSA1LjFsMS43IDF6Ii8+PC9zdmc+"},"displayName":"Webhook","typeVersion":2,"nodeCategories":[{"id":5,"name":"Development"},{"id":9,"name":"Core Nodes"}]},{"id":565,"icon":"fa:sticky-note","name":"n8n-nodes-base.stickyNote","codex":{"data":{"alias":["Comments","Notes","Sticky"],"categories":["Core Nodes"],"nodeVersion":"1.0","codexVersion":"1.0","subcategories":{"Core Nodes":["Helpers"]}}},"group":"[\"input\"]","defaults":{"name":"Sticky Note","color":"#FFD233"},"iconData":{"icon":"sticky-note","type":"icon"},"displayName":"Sticky Note","typeVersion":1,"nodeCategories":[{"id":9,"name":"Core Nodes"}]},{"id":834,"icon":"file:code.svg","name":"n8n-nodes-base.code","codex":{"data":{"alias":["cpde","Javascript","JS","Python","Script","Custom Code","Function"],"details":"The Code node allows you to execute JavaScript in your workflow.","resources":{"primaryDocumentation":[{"url":"https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.code/"}]},"categories":["Development","Core Nodes"],"nodeVersion":"1.0","codexVersion":"1.0","subcategories":{"Core Nodes":["Helpers","Data Transformation"]}}},"group":"[\"transform\"]","defaults":{"name":"Code"},"iconData":{"type":"file","fileBuffer":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTEyIiBoZWlnaHQ9IjUxMiIgdmlld0JveD0iMCAwIDUxMiA1MTIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMF8xMTcxXzQ0MSkiPgo8cGF0aCBkPSJNMTcwLjI4MyA0OEgxOTYuNUMyMDMuMTI3IDQ4IDIwOC41IDQyLjYyNzQgMjA4LjUgMzZWMTJDMjA4LjUgNS4zNzI1OCAyMDMuMTI3IDAgMTk2LjUgMEgxNzAuMjgzQzEyNi4xIDAgOTAuMjgzIDM1LjgxNzIgOTAuMjgzIDgwVjE3NkM5MC4yODMgMjA2LjkyOCA2NS4yMTA5IDIzMiAzNC4yODMgMjMySDIzQzE2LjM3MjYgMjMyIDExIDIzNy4zNzIgMTEgMjQ0VjI2OEMxMSAyNzQuNjI3IDE2LjM3MjQgMjgwIDIyLjk5OTYgMjgwTDM0LjI4MyAyODBDNjUuMjEwOSAyODAgOTAuMjgzIDMwNS4wNzIgOTAuMjgzIDMzNlY0NDB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yLjk3OCAzMDUuMDcyIDQ0OC4wNTEgMjgwIDQ3OC45NzkgMjgwSDQ5MEM0OTYuNjI3IDI4MCA1MDIgMjc0LjYyOCA1MDIgMjY4VjI0NEM1MDIgMjM3LjM3MyA0OTYuNjI4IDIzMiA0OTAgMjMyTDQ3OC45NzkgMjMyQzQ0OC4wNTEgMjMyIDQyMi45NzggMjA2LjkyOCA0MjIuOTc4IDE3NlY4MEM0MjIuOTc4IDM1LjgxNzIgMzg3LjE2MSAwIDM0Mi45NzkgMEgzMTdDMzEwLjM3MyAwIDMwNSA1LjM3MjU4IDMwNSAxMlYzNloiIGZpbGw9IiNGRjk5MjIiLz4KPC9nPgo8ZGVmcz4KPGNsaXBQYXRoIGlkPSJjbGlwMF8xMTcxXzQ0MSI+CjxyZWN0IHdpZHRoPSI1MTIiIGhlaWdodD0iNTEyIiBmaWxsPSJ3aGl0ZSIvPgo8L2NsaXBQYXRoPgo8L2RlZnM+Cjwvc3ZnPgo="},"displayName":"Code","typeVersion":2,"nodeCategories":[{"id":5,"name":"Development"},{"id":9,"name":"Core Nodes"}]},{"id":1119,"icon":"fa:robot","name":"@n8n/n8n-nodes-langchain.agent","codex":{"data":{"alias":["LangChain","Chat","Conversational","Plan and Execute","ReAct","Tools"],"resources":{"primaryDocumentation":[{"url":"https://docs.n8n.io/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.agent/"}]},"categories":["AI","Langchain"],"subcategories":{"AI":["Agents","Root Nodes"]}}},"group":"[\"transform\"]","defaults":{"name":"AI Agent","color":"#404040"},"iconData":{"icon":"robot","type":"icon"},"displayName":"AI Agent","typeVersion":3,"nodeCategories":[{"id":25,"name":"AI"},{"id":26,"name":"Langchain"}]},{"id":1145,"icon":"file:anthropic.svg","name":"@n8n/n8n-nodes-langchain.lmChatAnthropic","codex":{"data":{"alias":["claude","sonnet","opus"],"resources":{"primaryDocumentation":[{"url":"https://docs.n8n.io/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.lmchatanthropic/"}]},"categories":["AI","Langchain"],"subcategories":{"AI":["Language Models","Root Nodes"],"Language Models":["Chat Models (Recommended)"]}}},"group":"[\"transform\"]","defaults":{"name":"Anthropic Chat Model"},"iconData":{"type":"file","fileBuffer":"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0NiIgaGVpZ2h0PSIzMiIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzdEN0Q4NyIgZD0iTTMyLjczIDBoLTYuOTQ1TDM4LjQ1IDMyaDYuOTQ1ek0xMi42NjUgMCAwIDMyaDcuMDgybDIuNTktNi43MmgxMy4yNWwyLjU5IDYuNzJoNy4wODJMMTkuOTI5IDB6bS0uNzAyIDE5LjMzNyA0LjMzNC0xMS4yNDYgNC4zMzQgMTEuMjQ2eiIvPjwvc3ZnPg=="},"displayName":"Anthropic Chat Model","typeVersion":1,"nodeCategories":[{"id":25,"name":"AI"},{"id":26,"name":"Langchain"}]},{"id":1179,"icon":"fa:code","name":"@n8n/n8n-nodes-langchain.outputParserStructured","codex":{"data":{"alias":["json","zod"],"resources":{"primaryDocumentation":[{"url":"https://docs.n8n.io/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.outputparserstructured/"}]},"categories":["AI","Langchain"],"subcategories":{"AI":["Output Parsers"]}}},"group":"[\"transform\"]","defaults":{"name":"Structured Output Parser"},"iconData":{"icon":"code","type":"icon"},"displayName":"Structured Output Parser","typeVersion":1,"nodeCategories":[{"id":25,"name":"AI"},{"id":26,"name":"Langchain"}]},{"id":1235,"icon":"file:extractFromFile.svg","name":"n8n-nodes-base.extractFromFile","codex":{"data":{"alias":["CSV","Spreadsheet","Excel","xls","xlsx","ods","tabular","decode","decoding","Move Binary Data","Binary","File","PDF","JSON","HTML","ICS","iCal","txt","Text","RTF","XML","64","Base64","Convert"],"resources":{"primaryDocumentation":[{"url":"https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.extractfromfile/"}]},"categories":["Core Nodes"],"nodeVersion":"1.0","codexVersion":"1.0","subcategories":{"Core Nodes":["Files","Data Transformation"]}}},"group":"[\"input\"]","defaults":{"name":"Extract from File"},"iconData":{"type":"file","fileBuffer":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA0MCA0MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTAuOTM3NSAyQzAuNDE5NzMzIDIgMCAyLjQxOTczIDAgMi45Mzc1VjM3LjMyMjFDMCAzNy44Mzk5IDAuNDE5NzMzIDM4LjI1OTYgMC45Mzc1IDM4LjI1OTZIMjYuMjE1NEMyNi43MzMyIDM4LjI1OTYgMjcuMTUyOSAzNy44Mzk5IDI3LjE1MjkgMzcuMzIyMUwyNy4xNTI5IDMwLjY3MTlMMTYuNzk2OSAzMC42NzE5QzE0Ljg5ODQgMzAuNjcxOSAxMy4zNTk0IDI5LjEzMjkgMTMuMzU5NCAyNy4yMzQ0VjI1LjM1OTRDMTMuMzU5NCAyMy40NjA5IDE0Ljg5ODQgMjEuOTIxOSAxNi43OTY5IDIxLjkyMTlIMjcuMTUyOUwyNy4xNTI5IDE1Ljc4MjFIMTQuMzA4M0MxMy43OTA2IDE1Ljc4MjEgMTMuMzcwOCAxNS4zNjI0IDEzLjM3MDggMTQuODQ0NlYySDAuOTM3NVoiIGZpbGw9IiMzNTNGNkUiLz4KPHBhdGggZD0iTTE2LjAyNzEgMkMxNS45NDA4IDIgMTUuODcwOCAyLjA2OTk2IDE1Ljg3MDggMi4xNTYyNVYxMi44MTM0QzE1Ljg3MDggMTMuMDcyMyAxNi4wODA3IDEzLjI4MjEgMTYuMzM5NiAxMy4yODIxSDI2Ljk5NjdDMjcuMDgzIDEzLjI4MjEgMjcuMTUyOSAxMy4yMTIyIDI3LjE1MjkgMTMuMTI1OUwyNy4xNTI5IDEyLjYxNzFDMjcuMTUyOSAxMi4zNjg4IDI3LjA1NDUgMTIuMTMwNyAyNi44NzkxIDExLjk1NUwxNy4yMjI1IDIuMjc1MzhDMTcuMDQ2NiAyLjA5OTA4IDE2LjgwNzkgMiAxNi41NTg4IDJIMTYuMDI3MVoiIGZpbGw9IiMzNTNGNkUiLz4KPHBhdGggZD0iTTI5Ljc2NDIgMzQuNjUwM0MyOS4wMzQgMzMuOTE2IDI5LjAzNzQgMzIuNzI4OCAyOS43NzE2IDMxLjk5ODZMMzMuNjE5NyAyOC4xNzE5TDE2Ljc5NjkgMjguMTcxOUMxNi4yNzkxIDI4LjE3MTkgMTUuODU5NCAyNy43NTIxIDE1Ljg1OTQgMjcuMjM0NFYyNS4zNTk0QzE1Ljg1OTQgMjQuODQxNiAxNi4yNzkxIDI0LjQyMTkgMTYuNzk2OSAyNC40MjE5TDMzLjU0MTIgMjQuNDIxOUwyOS43NzE2IDIwLjY3MzNDMjkuMDM3NCAxOS45NDMxIDI5LjAzNCAxOC43NTU5IDI5Ljc2NDIgMTguMDIxNkMzMC40OTQ0IDE3LjI4NzQgMzEuNjgxNiAxNy4yODQgMzIuNDE1OSAxOC4wMTQyTDM5LjQ0NzEgMjUuMDA2NEMzOS44MDEgMjUuMzU4MyA0MCAyNS44MzY4IDQwIDI2LjMzNTlDNDAgMjYuODM1IDM5LjgwMSAyNy4zMTM1IDM5LjQ0NzEgMjcuNjY1NUwzMi40MTU5IDM0LjY1NzZDMzEuNjgxNiAzNS4zODc4IDMwLjQ5NDQgMzUuMzg0NSAyOS43NjQyIDM0LjY1MDNaIiBmaWxsPSIjMzUzRjZFIi8+Cjwvc3ZnPgo="},"displayName":"Extract from File","typeVersion":1,"nodeCategories":[{"id":9,"name":"Core Nodes"}]}],"categories":[{"id":35,"name":"Document Extraction"},{"id":49,"name":"AI Summarization"}],"image":[]}}