{
  "name": "Detect transaction fraud and manage compliance with GPT-4 and Airtable",
  "nodes": [
    {
      "id": "51c177b4-5c51-4e3f-9bbd-21563edf26c4",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -2816,
        32
      ]
    },
    {
      "id": "814d0d9f-9d3f-4918-8194-4f00198b339b",
      "name": "Workflow Configuration",
      "type": "n8n-nodes-base.set",
      "position": [
        -2592,
        32
      ]
    },
    {
      "id": "e8cc329e-209e-4b28-b52d-5aa448deccef",
      "name": "Fetch Pending Transactions",
      "type": "n8n-nodes-base.airtable",
      "position": [
        -2368,
        32
      ]
    },
    {
      "id": "3062cb09-5b65-4103-bee1-afce57578af9",
      "name": "Transaction Signal Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -2144,
        32
      ]
    },
    {
      "id": "dc6383d4-5674-47b9-86f5-cce2597efb08",
      "name": "OpenAI Model - Transaction Signal",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -2176,
        256
      ]
    },
    {
      "id": "94166fdc-3be3-4562-a15a-b98832caf90a",
      "name": "Transaction Signal Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -2000,
        256
      ]
    },
    {
      "id": "d04daab8-5b4b-4e79-a5bd-05415b8aca71",
      "name": "Route by Risk Level",
      "type": "n8n-nodes-base.switch",
      "position": [
        -1792,
        0
      ]
    },
    {
      "id": "fb209cf4-caf5-4c1d-b6d0-49a195edb833",
      "name": "Compliance Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -1040,
        32
      ]
    },
    {
      "id": "85def18f-b407-4719-bea9-75c4c44a6aa9",
      "name": "OpenAI Model - Compliance",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -1568,
        256
      ]
    },
    {
      "id": "f3140370-649e-43af-b4f0-5fc94fe885fc",
      "name": "Compliance Action Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -448,
        256
      ]
    },
    {
      "id": "16e60986-e6cc-4a8c-8597-7fa0f8d2953b",
      "name": "Investigation Agent Tool",
      "type": "@n8n/n8n-nodes-langchain.agentTool",
      "position": [
        -1440,
        256
      ]
    },
    {
      "id": "f3c52b44-2d5f-4345-afcc-71e2e75e2178",
      "name": "OpenAI Model - Investigation",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -1488,
        464
      ]
    },
    {
      "id": "f42a10f0-bfc7-468b-aaa8-2cf6084edead",
      "name": "Investigation Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -1328,
        464
      ]
    },
    {
      "id": "79d499c6-f1a4-458e-98f6-c78a2e8a1843",
      "name": "Risk Scoring Agent Tool",
      "type": "@n8n/n8n-nodes-langchain.agentTool",
      "position": [
        -1152,
        256
      ]
    },
    {
      "id": "fca0c80d-fe05-49a7-96f4-550588fdfc86",
      "name": "OpenAI Model - Risk Scoring",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -1152,
        464
      ]
    },
    {
      "id": "dec39fa5-b161-4b3b-b5c5-29af729028b8",
      "name": "Risk Score Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -928,
        464
      ]
    },
    {
      "id": "6441c3b1-b470-43f8-9cef-ffd0eca5e25d",
      "name": "Airtable Tool - Compliance Records",
      "type": "n8n-nodes-base.airtableTool",
      "position": [
        -864,
        256
      ]
    },
    {
      "id": "fbac0627-c5e1-4fd5-92f5-65c0a3e8eb8b",
      "name": "Reporting Agent Tool",
      "type": "@n8n/n8n-nodes-langchain.agentTool",
      "position": [
        -736,
        256
      ]
    },
    {
      "id": "b43defb1-68c4-451e-a60b-8fd09a191cb6",
      "name": "OpenAI Model - Reporting",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -720,
        464
      ]
    },
    {
      "id": "eb9055b1-b197-487b-ae37-568fa5b2924e",
      "name": "Report Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -512,
        464
      ]
    },
    {
      "id": "77cffc19-5598-4a11-b7bc-7f9361d31719",
      "name": "Merge Results",
      "type": "n8n-nodes-base.merge",
      "position": [
        -240,
        16
      ]
    },
    {
      "id": "9bd90c48-f19f-4a7b-9290-4fb631443ee5",
      "name": "Update Transaction Records",
      "type": "n8n-nodes-base.airtable",
      "position": [
        -16,
        32
      ]
    },
    {
      "id": "7feb3a96-92e2-49d0-a771-7b6250673753",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1696,
        -496
      ],
      "parameters": {
        "width": 400,
        "height": 304,
        "content": "## Prerequisites\nn8n (cloud or self-hosted), OpenAI API key (GPT-4), Airtable account with configured base and appropriate table schema \n## Use Cases\nCompliance teams automating AML screening and susp"
      }
    },
    {
      "id": "0d8a22bb-6c48-4c43-89f0-ecb1c106d137",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2080,
        -480
      ],
      "parameters": {
        "width": 320,
        "height": 304,
        "content": "## Setup Steps\n1. Import workflow JSON into your n8n instance.\n2. Add OpenAI API credentials.\n3. Set Schedule Trigger frequency aligned to your transaction processing cycle.\n4. Update Workflow Configu"
      }
    },
    {
      "id": "f41397e7-523b-4f23-9f7a-e7df8cad2241",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2880,
        -416
      ],
      "parameters": {
        "width": 752,
        "height": 256,
        "content": "## How It Works\nThis workflow automates financial transaction monitoring, fraud detection, and regulatory compliance using OpenAI GPT-4 across coordinated specialist agents. It targets compliance offi"
      }
    },
    {
      "id": "fc0e8d05-651a-4d05-a13e-82151504037d",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2864,
        -112
      ],
      "parameters": {
        "width": 624,
        "height": 560,
        "content": "## Fetch Pending Transactions\n**What:** Retrieves unreviewed transaction records from Airtable.\n**Why:** Provides a structured, live transaction queue for AI risk analysis."
      }
    },
    {
      "id": "7859ba61-f5ad-4fcf-9230-13771fc1cd13",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1616,
        -112
      ],
      "parameters": {
        "width": 1328,
        "height": 800,
        "content": "## Compliance Records Storage\n**What:** Airtable Tool logs all compliance findings and agent outputs throughout processing.\n**Why:** Maintains a real-time, audit-ready record of every transaction revi"
      }
    },
    {
      "id": "d442892f-139e-484f-a091-3ea616d683f2",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -272,
        -128
      ],
      "parameters": {
        "width": 464,
        "height": 784,
        "content": "\n## Merge & Update Records\n**What:** All agent outputs are consolidated and transaction records updated in Airtable.\n**Why:** Ensures a single, unified compliance status per transaction for downstream"
      }
    },
    {
      "id": "77171a3c-079b-4d48-81f1-7d887475df66",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2208,
        -112
      ],
      "parameters": {
        "width": 576,
        "height": 640,
        "content": "## Specialist Agent Processing\n**What:** Investigation, Risk Scoring, and Reporting agents run per risk routing path.\n**Why:** Each agent targets a distinct compliance function, improving detection ac"
      }
    }
  ],
  "connections": {
    "Merge Results": {
      "main": [
        [
          {
            "node": "Update Transaction Records",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Report Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Reporting Agent Tool",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Compliance Agent": {
      "main": [
        [
          {
            "node": "Merge Results",
            "type": "main",
            "index": 0
          },
          {
            "node": "Merge Results",
            "type": "main",
            "index": 1
          },
          {
            "node": "Merge Results",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Workflow Configuration",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Risk Score Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Risk Scoring Agent Tool",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Route by Risk Level": {
      "main": [
        [
          {
            "node": "Compliance Agent",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Compliance Agent",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Compliance Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Investigation Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Investigation Agent Tool",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Reporting Agent Tool": {
      "ai_tool": [
        [
          {
            "node": "Compliance Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Workflow Configuration": {
      "main": [
        [
          {
            "node": "Fetch Pending Transactions",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Risk Scoring Agent Tool": {
      "ai_tool": [
        [
          {
            "node": "Compliance Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Compliance Action Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Compliance Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Investigation Agent Tool": {
      "ai_tool": [
        [
          {
            "node": "Compliance Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Model - Reporting": {
      "ai_languageModel": [
        [
          {
            "node": "Reporting Agent Tool",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Transaction Signal Agent": {
      "main": [
        [
          {
            "node": "Route by Risk Level",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Model - Compliance": {
      "ai_languageModel": [
        [
          {
            "node": "Compliance Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Transaction Signal Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Transaction Signal Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Pending Transactions": {
      "main": [
        [
          {
            "node": "Transaction Signal Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Model - Risk Scoring": {
      "ai_languageModel": [
        [
          {
            "node": "Risk Scoring Agent Tool",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Model - Investigation": {
      "ai_languageModel": [
        [
          {
            "node": "Investigation Agent Tool",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Model - Transaction Signal": {
      "ai_languageModel": [
        [
          {
            "node": "Transaction Signal Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Airtable Tool - Compliance Records": {
      "ai_tool": [
        [
          {
            "node": "Compliance Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    }
  }
}