Templates / Send monthly P&L email reports with Google Sheets, GPT-4o-mini and Gmail

Send monthly P&L email reports with Google Sheets, GPT-4o-mini and Gmail

Needs changes

by Incrementors ✓ · 20 views · created 2026-06-13 · Document Extraction, Multimodal AI

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-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This AI workflow has 10 nodes and runs on a schedule (every month). Along the way it connects Google Sheets, OpenAI Chat Model and Gmail.

How it runs

Trigger: On a schedule (every month).

  1. 2. Code — Get Previous Month (Code): runs custom JavaScript code
  2. 3. Google Sheets — Get Income Data (Google Sheets): get many
  3. 4. Google Sheets — Get Expense Data (Google Sheets): get many
  4. 5. Code — Build P&L Statement (Code): runs custom JavaScript code
  5. 6. AI Agent — Generate HTML Report (AI Agent): runs an AI agent, with model: OpenAI — GPT-4o-mini Model
  6. 7. Code — Clean HTML Output (Code): runs custom JavaScript code
  7. 8. Gmail — Email Report to Finance Team (Gmail): uses Gmail
  8. 9. Google Sheets — Log Report Run (Google Sheets): append

Services it uses

Google SheetsOpenAI Chat ModelGmail

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 6. AI Agent — Generate HTML Report (v1.9): 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).

Published 2026 — 6% of 2026 templates need changes for 3.0. See how template age affects 3.0 readiness →

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.
Removed in 3.0Replace with
AI Agent v1 (old agent modes)
6. AI Agent — Generate HTML Report (v1.9)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Nodes used (6)

From the author

Quick Overview This workflow runs monthly and pulls income and expense data from Google Sheets, calculates a prior-month profit and loss statement with budget vs actual variances, uses OpenAI GPT-4o-mini to generate an executive HTML report, emails it via…

Excerpt from Incrementors'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.