Skip to content
FlowHubFluxonLab
C
AI Automationfree

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

by WeblineIndiaadapted from n8n official workflow galleryUpdated Aug 2026
RequiresCCodeGmailGmailGoogle GeminiGoogle SheetsGoogle SheetsSlack
Share Post Share
Send Daily Budget Email ReportSend Daily Budg…ScDaily Budget Monitoring TriggerDaily Budget Mo…Retrieve Budget DataRetrieve Budget…Retrieve Actual Spend DataRetrieve Actual…MeMerge Budget and Spend RecordsMerge Budget an…CoCalculate Budget VarianceCalculate Budge…SeAdd Status & Context DetailsAdd Status & Co…AI-Based Budget AnalysisAI-Based Budget…CoExtract AI InsightsExtract AI Insi…IfCheck Variance Alert ConditionCheck Variance …Send Budget Alert to SlackSend Budget Ale…SeMark Alert as SentMark Alert as S…SeSet No-Alert StatusSet No-Alert St…SePrepare Final Report DataPrepare Final R…Store Final Report in Google SheetsStore Final Rep…12345678910111213141516
1/5
STEPS · 16
Runs on a schedule

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 Google Sheets, and emails a daily report via Gmail. How it works Runs every day at 9:00 AM on a schedule. Reads budget and actual spend data from two Google Sheets tabs and matches records by Department. Calculates spend variance and variance percentage, then assigns a status label (Healthy/Warning/Critical) and run context like date and summary. Sends the variance details to Google Gemini to generate a JSON response with root cause, risk level, and recommendations. Checks whether the variance percentage is greater than 10% and sends a Slack alert with the AI insights when the threshold is exceeded. Appends the final analysis (including whether an alert was sent) to a Google Sheets log and sends the same report via Gmail. Setup Connect Google Sheets OAuth credentials and set the correct spreadsheet and sheet tabs for Budget Data, Actual spend, and the Final report log.

Tags

n8nreference-onlygmailgoogle-geminigoogle-sheetsslack
Connects
CCodegmailGmailGoogle GeminisheetsGoogle SheetsSlack
CategoryAI Automation
Triggermanual
Complexitycomplex
Nodes15
AddedJun 24, 2026

Related workflows

See all AI Automation
Csheetssalesforce
free

Detect revenue leakage with Salesforce, Google Sheets, Gemini, and Slack

Quick overview This workflow manually audits Closed Won Salesforce opportunities against billed amounts in Google Sheets, uses Google Gemini to analyze any revenue gap, then alerts a Slack user and writes an audit note back to the Salesforce opportunity. How it works Starts when you run the workflow manually. Fetches up to 20 Salesforce opportunities where the stage is "Closed Won" and processes them in batches with a short delay to reduce API pressure. Looks up matching billing rows in Google Sheets and totals the billed amount for the same Deal ID, then calculates the missing revenue versus the Salesforce Amount. For deals with a positive revenue gap, sends the discrepancy details to Google Gemini to classify severity and generate a root cause, recommendation, and Salesforce-ready audit note. Parses the Gemini JSON response and builds a formatted Slack message containing the deal, gap, severity, and recommended action. Sends the Slack alert and updates the Salesforce opportunity description with the audit note and the expected, billed, and missing amounts. Setup Add credentials for Salesforce OAuth2, Google Sheets OAuth2, Google Gemini (PaLM) API, and Slack OAuth2. In Salesforce,

by WeblineIndia
Csheets
free

Monitor ride surge events and analyze ride errors with Sheets, Slack and Gemini

Quick overview This workflow pulls ride events and error records from Google Sheets, detects surge pricing and long waits, and notifies via Slack. For error records, it uses Google Gemini with real-time traffic and weather API lookups to diagnose the issue and send recommended actions to Slack. How it works Runs manually and reads ride records from a Google Sheets spreadsheet. Processes the rows one by one with a short delay and routes each record based on whether its type is an event or an error. For event records, checks if the ride price is more than 1.5× the normal price and the wait time is over 10 minutes. If surge conditions are met, sends a surge and delay notification to Slack and records a surge-alert log entry. If surge conditions are not met, records a normal “no alert needed” log entry. For error records, structures the ride and error context and asks Google Gemini to generate an incident summary, probable cause, and recommended actions, calling traffic and weather APIs as needed. Parses the Gemini response into JSON and posts the formatted error report to Slack. Setup Connect Google Sheets OAuth credentials and set the correct spreadsheet and sheet tab in the Google S

by WeblineIndia
Csalesforce
free

Predict Salesforce deal escalation risk with Gemini and Slack alerts

Quick overview This workflow pulls open Salesforce opportunities and their last-30-days activities, uses Google Gemini to predict escalation risk per deal, then flags high-risk opportunities in Salesforce and notifies a Slack user. How it works Starts manually and fetches open opportunities and recent Salesforce Task activities from the last 30 days. Merges opportunities with their related activities and builds a per-deal context including amount, probability, type, activity list, and whether all activities are completed. Batches the deals and skips ones that have 100% probability and active/completed engagement, then waits briefly between remaining items to reduce API load. Sends each deal context to Google Gemini to classify risk (high/medium/low), identify specific risk flags, and return a one-line summary as JSON. Cleans and validates the Gemini response by stripping formatting, parsing JSON safely, and normalizing invalid risk levels to “unknown.” For deals marked as high risk, updates the Salesforce opportunity description with the risk details and sends a formatted alert message to a specified Slack user. Setup Add Salesforce OAuth2 credentials and ensure the workflow has ac

by WeblineIndia