Track AI usage and cost automatically in Google Sheets

Every AI conversation on WhatsApp or Telegram gets logged to a spreadsheet, so you can track usage and cost over time.

How the work actually flows

A straight line.

Pattern: Sequence (1) ยท Transient Trigger (23)

flowchart TD trig>"chat message sent"]:::trig s0["ai responds to message"]:::svc s1["record token usage"]:::task s2["calculate estimated cost"]:::task s3[("log row in spreadsheet")]:::store trig --> s0 s0 --> s1 s1 --> s2 s2 --> s3 out[/"spreadsheet of usage and cost"/]:::out pay{{"visibility into ai costs without checking billing"}}:::pay s3 --> out out --> pay classDef task fill:#e7f6fe,stroke:#34b8f0,color:#2c2a29 classDef svc fill:#f6f8fa,stroke:#7c8795,color:#2c2a29 classDef mi fill:#e7f6fe,stroke:#0079a8,color:#2c2a29,stroke-width:2px classDef human fill:#fff,stroke:#0079a8,color:#0079a8 classDef store fill:#f6f8fa,stroke:#0079a8,color:#2c2a29 classDef trig fill:#00a4eb,stroke:#0079a8,color:#fff,font-weight:bold classDef trigtime fill:#00a4eb,stroke:#0079a8,color:#fff,font-weight:bold classDef trigdata fill:#8ad4f5,stroke:#0079a8,color:#06314c,font-weight:bold classDef gate fill:#fff,stroke:#e8a23d,color:#6b4708,font-weight:bold classDef out fill:#1f9d6b,stroke:#167a53,color:#fff,font-weight:bold classDef pay fill:#06314c,stroke:#021f33,color:#fff
Starts itA stepAn outside serviceA record or sheetResultPayoff
Build size
Advanced

A larger build with multiple systems, AI reasoning, and custom rules.

Business functions
AI Agents & Autonomous SystemsMessaging & NotificationsDocument Processing & OCRSpreadsheet & Database Ops
Connects
WhatsAppTelegramOpenAIGoogle Sheets

The problem it solves

AI features are easy to add but hard to keep an eye on, and costs can creep up without warning if you're not tracking every conversation. You want visibility into how much your team or customers are actually using AI, without checking a billing dashboard every day.

Who it fits

Agencies and businesses running AI chatbots for clients who need to monitor usage and control costs.

How it works

  1. A customer or team member sends a message through WhatsApp or Telegram
  2. The AI agent responds and records how many tokens the exchange used
  3. The system calculates the total tokens and estimated cost
  4. A new row with the usage details appears in Google Sheets
What you get

AI costs tracked automatically over time

Every AI conversation on WhatsApp or Telegram gets logged with token counts and cost in a spreadsheet automatically.

What you get

An up-to-date spreadsheet logging every AI conversation's token usage and estimated cost.

What you need

An OpenAI account, a Google account, and a WhatsApp or Telegram bot connection.

We can build this. But should you?

The hard question is not how to build it. It is whether this is the right thing to build first.

That is what a Fractional Chief AI Officer figures out with you, before anyone writes a line of code.

Let's Talk Strategy

Related automations

Back to the AI Playbook