Multi-Model AI Telegram Chatbot with AIMLAPI & Usage Limits
Build a Telegram bot for dynamic multi-AI model chats using #model_id commands, with daily user limits tracked in Google Sheets and full interaction logging.
This n8n workflow creates a powerful Telegram chatbot that enables users to interact with multiple AI models from providers like OpenAI via simple #model_id commands (e.g., #openai/gpt-4o). The /models command lists all available models grouped by provider, while prompt parsing extracts the model and message seamlessly. Every interaction is logged in Google Sheets for tracking, including user queries and AI responses.
Key features include per-user daily usage limits enforced through Google Sheets lookups and updates, preventing overuse and enabling cost control. The workflow handles Telegram webhooks, processes messages intelligently, calls the AIMLAPI for dynamic model inference, and delivers responses directly to the chat. It's robust, scalable, and requires minimal maintenance once set up.
Perfect for customer support bots, community Q&A, personal AI assistants, or internal team tools. Benefits include time savings on custom bot development, centralized usage analytics, flexible model switching without redeploying, and easy integration into existing n8n setups. Customize limits, add NSFW filters, or extend logging effortlessly.
Setup is straightforward: create a Telegram bot via BotFather, configure credentials in n8n, prepare a Google Sheet with user tracking columns, and add your AIMLAPI key. Deploy in minutes for production-ready AI chat automation.
New buyers can create an account from the cart to unlock a controlled $10 first-purchase credit on eligible orders of $25+.
Secure checkout powered by Stripe
Support
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.
Related File & Document Management workflows
- Automate Invoice Data Extraction to Airtable with OCR and AI$14.99
- Save new Gmail attachments to Google Drive$3.99
- Automate PDF Invoice Creation from Google Sheets Using PDF.co$4.99
- Create Custom PDF Documents from Templates with Gemini & Google Drive$24.99
- Automatically Save and Organize Outlook Email Attachments in OneDrive Folders$9.99
- Automate Invoice Data Extraction from Google Drive to Google Sheets with Mistral OCR$14.99
More from Felix Rahman
Need this deployed? We'll set it up for you.
Our automation experts deploy this workflow in your stack, connect your accounts, and verify it works — or build a custom solution from scratch.