AgentSpend — LLM Cost Tracker & Budget Alerts
AgentSpend — LLM Cost Tracker & Budget Alerts ships as a ready-to-import n8n automation package: load the bundled workflow JSON, connect the credentials listed on this page, and activate it on self-hosted n8n or n8n Cloud.
Track your OpenAI API spend daily, log costs to Google Sheets, and get instant email alerts when your daily budget is exceeded.
- Fetch your OpenAI daily usage automatically on a recurring schedule
- Calculate per-model costs using a built-in pricing table for all major GPT models
- Log every daily cost snapshot to Google Sheets for trend tracking
- Receive an instant email alert the moment your daily budget threshold is breached
- Identify your top-spending model to guide prompt optimisation
- Customise budget threshold and alert recipients in a single Config node
Setup Service — optional live install and test. Choose your tier at checkout (not tied to this template's price).
Paste the license key from your receipt. It must match this template.
Workflow summary
One workflow handles everything end-to-end.
- 1Runs automatically every morning on a schedule
- 2Fetches yesterday's OpenAI API usage data
- 3Calculates the total dollar cost per model using built-in pricing rates
- 4Appends the daily cost snapshot to your Google Sheets usage log
- 5Checks whether the total spend exceeds your configured daily budget
- 6Sends a budget alert email if the threshold is breached
What's included with your purchase
Every checkout includes the same practical package so you are never hunting for missing files mid-setup.
- 01Workflow JSON exports ready to import into your n8n workspace (self-hosted or n8n Cloud).
- 02Step-by-step guide that walks credential creation, node-by-node checks, and activation.
- 03Credential checklist for OpenAI, Google Sheets, SMTP. Email support@n8ntemplatestore.com if you get stuck — replies within 24 hours (SLA).
- 04Perpetual (lifetime) use license Your one-time purchase includes an ongoing right to use this template package on n8n instances you control for your own automation — not for resale or public redistribution of the files as a product. Terms & conditions.
- 05We keep the copyright Workflow JSON, guides, screenshots, and bundled assets stay our copyrighted works (or our licensors'). Payment grants the limited license in our Terms only — it does not transfer ownership.
Need a second opinion before buying? Compare the full catalog or read the support policies.
Three steps to a running n8n automation
Import the workflow into n8n
Paste your API keys into the credentials panel
Press ‘activate’ — you’ll get your first report tomorrow morning
Need help setting up this n8n template?
Beginner-friendly guidance is included. Our support team will help you if you get stuck — email support@n8ntemplatestore.com or visit support.
About this template
How long does it take to set up AgentSpend — LLM Cost Tracker & Budget Alerts?
What if I get stuck?
Do I need to pay for OpenAI?
Can I customize the workflow?
What if it doesn’t work for me?
Related n8n workflow templates
Data Gatekeeper — Preflight & Failure Logging
Pre-built n8n workflow template that automates data processing with Google Sheets. Live in about 10 minutes.
Meta Audience Drift Guard
Pre-built n8n workflow template that automates marketing with Meta Marketing API. Live in about 10 minutes.
RAG Eval: Blind A/B Agent Tester
Pre-built n8n workflow template that automates data processing with OpenAI. Live in about 10 minutes.