Telegram AI Assistant with Rate Limiting & Auto-Reset via Google Sheets
Production-ready Telegram bot with AI responses, user message rate limiting using Google Sheets, and automated counter resets to control costs and prevent abuse.
This workflow implements a robust Telegram AI assistant that tracks user interactions via Google Sheets to enforce rate limits, preventing excessive API usage and service abuse. The main flow triggers on Telegram messages, logs counters per user (chat ID in Column A, count in Column B), uses switch logic to check limits (default: 3 messages), and routes to AI processing or block/warning responses. A separate scheduled reset flow clears all counters at configurable intervals (e.g., daily, hourly)
Platform
n8n
Category
Health & Fitness
Price
$24.99
Creator
Maxim Luong
Telegram
AI Agent
Rate Limiting
Google Sheets
Cost Control
Automation
Bot Management
Quota System
Anti-Abuse
Scheduled Reset
How to import this workflow into n8n
1Purchase or download the workflow to get the n8n workflow JSON file.
2In your n8n instance, open Workflows and choose "Import from File" (or paste the JSON with Ctrl+V on the canvas).
3Open each node marked with a credential warning and connect your own accounts and API keys.
4Run the workflow once manually to verify the data flow, then toggle it to Active.