Create a multi-model AI chatbot with Telegram, AIMLAPI, and Google Sheets
UnknownWhat 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).
- Get Models Or Process Message? (Switch): routes items into 2 branches
- Get Models List (HTTP Request): calls api.aimlapi.com
- 📊 Fetch Usage Logs (Google Sheets): uses Google Sheets
- Code: runs custom Python code
- 📈 Count Today’s Requests (Aggregate): combines items into one
- Send a text message (Telegram): uses Telegram
- 🔢 Set Daily Limit (Edit Fields (Set)): sets 1 field: daily_limit
- 🚦 Check Limit Exceeded? (If): checks a condition and branches into true / false
- Send a chat action (Telegram): send chat action
- 🚫 Notify: Limit Exceeded (Telegram): uses Telegram
…plus 6 more steps. See the full node list below.
Services it uses
Other Telegram + Google Sheets templates (674)
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)
- Telegram Trigger
n8n-nodes-base.telegramTrigger - Google Sheets
n8n-nodes-base.googleSheets - Aggregate
n8n-nodes-base.aggregate - Edit Fields (Set)
n8n-nodes-base.set - If
n8n-nodes-base.if - Telegram
n8n-nodes-base.telegram - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - Switch
n8n-nodes-base.switch - Aiml Api
n8n-nodes-aimlapi.aimlApi
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…