Templates / Create a multi-model AI chatbot with Telegram, AIMLAPI, and Google Sheets

Create a multi-model AI chatbot with Telegram, AIMLAPI, and Google Sheets

Unknown

by AI/ML API | D1m7asis ✓ · 1,071 views · created 2025-08-06 · Personal Productivity, AI Chatbot

Unknown. This template uses community nodes we can't verify statically. Uses community nodes that can't be verified statically (unverified community packages are off by default in 3.0). Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This workflow has 17 nodes and runs on Telegram events (message). Along the way it connects Telegram, Google Sheets and Aimlapi (community). It also calls api.aimlapi.com over HTTP.

How it runs

Trigger: On Telegram events (message).

  1. Get Models Or Process Message? (Switch): routes items into 2 branches
  2. Get Models List (HTTP Request): calls api.aimlapi.com
  3. 📊 Fetch Usage Logs (Google Sheets): uses Google Sheets
  4. Code: runs custom Python code
  5. 📈 Count Today’s Requests (Aggregate): combines items into one
  6. Send a text message (Telegram): uses Telegram
  7. 🔢 Set Daily Limit (Edit Fields (Set)): sets 1 field: daily_limit
  8. 🚦 Check Limit Exceeded? (If): checks a condition and branches into true / false
  9. Send a chat action (Telegram): send chat action
  10. 🚫 Notify: Limit Exceeded (Telegram): uses Telegram

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

Services it uses

TelegramGoogle SheetsAimlapi (community)

HTTP calls to: api.aimlapi.com

Before you upgrade to n8n 3.0

We can't fully verify this one: it relies on 1 community package, and n8n 3.0 turns unverified community packages off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).

  • Check that n8n-nodes-aimlapi is verified or supports 3.0 (used in 🧠 Generate Msg (AI/ML API | GPT-4o), 🧠 Generate Msg (AI/ML API | Custom Model)).

Nodes used (10)

From the author

📲 AI Multi-Model Telegram Chatbot (n8n + AIMLAPI) This n8n workflow enables Telegram users to interact with multiple AI models dynamically using modelid commands. It also supports a /models command to list all available models. Each user has a daily usage…

Excerpt from AI/ML API | D1m7asis'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.