{
  "name": "Expense organizer with Google Drive routing and Gemini AI entity detection",
  "nodes": [
    {
      "id": "366d6b5d-97b0-4d2c-b616-c36dca573897",
      "name": "personal",
      "type": "n8n-nodes-base.if",
      "position": [
        240,
        -96
      ]
    },
    {
      "id": "8988762e-61e3-4426-8925-5902c48d1e22",
      "name": "business",
      "type": "n8n-nodes-base.if",
      "position": [
        272,
        48
      ]
    },
    {
      "id": "5f8454f2-66b5-4c8f-b9b4-39a109cb98dd",
      "name": "shared",
      "type": "n8n-nodes-base.if",
      "position": [
        320,
        192
      ]
    },
    {
      "id": "a8312156-2ddd-4ea0-9a64-bc81ed415267",
      "name": "On form submission",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -800,
        -48
      ]
    },
    {
      "id": "16a28cb0-2922-43bf-bf96-400995beac6b",
      "name": "Extract from File",
      "type": "n8n-nodes-base.extractFromFile",
      "position": [
        -272,
        -288
      ]
    },
    {
      "id": "1b322926-6839-4476-b273-65ce9cf5df4f",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -32,
        -512
      ]
    },
    {
      "id": "c06903cc-294e-45c2-92b6-fea447ff5a1e",
      "name": "Google Gemini Chat Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        240,
        -352
      ]
    },
    {
      "id": "22e7e1dc-2196-4e20-8e09-f9340c3aa1e4",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        576,
        -448
      ]
    },
    {
      "id": "8326b498-8af3-43c6-a413-2238ce7dbb8a",
      "name": "Upload file",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        800,
        -368
      ]
    },
    {
      "id": "2c12fae4-d316-40e1-8f56-5349314c92e6",
      "name": "Upload file1",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        976,
        -160
      ]
    },
    {
      "id": "f576868c-7d35-4a36-94fd-f659ab415107",
      "name": "Code",
      "type": "n8n-nodes-base.code",
      "position": [
        560,
        -80
      ]
    },
    {
      "id": "ee42a0c0-c38b-48cc-a97d-fdd90d89e34c",
      "name": "Code1",
      "type": "n8n-nodes-base.code",
      "position": [
        464,
        -224
      ]
    },
    {
      "id": "211b4848-5f68-4fcf-b925-a4d3da03443d",
      "name": "Code2",
      "type": "n8n-nodes-base.code",
      "position": [
        512,
        352
      ]
    },
    {
      "id": "ca1baad9-432a-4ccf-9060-620aec1205ad",
      "name": "Upload file2",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        784,
        288
      ]
    },
    {
      "id": "05133746-35a7-45f6-90da-a885f478615f",
      "name": "Merge2",
      "type": "n8n-nodes-base.merge",
      "position": [
        1024,
        176
      ]
    },
    {
      "id": "a7120d38-1440-488a-8c1c-c3c8556fcc15",
      "name": "Send a message",
      "type": "n8n-nodes-base.gmail",
      "position": [
        1264,
        48
      ]
    },
    {
      "id": "448844b5-d210-498d-8eb8-54ae8d7f9936",
      "name": "Send a message1",
      "type": "n8n-nodes-base.gmail",
      "position": [
        528,
        80
      ]
    },
    {
      "id": "e791c8b3-ee79-4db3-a4aa-a23067a4fa52",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -256,
        -112
      ],
      "parameters": {
        "width": 208,
        "height": 80,
        "content": "# Personal"
      }
    },
    {
      "id": "4016b83c-025c-4e2b-b461-a5813e159ca9",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -224,
        48
      ],
      "parameters": {
        "width": 208,
        "height": 80,
        "content": "# Business"
      }
    },
    {
      "id": "8e40fc28-58df-4f09-b478-fdb2b197ac34",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -208,
        208
      ],
      "parameters": {
        "width": 208,
        "height": 80,
        "content": "# Shared"
      }
    },
    {
      "id": "b63b8504-4c44-4045-85ee-32c79c8519dc",
      "name": "If",
      "type": "n8n-nodes-base.if",
      "position": [
        -560,
        -192
      ]
    },
    {
      "id": "3c457e36-04e4-445d-aaa7-fe5c0605d0ff",
      "name": "Upload a file",
      "type": "n8n-nodes-base.s3",
      "position": [
        960,
        0
      ]
    },
    {
      "id": "be9c204f-77d8-45e4-b0e0-e9f7197b59a4",
      "name": "Upload a file1",
      "type": "n8n-nodes-base.s3",
      "position": [
        784,
        -240
      ]
    },
    {
      "id": "37419632-4f39-4d07-a679-28a4cef8deed",
      "name": "Upload a file2",
      "type": "n8n-nodes-base.s3",
      "position": [
        784,
        448
      ]
    }
  ],
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "Extract from File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code": {
      "main": [
        [
          {
            "node": "Upload file1",
            "type": "main",
            "index": 0
          },
          {
            "node": "Upload a file",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code1": {
      "main": [
        [
          {
            "node": "Upload file",
            "type": "main",
            "index": 0
          },
          {
            "node": "Upload a file1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code2": {
      "main": [
        [
          {
            "node": "Upload file2",
            "type": "main",
            "index": 0
          },
          {
            "node": "Upload a file2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge2": {
      "main": [
        [
          {
            "node": "Send a message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "shared": {
      "main": [
        [
          {
            "node": "Code2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "Merge2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "business": {
      "main": [
        [
          {
            "node": "Code",
            "type": "main",
            "index": 0
          },
          {
            "node": "Send a message1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "personal": {
      "main": [
        [
          {
            "node": "Code1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload file": {
      "main": [
        []
      ]
    },
    "Upload file1": {
      "main": [
        []
      ]
    },
    "Upload file2": {
      "main": [
        [
          {
            "node": "Merge2",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Extract from File": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "On form submission": {
      "main": [
        [
          {
            "node": "personal",
            "type": "main",
            "index": 0
          },
          {
            "node": "business",
            "type": "main",
            "index": 0
          },
          {
            "node": "shared",
            "type": "main",
            "index": 0
          },
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "AI Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    }
  }
}