Generate AI images in Telegram with GPT-4o enhancement and Flux Pro
UnknownWhat this workflow does
This workflow has 11 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).
- 📊 Fetch Usage Logs (Google Sheets): uses Google Sheets
- 📈 Count Today’s Requests (Aggregate): combines items into one
- 🔢 Set Daily Limit (Edit Fields (Set)): sets 1 field: daily_limit
- 🚦 Check Limit Exceeded? (If): checks a condition and branches into true / false
- 🧠 Enhance Prompt (AI/ML API | GPT-4o) (Aiml Api): uses Aiml Api
- 🚫 Notify: Limit Exceeded (Telegram): uses Telegram
- 🎨 Generate Image (AI/ML API | flux-pro) (HTTP Request): calls api.aimlapi.com (POST)
- 🖋 Describe Image (AI/ML API | GPT-4o) (Aiml Api): uses Aiml Api
- 📤 Send Image to User (Telegram): send photo
- 📝 Log Successful Generation (Google Sheets): append
Services it uses
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 🧠 Enhance Prompt (AI/ML API | GPT-4o), 🖋 Describe Image (AI/ML API | GPT-4o)).
Nodes used (8)
- 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 - Aiml Api
n8n-nodes-aimlapi.aimlApi
From the author
🧠 AI Image Generator Bot — Telegram + AI/ML API This n8n workflow allows users to generate AI-generated images by sending messages to a Telegram bot. Each request is logged in Google Sheets and limited by a daily quota per user. Image prompts are enhanced by…