Chat with multiple AI models through Telegram with daily limits

Lets people message a Telegram bot to chat with different AI models while tracking each person's daily usage.

How the work actually flows

It branches. Exactly one path is taken.

Pattern: Exclusive Choice (4)

flowchart TD trig>"chat message received"]:::trig s0["read message and model choice"]:::task s1[("check daily usage limit")]:::store trig --> s0 s0 --> s1 gx{"× under daily limit"}:::gate s1 --> gx p00["send request to model"]:::task gx -->|"within limit"| p00 p01["reply and log usage"]:::task p00 --> p01 p10["send limit reached message"]:::task gx -->|"over limit"| p10 p01 --> out p10 --> out out[/"ai reply delivered to user"/]:::out pay{{"usage and cost stay controlled"}}:::pay 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 stepA record or sheetOne path onlyResultPayoff
Build size
Advanced

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

Business functions
AI Chatbots & AssistantsMessaging & NotificationsSpreadsheet & Database Ops
Connects
TelegramGoogle SheetsAIMLAPI

The problem it solves

You want to give your team or customers access to an AI assistant through chat, but building separate tools for each AI model is impractical, and letting usage run unchecked could get expensive fast.

Who it fits

Businesses offering an AI chat assistant to staff or customers who need to control usage and cost.

How it works

  1. Triggered when someone messages the Telegram bot
  2. The system reads which AI model they picked and their message
  3. It checks their usage for the day against a limit in Google Sheets
  4. If they're within limit, the request goes to the chosen AI model
  5. The reply is sent back in Telegram and the usage is logged
What you get

AI conversations your team can access daily

Your staff or customers can chat with several AI models through Telegram while their daily usage stays tracked automatically.

What you get

An AI-generated reply delivered in Telegram, with usage tracked per person.

What you need

A Telegram bot, an AIMLAPI account, and a Google Sheets account.

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