{
  "name": "Reconcile bank transactions and generate reports with GPT-4 and Gmail",
  "nodes": [
    {
      "id": "ae0e5b32-ed1c-42ec-9a6e-de0894775abd",
      "name": "Daily Accounting Run",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -3840,
        76
      ]
    },
    {
      "id": "6799a8cd-238b-44b0-9bcb-f3708e29ae21",
      "name": "Workflow Configuration",
      "type": "n8n-nodes-base.set",
      "position": [
        -3616,
        76
      ]
    },
    {
      "id": "c520e733-cbec-42e1-89a6-51b4b7213cf9",
      "name": "Fetch Bank Transactions",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -3392,
        -20
      ]
    },
    {
      "id": "6eef8122-bf5f-4c87-a9ea-c7b20f01b77a",
      "name": "Fetch Accounting System Data",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -3392,
        172
      ]
    },
    {
      "id": "90c51b7b-7bd9-462e-94ef-0fc97ab2dfdc",
      "name": "Combine Financial Data",
      "type": "n8n-nodes-base.merge",
      "position": [
        -3168,
        76
      ]
    },
    {
      "id": "923d3dd4-6ca8-4484-a47c-c06efa33abff",
      "name": "Transaction Classifier Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -2944,
        76
      ]
    },
    {
      "id": "bb5d43b8-7065-408e-b433-f3ccee475975",
      "name": "Account Reconciliation Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -2592,
        76
      ]
    },
    {
      "id": "2f75b025-2203-4d52-b087-8a01bf70d81c",
      "name": "Journal Entry Generator Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -2240,
        76
      ]
    },
    {
      "id": "6620cd01-96d6-4bab-8db2-1877e28a07fa",
      "name": "Error Detection Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -1888,
        16
      ]
    },
    {
      "id": "ce5d490f-a6a5-44ec-a721-bd274420f0e0",
      "name": "Financial Statement Generator Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -1312,
        16
      ]
    },
    {
      "id": "234ffdb4-8e2a-4ac4-b7ce-936741982959",
      "name": "Tax Report Generator Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -960,
        16
      ]
    },
    {
      "id": "462fabc3-a3ec-4070-a39d-a473146bd520",
      "name": "Tax Agent Communication Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -592,
        -32
      ]
    },
    {
      "id": "263fbed0-d244-494a-a483-1ff591a8011d",
      "name": "OpenAI GPT-4",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -592,
        128
      ]
    },
    {
      "id": "aa64d95c-8d57-4b74-8095-d1e0342e8b29",
      "name": "Transaction Classification Schema",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -2808,
        300
      ]
    },
    {
      "id": "fbd3dbb1-0270-4d09-8c5d-d2893e9b01b0",
      "name": "Reconciliation Schema",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -2456,
        300
      ]
    },
    {
      "id": "a4cae654-b049-4fe2-b631-1ea8040119ce",
      "name": "Journal Entry Schema",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -2104,
        300
      ]
    },
    {
      "id": "fe84eaf9-24b5-4d4f-a133-1b7c6a94bb1e",
      "name": "Error Detection Schema",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -1744,
        240
      ]
    },
    {
      "id": "5d959c55-317f-46da-b22e-dc7d14be2527",
      "name": "Financial Statement Schema",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -1168,
        240
      ]
    },
    {
      "id": "5f881f22-518a-487c-a5b8-1750d3e86409",
      "name": "Tax Report Schema",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -816,
        240
      ]
    },
    {
      "id": "a42bbbf7-c8ac-484b-8962-6cf43cb815e6",
      "name": "Calculator Tool",
      "type": "@n8n/n8n-nodes-langchain.toolCalculator",
      "position": [
        -1872,
        240
      ]
    },
    {
      "id": "dfa22c7d-5ae4-409e-8e79-1cf382e49b08",
      "name": "Gmail Tool",
      "type": "n8n-nodes-base.gmailTool",
      "position": [
        -432,
        128
      ]
    },
    {
      "id": "4409a30a-4394-485b-a094-a44682e9024e",
      "name": "Post Journal Entries to System",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -544,
        304
      ]
    },
    {
      "id": "82b233c0-981e-4063-9b08-515558030634",
      "name": "Format Final Report",
      "type": "n8n-nodes-base.set",
      "position": [
        -32,
        160
      ]
    },
    {
      "id": "5fcfdb5a-0b8c-4a94-b521-ba50e07f5d06",
      "name": "Send Summary Email",
      "type": "n8n-nodes-base.gmail",
      "position": [
        192,
        160
      ]
    },
    {
      "id": "ab71a6b7-a400-468f-a7a3-cb8c2af7205f",
      "name": "Check for Errors",
      "type": "n8n-nodes-base.if",
      "position": [
        -1536,
        16
      ]
    },
    {
      "id": "4c1a6762-3cb9-4276-abfb-c48cabc44dc8",
      "name": "Aggregate All Results",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        -256,
        160
      ]
    },
    {
      "id": "f1f01564-c832-4b0b-bb70-c410a3355429",
      "name": "OpenAI GPT-",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -944,
        240
      ]
    },
    {
      "id": "e8b65ee0-0075-4872-bc6c-1b4b765fc6a9",
      "name": "OpenAI GPT-5",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -1296,
        240
      ]
    },
    {
      "id": "242c2317-8f54-45d1-b34a-61c33545e636",
      "name": "OpenAI GPT-6",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -2232,
        300
      ]
    },
    {
      "id": "633a43f1-f8bf-4f97-9784-a8651461bc75",
      "name": "OpenAI GPT",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -2936,
        300
      ]
    },
    {
      "id": "0afe4203-b3f4-4c3c-bd8d-5aeed7cfaa66",
      "name": "OpenAI",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -2584,
        300
      ]
    },
    {
      "id": "073a26f3-890f-49b1-a084-d60c2f9025ef",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2416,
        -496
      ],
      "parameters": {
        "width": 528,
        "height": 304,
        "content": "## Prerequisites\nOpenAI API account with GPT-4 access\n## Use Cases\nMonthly financial close automation, daily transaction monitoring for fraud detection\n### Customization\nReplace Fable Bank with your b"
      }
    },
    {
      "id": "0f8efd11-6ff3-47c4-aad5-d42a69cf5b07",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2960,
        -400
      ],
      "parameters": {
        "width": 480,
        "height": 208,
        "content": "## Setup Steps\n1. Configure Fable Bank API credentials for transaction data access \n2. Add OpenAI API key for GPT-4 classification and reconciliation models \n3. Set up NVIDIA NIM credentials for anoma"
      }
    },
    {
      "id": "6ffd486b-c12e-4d29-8a87-5ba56970088d",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -3856,
        -400
      ],
      "parameters": {
        "width": 832,
        "height": 224,
        "content": "## How It Works\nThis workflow automates end-to-end financial transaction processing for finance teams managing high-volume bank data. It eliminates manual reconciliation by intelligently classifying t"
      }
    },
    {
      "id": "9e910e8f-80d6-4407-91b9-473638c2986b",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1936,
        -160
      ],
      "parameters": {
        "width": 896,
        "height": 736,
        "content": "## Journalization & Anomaly Detection\n\n**What:** Generates journal entries and detects anomalies with NVIDIA NIM analysis.\n**Why:** Preserves accounting integrity and flags suspicious activity.\n"
      }
    },
    {
      "id": "5e552725-d5d5-427d-a528-5c13d71107e8",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2608,
        -160
      ],
      "parameters": {
        "width": 656,
        "height": 736,
        "content": "## Reconciliation & Matching\n\n**What:** Builds reconciliation schemas and matches transactions to account records.\n**Why:** Automatically ensures accurate matching and surfaces discrepancies."
      }
    },
    {
      "id": "4559c376-ff2b-4e30-8dc4-2d76771a0a0f",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -3872,
        -160
      ],
      "parameters": {
        "width": 1216,
        "height": 640,
        "content": "## Transaction Ingestion & Classification\n\n**What:** Pulls transaction data from the Fable Bank API and classifies it using AI agents.\n**Why:** Eliminates manual data collection and sorting through in"
      }
    },
    {
      "id": "5115d5e8-d037-409e-8f9c-40f9ee4b2b7d",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -960,
        -160
      ],
      "parameters": {
        "width": 1312,
        "height": 752,
        "content": "## Reporting & Distribution\n\n**What:** Compiles final reports and sends formatted summaries via Gmail.\n**Why:** Delivers actionable insights without manual report preparation."
      }
    }
  ],
  "connections": {
    "OpenAI": {
      "ai_languageModel": [
        [
          {
            "node": "Account Reconciliation Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Gmail Tool": {
      "ai_tool": [
        [
          {
            "node": "Tax Agent Communication Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI GPT": {
      "ai_languageModel": [
        [
          {
            "node": "Transaction Classifier Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI GPT-": {
      "ai_languageModel": [
        [
          {
            "node": "Tax Report Generator Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI GPT-4": {
      "ai_languageModel": [
        [
          {
            "node": "Tax Agent Communication Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI GPT-5": {
      "ai_languageModel": [
        [
          {
            "node": "Financial Statement Generator Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI GPT-6": {
      "ai_languageModel": [
        [
          {
            "node": "Journal Entry Generator Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Calculator Tool": {
      "ai_tool": [
        [
          {
            "node": "Transaction Classifier Agent",
            "type": "ai_tool",
            "index": 0
          },
          {
            "node": "Account Reconciliation Agent",
            "type": "ai_tool",
            "index": 0
          },
          {
            "node": "Journal Entry Generator Agent",
            "type": "ai_tool",
            "index": 0
          },
          {
            "node": "Error Detection Agent",
            "type": "ai_tool",
            "index": 0
          },
          {
            "node": "Financial Statement Generator Agent",
            "type": "ai_tool",
            "index": 0
          },
          {
            "node": "Tax Report Generator Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Check for Errors": {
      "main": [
        [
          {
            "node": "Financial Statement Generator Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Tax Report Schema": {
      "ai_outputParser": [
        [
          {
            "node": "Tax Report Generator Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Format Final Report": {
      "main": [
        [
          {
            "node": "Send Summary Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Daily Accounting Run": {
      "main": [
        [
          {
            "node": "Workflow Configuration",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Journal Entry Schema": {
      "ai_outputParser": [
        [
          {
            "node": "Journal Entry Generator Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate All Results": {
      "main": [
        [
          {
            "node": "Format Final Report",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Error Detection Agent": {
      "main": [
        [
          {
            "node": "Check for Errors",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Reconciliation Schema": {
      "ai_outputParser": [
        [
          {
            "node": "Account Reconciliation Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Combine Financial Data": {
      "main": [
        [
          {
            "node": "Transaction Classifier Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Error Detection Schema": {
      "ai_outputParser": [
        [
          {
            "node": "Error Detection Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Workflow Configuration": {
      "main": [
        [
          {
            "node": "Fetch Bank Transactions",
            "type": "main",
            "index": 0
          },
          {
            "node": "Fetch Accounting System Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Bank Transactions": {
      "main": [
        [
          {
            "node": "Combine Financial Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Financial Statement Schema": {
      "ai_outputParser": [
        [
          {
            "node": "Financial Statement Generator Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Tax Report Generator Agent": {
      "main": [
        [
          {
            "node": "Tax Agent Communication Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Account Reconciliation Agent": {
      "main": [
        [
          {
            "node": "Journal Entry Generator Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Accounting System Data": {
      "main": [
        [
          {
            "node": "Combine Financial Data",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Transaction Classifier Agent": {
      "main": [
        [
          {
            "node": "Account Reconciliation Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Journal Entry Generator Agent": {
      "main": [
        [
          {
            "node": "Error Detection Agent",
            "type": "main",
            "index": 0
          },
          {
            "node": "Post Journal Entries to System",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Tax Agent Communication Agent": {
      "main": [
        [
          {
            "node": "Aggregate All Results",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Post Journal Entries to System": {
      "main": [
        [
          {
            "node": "Aggregate All Results",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Transaction Classification Schema": {
      "ai_outputParser": [
        [
          {
            "node": "Transaction Classifier Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Financial Statement Generator Agent": {
      "main": [
        [
          {
            "node": "Tax Report Generator Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}