{
  "name": "Generate monthly AI financial reports with OpenAI and email/Slack distribution",
  "nodes": [
    {
      "id": "fa3d6986-029c-4604-b411-018d91531334",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -320,
        -64
      ],
      "parameters": {
        "width": 920,
        "height": 850,
        "content": "## AI Financial Report Analyzer\n\nAutomates financial data analysis and generates executive summaries with AI-powered insights, anomaly detection, and management recommendations.\n\n## How it works\n\n1. *"
      }
    },
    {
      "id": "23b8cef1-684a-4b1a-87f9-6bff9e1b6853",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        800,
        96
      ],
      "parameters": {
        "width": 520,
        "height": 882,
        "content": "## 1. Trigger & Extract Data\n\nMonthly schedule and fetch financial statements from accounting systems"
      }
    },
    {
      "id": "ac588f16-6d13-438b-8ed4-0eced4a8258b",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1344,
        176
      ],
      "parameters": {
        "width": 376,
        "height": 642,
        "content": "## 2. Data Normalization & Validation\n\nStandardize formats and calculate financial metrics & ratios"
      }
    },
    {
      "id": "e95b2ae4-4412-4ffc-b1bc-f66705a08392",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1744,
        176
      ],
      "parameters": {
        "width": 408,
        "height": 650,
        "content": "## 3. Analysis & Anomaly Detection\n\nDetect trends, analyze variance, and identify unusual patterns"
      }
    },
    {
      "id": "390d4191-07c1-448e-a44b-08fb019eb14d",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2192,
        144
      ],
      "parameters": {
        "width": 416,
        "height": 678,
        "content": "## 4. AI Insights & Report Generation\n\nGenerate executive summaries and professional reports with visualizations"
      }
    },
    {
      "id": "165661f0-6e1f-41de-a766-8036adfae0a2",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2656,
        160
      ],
      "parameters": {
        "width": 672,
        "height": 662,
        "content": "## 5. Distribution & Notification\n\nSend reports to stakeholders and store for historical tracking"
      }
    },
    {
      "id": "575a55b8-8934-49d1-bee6-6fa1c9d71dfc",
      "name": "Monthly analysis on 1st at 8 AM",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        896,
        528
      ]
    },
    {
      "id": "8ed15a21-42ed-49f6-9fcd-bbfc354da12d",
      "name": "Fetch P&L statement",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1120,
        240
      ]
    },
    {
      "id": "d47ff1e3-00de-4315-ac5e-b2cad509911d",
      "name": "Fetch balance sheet",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1120,
        432
      ]
    },
    {
      "id": "35dc354f-bca6-42ec-a9c3-fa5051be8735",
      "name": "Fetch cash flow statement",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1120,
        624
      ]
    },
    {
      "id": "70c8bc63-01e0-4f90-92d3-69a880c68154",
      "name": "Fetch previous period data for comparison",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1120,
        816
      ]
    },
    {
      "id": "232f5f9e-6fd7-4bb9-a133-3578fd459b48",
      "name": "Merge all financial statements",
      "type": "n8n-nodes-base.merge",
      "position": [
        1344,
        528
      ]
    },
    {
      "id": "9e0a3cfb-9abf-4c63-b4b6-e69d4e17c778",
      "name": "Normalize and validate financial data",
      "type": "n8n-nodes-base.code",
      "position": [
        1568,
        528
      ]
    },
    {
      "id": "b27ded34-c82c-4c72-b3d5-f50c7612a1bc",
      "name": "Analyze trends and detect anomalies",
      "type": "n8n-nodes-base.code",
      "position": [
        1792,
        528
      ]
    },
    {
      "id": "145cc376-6846-4a02-8d91-d2be55c6f62c",
      "name": "Generate AI-powered insights",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2016,
        528
      ]
    },
    {
      "id": "d281d367-1a9b-45c9-a7ee-4851da626664",
      "name": "Extract and format AI insights",
      "type": "n8n-nodes-base.code",
      "position": [
        2240,
        528
      ]
    },
    {
      "id": "9a54d6f7-4178-4302-b38d-6466b9ff38c2",
      "name": "Generate professional HTML report",
      "type": "n8n-nodes-base.code",
      "position": [
        2464,
        528
      ]
    },
    {
      "id": "abdb8991-a0f3-4fef-aa36-c62a80fab38e",
      "name": "Store report in database",
      "type": "n8n-nodes-base.postgres",
      "position": [
        2688,
        528
      ]
    },
    {
      "id": "b67b4383-3cb0-45ac-bb00-19eb5763bba4",
      "name": "Post report summary to Slack",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2912,
        432
      ]
    },
    {
      "id": "9baeaf5c-5030-4215-8199-ca0302039cdd",
      "name": "Email report to management",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        2912,
        624
      ]
    },
    {
      "id": "cfbdf0ec-94f2-41b5-8c62-d0bfade59083",
      "name": "Log report generation completion",
      "type": "n8n-nodes-base.code",
      "position": [
        3136,
        528
      ]
    }
  ],
  "connections": {
    "Fetch P&L statement": {
      "main": [
        [
          {
            "node": "Merge all financial statements",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch balance sheet": {
      "main": [
        [
          {
            "node": "Merge all financial statements",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Store report in database": {
      "main": [
        [
          {
            "node": "Post report summary to Slack",
            "type": "main",
            "index": 0
          },
          {
            "node": "Email report to management",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch cash flow statement": {
      "main": [
        [
          {
            "node": "Merge all financial statements",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Email report to management": {
      "main": [
        [
          {
            "node": "Log report generation completion",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate AI-powered insights": {
      "main": [
        [
          {
            "node": "Extract and format AI insights",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Post report summary to Slack": {
      "main": [
        [
          {
            "node": "Log report generation completion",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract and format AI insights": {
      "main": [
        [
          {
            "node": "Generate professional HTML report",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge all financial statements": {
      "main": [
        [
          {
            "node": "Normalize and validate financial data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Monthly analysis on 1st at 8 AM": {
      "main": [
        [
          {
            "node": "Fetch P&L statement",
            "type": "main",
            "index": 0
          },
          {
            "node": "Fetch balance sheet",
            "type": "main",
            "index": 0
          },
          {
            "node": "Fetch cash flow statement",
            "type": "main",
            "index": 0
          },
          {
            "node": "Fetch previous period data for comparison",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate professional HTML report": {
      "main": [
        [
          {
            "node": "Store report in database",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Analyze trends and detect anomalies": {
      "main": [
        [
          {
            "node": "Generate AI-powered insights",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Normalize and validate financial data": {
      "main": [
        [
          {
            "node": "Analyze trends and detect anomalies",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch previous period data for comparison": {
      "main": [
        [
          {
            "node": "Merge all financial statements",
            "type": "main",
            "index": 1
          }
        ]
      ]
    }
  }
}