{
  "name": "Validate customs clearance documents with Claude AI, Google Drive and Slack",
  "nodes": [
    {
      "id": "ba5857a1-4dce-41d5-bc31-c7bd6c4d87b6",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -80,
        -480
      ],
      "parameters": {
        "width": 1060,
        "height": 2144,
        "content": "## AI Customs Clearance Document Checker\n\nThis workflow automates pre-dispatch customs document validation for international shipments. It ingests shipping document packages, extracts content from eac"
      }
    },
    {
      "id": "0b2d0325-6e94-40b8-b422-aae2cb7180cb",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1032,
        572
      ],
      "parameters": {
        "width": 496,
        "height": 548,
        "content": "## 1. Shipment Intake & Document Retrieval\n### Webhook · Drive Trigger · File Download · Text Extraction"
      }
    },
    {
      "id": "21be3ced-5308-42c6-8308-d97aa8122534",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1584,
        608
      ],
      "parameters": {
        "width": 800,
        "height": 504,
        "content": "## 2. Document Classification & Cross-Document Consistency Check\n### Type Detection · Field Extraction · Mismatch Detection"
      }
    },
    {
      "id": "b93a1e99-de64-4588-9a30-679eba2d1a44",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2412,
        612
      ],
      "parameters": {
        "width": 840,
        "height": 604,
        "content": "## 3. Claude AI Customs Compliance Validation\n### Per-Document Rules · HS Code Check · Sanction Screening"
      }
    },
    {
      "id": "dca3d7b5-2aeb-4dc1-85bc-8ad3f9697cc4",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3280,
        368
      ],
      "parameters": {
        "width": 884,
        "height": 1040,
        "content": "## 4. Risk Routing · Notifications · Tracker Update · Jira · Audit Log"
      }
    },
    {
      "id": "d1692071-f57d-44f8-b539-fe7f4b55e3ea",
      "name": "Receive Shipment Documents",
      "type": "n8n-nodes-base.webhook",
      "position": [
        1152,
        736
      ]
    },
    {
      "id": "159e9ea3-ded9-45f7-b94e-506e7b6125e4",
      "name": "Watch Shipment Docs Folder",
      "type": "n8n-nodes-base.googleDriveTrigger",
      "position": [
        1152,
        928
      ]
    },
    {
      "id": "a6b9ce08-1606-4c4c-8867-cdaaa1b808b9",
      "name": "Register Shipment Case",
      "type": "n8n-nodes-base.code",
      "position": [
        1376,
        832
      ]
    },
    {
      "id": "4cbc3adf-22a5-45be-8cce-492cc0c545eb",
      "name": "Fetch Document from Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        1600,
        832
      ]
    },
    {
      "id": "31926704-5e1f-4bf4-8577-0c08e8e93fbe",
      "name": "Extract Text from Document",
      "type": "n8n-nodes-base.extractFromFile",
      "position": [
        1824,
        832
      ]
    },
    {
      "id": "95ae7bcd-d338-4a18-bcff-8e766c4b0ef2",
      "name": "Classify Type & Extract Key Fields",
      "type": "n8n-nodes-base.code",
      "position": [
        2048,
        832
      ]
    },
    {
      "id": "7ad92b81-036c-4569-82a6-a40437034706",
      "name": "Cross-Document Consistency Engine",
      "type": "n8n-nodes-base.code",
      "position": [
        2272,
        832
      ]
    },
    {
      "id": "5700dfeb-2b5d-4abc-986e-62cf28dc979c",
      "name": "AI Customs Compliance Validator",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        2496,
        832
      ]
    },
    {
      "id": "3e56910b-ebdd-4c74-b9d6-d6a57832a715",
      "name": "Claude AI Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
      "position": [
        2568,
        1056
      ]
    },
    {
      "id": "fbb836a5-cd51-439a-81ff-5c1ed3eab09f",
      "name": "Parse AI Compliance Results",
      "type": "n8n-nodes-base.code",
      "position": [
        2848,
        832
      ]
    },
    {
      "id": "74a857b2-8eaf-4e31-82fb-cb921139bfab",
      "name": "Aggregate Shipment Validation Report",
      "type": "n8n-nodes-base.code",
      "position": [
        3072,
        832
      ]
    },
    {
      "id": "be953067-b361-4d44-bb36-1866b81e2f33",
      "name": "Route by Shipment Risk Level",
      "type": "n8n-nodes-base.switch",
      "position": [
        3296,
        800
      ]
    },
    {
      "id": "38a2f2cd-13f3-4dfe-a33f-4905442857ae",
      "name": "Alert Logistics Team on Slack",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        3520,
        448
      ]
    },
    {
      "id": "e4a458e2-6d10-4bb8-bc45-20b2c1231d60",
      "name": "Email Validation Report to Exporter",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        3520,
        640
      ]
    },
    {
      "id": "b9d2b6ab-a224-4652-b11c-9cc51e6763b5",
      "name": "Create Jira Compliance Issue",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        3520,
        1024
      ]
    },
    {
      "id": "0065a13e-4562-435d-b6d1-9704632d9d3b",
      "name": "Update Shipment Tracker in Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        3520,
        832
      ]
    },
    {
      "id": "8944915f-61f3-4c2c-82ec-4cb815d4d9f2",
      "name": "Build Final Compliance Response",
      "type": "n8n-nodes-base.code",
      "position": [
        3744,
        736
      ]
    },
    {
      "id": "0d7ef775-c36e-4aa3-8c76-127b1c5f05ca",
      "name": "Return Compliance Result to Caller",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        3968,
        736
      ]
    },
    {
      "id": "9a615d6e-409c-453e-8416-b83e87d54c1d",
      "name": "Mark Shipment Cleared for Dispatch",
      "type": "n8n-nodes-base.set",
      "position": [
        3520,
        1216
      ]
    }
  ],
  "connections": {
    "Claude AI Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Customs Compliance Validator",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Register Shipment Case": {
      "main": [
        [
          {
            "node": "Fetch Document from Drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Document from Drive": {
      "main": [
        [
          {
            "node": "Extract Text from Document",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Text from Document": {
      "main": [
        [
          {
            "node": "Classify Type & Extract Key Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Receive Shipment Documents": {
      "main": [
        [
          {
            "node": "Register Shipment Case",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Watch Shipment Docs Folder": {
      "main": [
        [
          {
            "node": "Register Shipment Case",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse AI Compliance Results": {
      "main": [
        [
          {
            "node": "Aggregate Shipment Validation Report",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Jira Compliance Issue": {
      "main": [
        [
          {
            "node": "Build Final Compliance Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Route by Shipment Risk Level": {
      "main": [
        [
          {
            "node": "Email Validation Report to Exporter",
            "type": "main",
            "index": 0
          },
          {
            "node": "Update Shipment Tracker in Sheets",
            "type": "main",
            "index": 0
          },
          {
            "node": "Mark Shipment Cleared for Dispatch",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Alert Logistics Team on Slack",
            "type": "main",
            "index": 0
          },
          {
            "node": "Email Validation Report to Exporter",
            "type": "main",
            "index": 0
          },
          {
            "node": "Create Jira Compliance Issue",
            "type": "main",
            "index": 0
          },
          {
            "node": "Update Shipment Tracker in Sheets",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Alert Logistics Team on Slack",
            "type": "main",
            "index": 0
          },
          {
            "node": "Email Validation Report to Exporter",
            "type": "main",
            "index": 0
          },
          {
            "node": "Create Jira Compliance Issue",
            "type": "main",
            "index": 0
          },
          {
            "node": "Update Shipment Tracker in Sheets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Alert Logistics Team on Slack": {
      "main": [
        [
          {
            "node": "Build Final Compliance Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Customs Compliance Validator": {
      "main": [
        [
          {
            "node": "Parse AI Compliance Results",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Build Final Compliance Response": {
      "main": [
        [
          {
            "node": "Return Compliance Result to Caller",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Cross-Document Consistency Engine": {
      "main": [
        [
          {
            "node": "AI Customs Compliance Validator",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update Shipment Tracker in Sheets": {
      "main": [
        [
          {
            "node": "Build Final Compliance Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Classify Type & Extract Key Fields": {
      "main": [
        [
          {
            "node": "Cross-Document Consistency Engine",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Email Validation Report to Exporter": {
      "main": [
        [
          {
            "node": "Build Final Compliance Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate Shipment Validation Report": {
      "main": [
        [
          {
            "node": "Route by Shipment Risk Level",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}