Templates / Monitor budget variance with Google Sheets, Gemini, Slack, and Gmail

Monitor budget variance with Google Sheets, Gemini, Slack, and Gmail

Ready for 3.0

by WeblineIndia ✓ · 24 views · created 2026-06-24 · Document Extraction, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 15 nodes and runs on a schedule (every day at 09:00). Along the way it connects Gmail, Google Sheets, Google Gemini and Slack.

How it runs

Trigger: On a schedule (every day at 09:00).

  1. Retrieve Budget Data (Google Sheets): uses Google Sheets
  2. Retrieve Actual Spend Data (Google Sheets): uses Google Sheets
  3. Merge: merges the data from its input branches
  4. Calculate Budget Variance (Code): runs custom JavaScript code
  5. Add Status & Context Details (Edit Fields (Set)): sets 5 fields: processed_at, status_label, over_under…
  6. AI-Based Budget Analysis (Google Gemini): uses Google Gemini
  7. Extract AI Insights (Code): runs custom JavaScript code
  8. Check Variance Alert Condition (If): checks a condition and branches into true / false
  9. Send Budget Alert to Slack (Slack): uses Slack
  10. Set No-Alert Status (Edit Fields (Set)): sets 1 field: alert_sent

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

Services it uses

GmailGoogle SheetsGoogle GeminiSlack

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (9)

From the author

Quick overview This workflow runs daily to compare department budgets and actual spend from Google Sheets, calculates variance, uses Google Gemini to generate root-cause insights, sends Slack alerts when variance breaches a threshold, logs results back to…

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