Templates / Telegram AI assistant with rate limiting and auto-reset using Google Sheets

Telegram AI assistant with rate limiting and auto-reset using Google Sheets

Needs changes

by Oussama ✓ · 304 views · created 2025-08-25 · AI Chatbot, Multimodal AI

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-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This AI workflow has 15 nodes and runs on Telegram events (message) (plus 1 other trigger). Along the way it connects Google Sheets, Azure OpenAI Chat Model and Telegram.

How it runs

Trigger: On Telegram events (message) (plus 1 other trigger).

  1. Append or update row in sheet (Google Sheets): append or update
  2. Get row(s) in sheet (Google Sheets): uses Google Sheets
  3. Get row(s) in sheet (Google Sheets): uses Google Sheets
  4. Update row in sheet (Google Sheets): update
  5. Code: runs custom JavaScript code
  6. Append or update row in sheet (Google Sheets): append or update
  7. Switch: routes items into 3 branches
  8. Limit Message (Telegram): uses Telegram
  9. Agent (AI Agent): runs an AI agent, with model: Azure; memory: Memory
  10. Agent Answer (Telegram): uses Telegram

Services it uses

Google SheetsAzure OpenAI Chat ModelTelegram

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 Agent (v1.7): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).

Published 2025 — 19% of 2025 templates need changes for 3.0. See how template age affects 3.0 readiness →

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

Nodes used (10)

From the author

Production-ready solution for controlling AI agent usage and preventing abuse while managing costs. 🎯 Problem Solved Unlimited AI interactions → Excessive API costs Service abuse → Uncontrolled resource consumption No built-in limits → Need for usage quotas…

Excerpt from Oussama'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.