AutomationFlowsAI & RAG › Generate Comprehensive Financial Reports with Gpt-4 Analysis and Anomaly…

Generate Comprehensive Financial Reports with Gpt-4 Analysis and Anomaly…

Original n8n title: Generate Comprehensive Financial Reports with Gpt-4 Analysis and Anomaly Detection

ByMarth - Business Automation @marth on n8n.io

Imagine a dedicated financial expert tirelessly working behind the scenes, sifting through every transaction, every investment move, and every accounting entry. That's exactly what this automated system does for you, turning raw financial chaos into crystal-clear insights.…

Cron / scheduled trigger★★★★★ complexityAI-powered31 nodesHTTP RequestGoogle SheetsOpenAIGoogle DocsSlackGmail
AI & RAG Trigger: Cron / scheduled Nodes: 31 Complexity: ★★★★★ AI nodes: yes Added:

This workflow corresponds to n8n.io template #6606 — we link there as the canonical source.

This workflow follows the Gmail → Google Docs recipe pattern — see all workflows that pair these two integrations.

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "id": "2eqbazs74BzEEKiG",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "name": "Automated Comprehensive Financial Analysis & Insight Reporting System with GPT-4",
  "tags": [],
  "nodes": [
    {
      "id": "64c0cee3-091b-4d65-9bca-b9a6ed68b953",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        48,
        64
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "9f1070e7-8882-4734-8880-cceabd165510",
      "name": "Bank Transactions",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        272,
        -128
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "271ddb0e-6c43-4b4d-8b34-084d78bebab9",
      "name": "Investment Transactions",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        272,
        64
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "29c55ac0-439e-4339-906c-66aa7ea75fda",
      "name": "Accounting Data",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        272,
        256
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "1832265b-83e0-4cbe-a4fc-3a37dad66775",
      "name": "Bank",
      "type": "n8n-nodes-base.set",
      "position": [
        496,
        -128
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "520568ef-bf80-4136-9c68-eaaf4c094370",
      "name": "Investment",
      "type": "n8n-nodes-base.set",
      "position": [
        496,
        64
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "364c1a8e-d08b-46e5-a1ef-05bde5774af0",
      "name": "Accounting",
      "type": "n8n-nodes-base.set",
      "position": [
        496,
        256
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "51c3c28d-941d-4852-960f-b615d58a0bc5",
      "name": "Merge",
      "type": "n8n-nodes-base.merge",
      "position": [
        720,
        48
      ],
      "parameters": {},
      "typeVersion": 3.2
    },
    {
      "id": "ea348b04-9b57-4ef0-9699-496d7ec7d49f",
      "name": "Raw Data Storage",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        944,
        64
      ],
      "parameters": {},
      "typeVersion": 4.6
    },
    {
      "id": "352b8935-c03b-49e0-86f5-32ae9cbb8800",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -32,
        -208
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "00f10e65-f328-4feb-b4f5-85b00fdc5a69",
      "name": "Retrieve Raw Data",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        48,
        624
      ],
      "parameters": {},
      "typeVersion": 4.6
    },
    {
      "id": "f44e9b19-7210-4502-9abb-59eed1c86c8a",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        256,
        624
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "a584ca18-235b-40e7-af5c-da5019871d20",
      "name": "Transaction Categorizer",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        448,
        624
      ],
      "parameters": {},
      "typeVersion": 1.8
    },
    {
      "id": "0bd3896b-bebe-47c7-8a5d-b49ba504c3dd",
      "name": "Anomaly Detector/Red Flag Identifier",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        800,
        624
      ],
      "parameters": {},
      "typeVersion": 1.8
    },
    {
      "id": "bc4e05c3-0fda-4058-9c8c-5f857b6fa7f5",
      "name": "Consolidate AI Output & Prepare for Storage",
      "type": "n8n-nodes-base.code",
      "position": [
        1152,
        624
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "c5b0e703-b230-4a61-83d3-db763ef12666",
      "name": "Clean & Categorized Data Storage",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1360,
        624
      ],
      "parameters": {},
      "typeVersion": 4.6
    },
    {
      "id": "b810d2c3-14cc-4990-8a9f-f54c5678a9fb",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -32,
        512
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "39977087-46f2-4d10-9ae4-0b13052f5d28",
      "name": "Retrieve Clean Data for Analysis",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        48,
        1056
      ],
      "parameters": {},
      "typeVersion": 4.6
    },
    {
      "id": "c23016cc-b4dc-4bbb-b83d-d9b329b34d8f",
      "name": "Aggregate Data for Overall Analysis",
      "type": "n8n-nodes-base.code",
      "position": [
        256,
        1056
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "e3ce4622-bcc7-4ab3-8d56-75641c0714ec",
      "name": "Spending Pattern Analyst",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        464,
        1056
      ],
      "parameters": {},
      "typeVersion": 1.8
    },
    {
      "id": "373f4e31-dd7a-4480-96ce-202efd9fe2dd",
      "name": "Investment Performance Insight",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        816,
        1056
      ],
      "parameters": {},
      "typeVersion": 1.8
    },
    {
      "id": "787e42e4-99aa-44eb-84f7-3c9c4103d49e",
      "name": "Overall Financial Health Assessor & Recommendations",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        1168,
        1056
      ],
      "parameters": {},
      "typeVersion": 1.8
    },
    {
      "id": "641b2c18-8026-4014-9353-5de28a0a41ab",
      "name": "Consolidate All AI Insights",
      "type": "n8n-nodes-base.code",
      "position": [
        1520,
        1056
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "f89fee3c-cc35-4694-afe7-60ce22b1d300",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -32,
        960
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "4008159b-18b9-4cac-8951-d2482bce6ea9",
      "name": "Create Financial Report",
      "type": "n8n-nodes-base.googleDocs",
      "notes": "Value:\nreport_title: ={{ $json.report_title }}\n\nexecutive_summary: ={{ $json.executive_summary }}\n\nspending_analysis: ={{ $json.spending_analysis_text }}\n\ninvestment_insight: ={{ $json.investment_insight_text }}\n\noverall_assessment_recommendations: ={{ $json.overall_assessment_text }}\n\nflagged_transactions: ={{ $json.flagged_transactions_detail }}\n\nreport_date: ={{ $json.report_date }}",
      "position": [
        48,
        1472
      ],
      "parameters": {},
      "notesInFlow": true,
      "typeVersion": 2
    },
    {
      "id": "8c94beac-06e8-41ae-8c34-8a2b5464aa1d",
      "name": "Check for Anomalies to Trigger Alert",
      "type": "n8n-nodes-base.if",
      "position": [
        256,
        1472
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "7f3fbadb-0541-421f-900c-a685b6045512",
      "name": "Anomaly Alert",
      "type": "n8n-nodes-base.slack",
      "position": [
        464,
        1376
      ],
      "parameters": {},
      "typeVersion": 2.3
    },
    {
      "id": "c723e386-ba75-4375-8407-c2ad3e29f3e8",
      "name": "Send Final Report",
      "type": "n8n-nodes-base.gmail",
      "position": [
        480,
        1680
      ],
      "parameters": {},
      "typeVersion": 2.1
    },
    {
      "id": "286868e8-9add-43f4-829c-818e303fbdd8",
      "name": "Summary Notification",
      "type": "n8n-nodes-base.slack",
      "position": [
        688,
        1680
      ],
      "parameters": {},
      "typeVersion": 2.3
    },
    {
      "id": "c5b9cc18-2e4f-455d-ba09-60476e0c983b",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -32,
        1312
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "7fa83f75-ed39-4aa7-b91d-86de6a112547",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1072,
        -208
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "785f5f90-1d20-41b9-985d-281732312cc6",
  "connections": {
    "Bank": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge": {
      "main": [
        [
          {
            "node": "Raw Data Storage",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Accounting": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "Investment": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Accounting Data": {
      "main": [
        [
          {
            "node": "Accounting",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [
          {
            "node": "Transaction Categorizer",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Retrieve Raw Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Raw Data Storage": {
      "main": [
        [
          {
            "node": "Retrieve Raw Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Bank Transactions",
            "type": "main",
            "index": 0
          },
          {
            "node": "Investment Transactions",
            "type": "main",
            "index": 0
          },
          {
            "node": "Accounting Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Bank Transactions": {
      "main": [
        [
          {
            "node": "Bank",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Retrieve Raw Data": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Final Report": {
      "main": [
        [
          {
            "node": "Summary Notification",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Financial Report": {
      "main": [
        [
          {
            "node": "Check for Anomalies to Trigger Alert",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Investment Transactions": {
      "main": [
        [
          {
            "node": "Investment",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Transaction Categorizer": {
      "main": [
        [
          {
            "node": "Anomaly Detector/Red Flag Identifier",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Spending Pattern Analyst": {
      "main": [
        [
          {
            "node": "Investment Performance Insight",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Consolidate All AI Insights": {
      "main": [
        [
          {
            "node": "Create Financial Report",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Investment Performance Insight": {
      "main": [
        [
          {
            "node": "Overall Financial Health Assessor & Recommendations",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Clean & Categorized Data Storage": {
      "main": [
        [
          {
            "node": "Retrieve Clean Data for Analysis",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Retrieve Clean Data for Analysis": {
      "main": [
        [
          {
            "node": "Aggregate Data for Overall Analysis",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate Data for Overall Analysis": {
      "main": [
        [
          {
            "node": "Spending Pattern Analyst",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Anomaly Detector/Red Flag Identifier": {
      "main": [
        [
          {
            "node": "Consolidate AI Output & Prepare for Storage",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check for Anomalies to Trigger Alert": {
      "main": [
        [
          {
            "node": "Anomaly Alert",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send Final Report",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Consolidate AI Output & Prepare for Storage": {
      "main": [
        [
          {
            "node": "Clean & Categorized Data Storage",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Overall Financial Health Assessor & Recommendations": {
      "main": [
        [
          {
            "node": "Consolidate All AI Insights",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

Imagine a dedicated financial expert tirelessly working behind the scenes, sifting through every transaction, every investment move, and every accounting entry. That's exactly what this automated system does for you, turning raw financial chaos into crystal-clear insights.…

Source: https://n8n.io/workflows/6606/ — original creator credit. Request a take-down →

More AI & RAG workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

AI & RAG

Consultants, agencies, freelancers, and professional service firms who need to create customized proposals and contracts quickly and efficiently.

Google Sheets Trigger, OpenAI, Google Docs +5
AI & RAG

WooriFisa 최종. Uses memoryMongoDbChat, agent, httpRequest, documentDefaultDataLoader. Scheduled trigger; 68 nodes.

Memory Mongo Db Chat, Agent, HTTP Request +14
AI & RAG

A scheduled process aggregates content from eight distinct data sources and standardizes all inputs into a unified format. AI models perform sentiment scoring, detect conspiracy or misinformation sign

HTTP Request, OpenAI, Postgres +2
AI & RAG

Stop wasting billable hours on manual time-tracking. AutoTimesheet Pro uses AI to collect emails, meetings, and GitHub work, then writes a clean timesheet straight into Google Sheets. Perfect for deve

Google Calendar, Gmail, GitHub +3
AI & RAG

Who is this for? AI creators, marketers, agencies, and researchers tracking YouTube trends who need weekly high-signal insights without 4+ hours manual research.

HTTP Request, OpenAI, Google Sheets +2