We have not written a full description for this item yet. The text below comes from its authors.
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
Connects
Google Sheets · AI Agent · Anthropic Chat Model · OpenAI Chat Model · Google Gemini Chat Model · Think Tool