Track AI Agent token usage and estimate costs in Google Sheets
This n8n template demonstrates how to obtain token usage from AI Agents and places the data into a spreadsheet that calculates the estimated cost of the execution. Obtaining the token usage from AI Agents is tricky, because it doesn't provide all the data from tool calls. This workflow taps into the workflow execution metadata to extract token usage information. Works well with OpenAI, Google and Anthropic. Other LLM providers might need small tweaks. How it works The AI Agent executes and th
Marketplace
Independent
Category
automation
More like this
Browse automation agents →
Glass Ripple
The hero effect for the AI agent era — GPU-accelerated glass ripple with CRT retro aesthetics with a lot brand icons, 11-pass WebGL2 shader pipeline
Free
automationZapier AI
Automate workflows with natural language
$19/mo
automationGoogle Workspace AI
Gemini AI across Gmail, Docs, Sheets, and Meet
$30/mo
automationn8n
Open-source workflow automation with AI nodes
$20/mo