Templates / Cap daily AI model spend per workflow with Google Sheets and Slack

Cap daily AI model spend per workflow with Google Sheets and Slack

Ready for 3.0

by isaWOW ✓ · 0 views · created 2026-10-08 · DevOps

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 workflow has 19 nodes and runs when another workflow calls it (plus 1 other trigger). Along the way it connects Google Sheets and Slack.

How it runs

Trigger: When another workflow calls it (plus 1 other trigger).

  1. Read The Request (Code): runs custom JavaScript code
  2. Read Yesterday's Ledger (Data table): get
  3. Load Budgets (Google Sheets): uses Google Sheets
  4. Build The Spend Summary (Code): runs custom JavaScript code
  5. Load Model Prices (Google Sheets): uses Google Sheets
  6. Anything To Report? (If): checks a condition and branches into true / false
  7. Resolve Budget And Day (Code): runs custom JavaScript code
  8. Post The Summary To Slack (Slack): uses Slack
  9. Read Today's Ledger Row (Data table): get
  10. Check Or Record? (Switch): routes items into 2 branches

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

Services it uses

Google SheetsSlack

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 caps per-workflow daily AI spend by tracking token usage in an n8n Data Table, looking up budgets and model pricing in Google Sheets, and sending one-time threshold alerts plus a daily spend summary to Slack. How it works 1.…

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