Skip to main content

Generate monthly financial reports with Gemini AI, SQL, and Outlook

Workflow preview

Workflow preview
100%
Generate monthly financial reports with Gemini AI, SQL, and Outlook preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

AI Powered Business Performance Reporting Automation Unlock executive level insights with ZERO manual work! This n8n template empowers you to automate your entire monthly business performance re...

Best for

  • Document Extraction automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.scheduletrigger, n8n-nodes-base.mysql, n8n-nodes-base.splitinbatches, n8n-nodes-base.set, n8n-nodes-base.datetime, n8n-nodes-base.code, n8n-nodes-base.filter, n8n-nodes-base.html

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Amjid Ali.

Original n8n.io source

1.1 Workflow description

Title
Generate monthly financial reports with Gemini AI, SQL, and Outlook
Workflow name
Generate monthly financial reports with Gemini AI, SQL, and Outlook

๐Ÿš€ AI-Powered Business Performance Reporting Automation

Unlock executive-level insights with ZERO manual work!
This n8n template empowers you to automate your entire monthly business performance reporting using dynamic SQL queries, AI-driven analysis, and beautiful HTML dashboards โ€” all delivered directly to your inbox.


๐ŸŽฏ What This Automation Does

  • ๐Ÿ“† Triggers automatically every month (5th of each month)
  • ๐Ÿงฎ Fetches financial data from SQL (ERPNext or any database)
  • ๐Ÿ” Loops over cost centers to analyze each business unit individually
  • ๐Ÿ“Š Generates Profit & Loss reports, WIP, Employee stats, and vertical breakdowns
  • ๐Ÿค– Uses Google Gemini 2.5 AI to perform advanced financial analysis
  • ๐Ÿ’Œ Delivers a polished HTML report to your email inbox
  • ๐Ÿ”ง Fully modular โ€“ replace data source with Excel, Google Sheets, or APIs


๐Ÿง‘โ€๐Ÿซ Step-by-Step Video Tutorial

๐ŸŽฅ Watch the full tutorial on YouTube:

๐Ÿ“Œ Learn how each node works and see the AI-generated report in action.


๐ŸŒ Useful Links


๐Ÿ›  Requirements

  • โœ… n8n (Self-hosted or Cloud)
  • โœ… SQL Database (MySQL / PostgreSQL / ERPNext)
  • โœ… Microsoft Outlook or Gmail (to send the report)
  • โœ… Gemini API Key (for AI analysis)
  • โœ… Basic understanding of your data schema

๐Ÿ’ก Why Use This Template?

  • โฑ Saves 2-3 days of manual work every month
  • ๐Ÿ“ˆ Improves financial visibility across business units
  • ๐Ÿค Great for CFOs, COOs, Finance Analysts, and BI teams
  • ๐Ÿ”„ Scales across multiple divisions and companies
  • ๐Ÿง  Leverages AI for actionable insights and recommendations

๐Ÿงฉ Customize It Your Way

  • Replace the SQL nodes with:

    • Excel / Google Sheets
    • Airtable / APIs
    • Custom Applications
  • Swap the AI model:

    • OpenAI GPT
    • Claude
    • DeepSeek
  • Adjust the report structure or HTML style


๐Ÿ™Œ Get Started Now

๐ŸŽฏ Import the JSON template โ†’ Connect your data โ†’ Receive business insights via email.
Donโ€™t let manual reporting slow down your decision-making.

๐Ÿ‘‰ Sign up for n8n Cloud
๐Ÿ‘‰ Learn n8n with Amjid
๐Ÿ‘‰ Download Guide


Created by Amjid Ali | SyncBricksโ„ข โ€“ Automation for Everyone

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Schedule Trigger

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

Block 2 - YTD vs Prevoius Month1

Type / Role
n8n-nodes-base.mySql - mySql
Config choices
Version 2.4

Block 3 - Loop Over Items

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 4 - CostCentrs

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 5 - Date & Time

Type / Role
n8n-nodes-base.dateTime - dateTime
Config choices
Version 2

Block 6 - PreviousMonth

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 7 - Selected Cost Center

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 8 - Get Cost Centers with Budgets

Type / Role
n8n-nodes-base.mySql - mySql
Config choices
Version 2.4

Block 9 - Filter

Type / Role
n8n-nodes-base.filter - filter
Config choices
Version 2.2

Block 10 - HTML

Type / Role
n8n-nodes-base.html - html
Config choices
Version 1.2

Block 11 - verticalPL

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 12 - Merge

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.1

Block 13 - Code

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 14 - Microsoft Outlook2

Type / Role
n8n-nodes-base.microsoftOutlook - microsoftOutlook
Config choices
Version 2

Block 15 - CostCenter

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 16 - WIP1

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 17 - Employees

Type / Role
n8n-nodes-base.mySql - mySql
Config choices
Version 2.4

Block 18 - Employees1

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 19 - Wait

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 20 - Financial Performance

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 21 - Email Data

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 22 - Calculator

Type / Role
@n8n/n8n-nodes-langchain.toolCalculator - toolCalculator
Config choices
Version 1

Block 23 - Business Performance AI Agent (Analyst)

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 1.8

Block 24 - Think

Type / Role
@n8n/n8n-nodes-langchain.toolThink - toolThink
Config choices
Version 1

Showing the first 24 of 30 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Generate monthly financial reports with Gemini AI, SQL, and Outlook
Complexity advanced
Nodes 30
Categories Document Extraction, AI Summarization
Author Amjid Ali
Published 19 Apr 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/3617/3617.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Generate monthly financial reports with Gemini AI, SQL, and Outlook do?

AI Powered Business Performance Reporting Automation Unlock executive level insights with ZERO manual work! This n8n template empowers you to automate your entire monthly business performance re...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Document Extraction, AI Summarization use case.