Templates / 📊 AI token tracker for WhatsApp & Telegram – Save AI usage to Google Sheets

📊 AI token tracker for WhatsApp & Telegram – Save AI usage to Google Sheets

Needs changes

by Amanda Benks ✓ · 707 views · created 2025-05-09 · Engineering, AI Chatbot

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 25 nodes and runs when an HTTP GET request hits its webhook URL (plus 1 other trigger). Along the way it connects Gmail, Airtable, Google Sheets and Google Calendar and 3 more.

How it runs

Trigger: When an HTTP GET request hits its webhook URL (plus 1 other trigger).

  1. Map (Edit Fields (Set)): sets or maps fields
  2. Map (Edit Fields (Set)): sets or maps fields
  3. Audio or Text Separation (If): checks a condition and branches into true / false
  4. Text Mapping (Edit Fields (Set)): sets or maps fields
  5. GET Media (HTTP Request): calls an HTTP API
  6. Filter: keeps only the items that match a condition
  7. Convert to File: converts data to a file
  8. AI Agent: runs an AI agent, with model: Chat Model; 3 tools (Send Email, Create Event, Get Contacts)
  9. Audio Transcription (OpenAI): uses OpenAI
  10. Clean Up (Code): runs custom JavaScript code

…plus 9 more steps. See the full node list below.

Services it uses

GmailAirtableGoogle SheetsGoogle CalendarTelegramOpenAIOpenRouter Chat Model

Before you upgrade to n8n 3.0

1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:

  • AI Agent v1 (old agent modes) in AI Agent (v1.9): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Removed in 3.0Replace with
AI Agent v1 (old agent modes)
AI Agent (v1.9)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Nodes used (17)

From the author

💸 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…

Excerpt from Amanda Benks's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.