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

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

Needs changes

by Amjid Ali ✓ · 23,342 views · created 2025-04-19 · Document Extraction, AI Summarization

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 27 nodes and runs on a schedule (every month). Along the way it connects MySQL, Microsoft Outlook and Google Gemini Chat Model.

How it runs

Trigger: On a schedule (every month).

  1. Date & Time: formats or calculates dates
  2. PreviousMonth (Code): runs custom JavaScript code
  3. Get Cost Centers with Budgets (MySQL): run a query
  4. CostCentrs (Edit Fields (Set)): sets 1 field: Cost Center
  5. Filter: keeps only the items that match a condition
  6. Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
  7. Selected Cost Center (Edit Fields (Set)): sets 3 fields: CostCenter, previousMonth, year
  8. YTD vs Prevoius Month (MySQL): run a query
  9. Departments (MySQL): run a query
  10. Projects (MySQL): run a query

…plus 13 more steps. See the full node list below.

Services it uses

MySQLMicrosoft OutlookGoogle Gemini Chat Model

Before you upgrade to n8n 3.0

1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:

  • AI Agent v1 (old agent modes) in Business Performance AI Agent (Analyst) (v1.8): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).

Removed in 3.0Replace with
AI Agent v1 (old agent modes)
Business Performance AI Agent (Analyst) (v1.8)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Nodes used (15)

From the author

🚀 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…

Excerpt from Amjid Ali's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.