I’m currently using the AI Agent in n8n, with the model configured via the Azure OpenAI node under the model section.
While I can see the token usage details from the Azure OpenAI node’s output, I’m looking for a way to track token usage directly from the AI Agent itself — without having to use an HTTP node or check the API provider’s dashboard.
Is there any built-in way to access this information directly from the agent?
Also, if there’s any recommended approach to store the token usage (from either the AI Agent or model node) into a Google Sheet or database, that would be extremely helpful as well.
Structure of AI Agent:
Output of Model Node:
Output of AI Agent Node:


