โš’๏ธ ๐Ÿ“Š AI token tracker for WhatsApp & Telegram โ€“ Save AI usage to Google Sheets

โšก 651 views ยท โš’๏ธ Engineering

Description

๐Ÿ’ธ GPT-4o Token Tracker โ€“ Measure AI Usage and Cost via WhatsApp or Telegram

Hi! Iโ€™m Amanda โ€” I create smart, useful AI automations for n8n and Make.
This workflow helps you monitor how many tokens are consumed per conversation with AI Agent Tokens, and logs that usage into Google Sheets โ€” so you can track expenses and make smarter decisions about your AI usage.

You can connect it to Telegram or WhatsApp (via Evolution API), and it will automatically capture:


๐Ÿ“Š What this workflow does


๐Ÿงช Free Spreadsheet Template

You can duplicate and use this template for logging token usage:
๐Ÿ‘‰ Google Sheets Template

Includes columns like:


๐Ÿ› ๏ธ Setup Instructions

  1. Import the workflow to your n8n (Cloud or self-hosted)
  2. Connect your Google Sheets account
  3. Choose your trigger:
    • WhatsApp (Evolution API webhook)
    • Telegram (Bot webhook or message input)
  4. Fill out:
    • AI Agent model used (e.g. gpt-4o)
    • Cost per 1K tokens (optional, for USD estimation)
  5. Update spreadsheet ID and tab name in the Google Sheets node
  6. (Optional) Connect as a sub-tool to an AI agent for automatic logging

๐Ÿงฐ Tech Used


โœ… Who This Is For


โœ… Requirements


๐ŸŒ Want this template?

โค๏ธ Buy more workflows at: https://iloveflows.com
โ˜๏ธ Try n8n Cloud: https://n8n.partnerlinks.io/amanda

๐Ÿ”— Nodes Used

Google Sheets, HTTP Request, Webhook, Telegram, Telegram Trigger, Filter

๐Ÿ“ฅ Import

Download workflow.json and import into n8n: Workflow menu โ†’ Import from File

๐Ÿ“– Importing guide ยท ๐Ÿ”‘ Credential setup