{
  "name": "Reconcile Stripe payments and flag anomalies with Google Sheets and Gemini AI",
  "nodes": [
    {
      "id": "c0b8d443-c42f-45c6-b55e-79de7a2f1bc5",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        192,
        272
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "a1ea0611-e04f-46fc-9183-6c68d7566afb",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        688,
        272
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "a7f51387-6d8d-484e-8f85-ef15c8f3509f",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1440,
        272
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "c8bbaa96-b2a2-46ca-9e49-a5e798358e8b",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2192,
        272
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "d8f42915-8a85-42c3-bedb-708323090a58",
      "name": "Daily Reconciliation",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        752,
        480
      ]
    },
    {
      "id": "e3455d40-5aaa-4054-a713-0567e0749dbd",
      "name": "User Settings",
      "type": "n8n-nodes-base.set",
      "position": [
        992,
        480
      ]
    },
    {
      "id": "dd56c614-41fb-478c-a610-84a2e9c6fe80",
      "name": "Fetch Stripe Transactions",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1232,
        432
      ]
    },
    {
      "id": "72291198-c351-4afe-88c3-ee0bf56c7158",
      "name": "Read Accounting Ledger",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1232,
        656
      ]
    },
    {
      "id": "b4d9172d-08b0-460c-979d-b0868a508dbd",
      "name": "Reconciliation Logic",
      "type": "n8n-nodes-base.code",
      "position": [
        1472,
        480
      ]
    },
    {
      "id": "09e2e13a-4f3b-4df5-b309-5b9a56133559",
      "name": "Has Discrepancies?",
      "type": "n8n-nodes-base.if",
      "position": [
        1712,
        480
      ]
    },
    {
      "id": "43c5992e-e5b7-48f8-b2ff-04592faaa90e",
      "name": "Prepare AI Analysis",
      "type": "n8n-nodes-base.set",
      "position": [
        1952,
        480
      ]
    },
    {
      "id": "2b8d9bef-94ec-46eb-9d9d-69654109a0da",
      "name": "AI Discrepancy Analysis",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        2240,
        480
      ]
    },
    {
      "id": "232ea342-2c12-4c81-8ad4-723048148e17",
      "name": "Gemini AI Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        2240,
        656
      ]
    },
    {
      "id": "49566a82-0f5e-4cf6-a26b-1b7caf5ee9c4",
      "name": "Format Analysis Results",
      "type": "n8n-nodes-base.code",
      "position": [
        2544,
        480
      ]
    },
    {
      "id": "f4372e1f-7075-4885-aa62-4fea6b6849f2",
      "name": "Log to Reconciliation Sheet",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        2784,
        480
      ]
    },
    {
      "id": "d834b2b0-c92e-4112-96f4-af43f821fdcd",
      "name": "Send Slack Alert",
      "type": "n8n-nodes-base.slack",
      "position": [
        2784,
        688
      ]
    },
    {
      "id": "c7f31469-1dcc-40d3-bc88-0a0e52b55a56",
      "name": "Is Monday?",
      "type": "n8n-nodes-base.if",
      "position": [
        3040,
        480
      ]
    },
    {
      "id": "a72af1b8-e10f-48bb-ad13-941eff154e92",
      "name": "Send Weekly Email Report",
      "type": "n8n-nodes-base.gmail",
      "position": [
        3232,
        464
      ]
    },
    {
      "id": "c64c9e7d-f2ed-427c-8edb-725de2fb3f2b",
      "name": "Workflow Complete",
      "type": "n8n-nodes-base.set",
      "position": [
        1712,
        688
      ]
    }
  ],
  "connections": {
    "Is Monday?": {
      "main": [
        [
          {
            "node": "Send Weekly Email Report",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "User Settings": {
      "main": [
        [
          {
            "node": "Fetch Stripe Transactions",
            "type": "main",
            "index": 0
          },
          {
            "node": "Read Accounting Ledger",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Gemini AI Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Discrepancy Analysis",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Has Discrepancies?": {
      "main": [
        [
          {
            "node": "Prepare AI Analysis",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Workflow Complete",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prepare AI Analysis": {
      "main": [
        [
          {
            "node": "AI Discrepancy Analysis",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Daily Reconciliation": {
      "main": [
        [
          {
            "node": "User Settings",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Reconciliation Logic": {
      "main": [
        [
          {
            "node": "Has Discrepancies?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Read Accounting Ledger": {
      "main": [
        [
          {
            "node": "Reconciliation Logic",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Discrepancy Analysis": {
      "main": [
        [
          {
            "node": "Format Analysis Results",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format Analysis Results": {
      "main": [
        [
          {
            "node": "Log to Reconciliation Sheet",
            "type": "main",
            "index": 0
          },
          {
            "node": "Send Slack Alert",
            "type": "main",
            "index": 0
          },
          {
            "node": "Is Monday?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Stripe Transactions": {
      "main": [
        [
          {
            "node": "Reconciliation Logic",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}