Block 1 - 📩 Receive Telegram Message
- Type / Role
- n8n-nodes-base.telegramTrigger - telegramTrigger
- Config choices
- Version 1.2
This workflow is provided as-is. Please review and test before using in production.
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 li...
n8n-nodes-base.telegramtrigger, n8n-nodes-base.googlesheets, n8n-nodes-base.aggregate, n8n-nodes-base.set, n8n-nodes-base.if, n8n-nodes-base.telegram, n8n-nodes-base.httprequest, n8n-nodes-aimlapi.aimlapi
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by AI/ML API | D1m7asis.
Original n8n.io sourceThis 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 LLM before generation.
flux-pro model (AIMLAPI)/newbot → Choose a name and usernameTelegram API: Use your bot tokenGoogle Sheets: Set up via OAuth2 or Service AccountAI/ML API: Set up with your API key from aimlapi.comImage bot usage statistic)Sheet1 user_id | date | query | result_url
Open the n8n editor and import the JSON
Update:
| Node | Function |
|---|---|
📩 Receive Telegram Message |
Triggered by user message |
📊 Fetch Usage Logs |
Reads today's entries from Sheet |
📈 Count Today’s Requests |
Counts how many generations today |
🔢 Set Daily Limit |
Sets default limit (5) |
🚦 Check Limit Exceeded? |
If over limit → notify |
🧠 Enhance Prompt |
Uses GPT-4o to improve user's prompt |
🎨 Generate Image |
Sends to AIMLAPI to generate |
🖋 Describe Image |
Generates caption for the image |
📤 Send Image to User |
Sends back to Telegram |
📝 Log Successful Generation |
Writes to Google Sheets |
Each successful generation is stored in Google Sheets:
| user_id | date | query | result_url |
|---|
User sends:
astronaut cat floating in space
Bot replies:
> Here’s your image: > A majestic feline astronaut drifts through a glittering cosmic void, its helmet reflecting starlight.
The image is sent with the caption
5 generations/day per Telegram user🔢 Set Daily Limit node/execute workflow in Telegram — not "Execute Node" in editorSet nodes for debugging as neededThis catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.
| Workflow | Generate AI images in Telegram with GPT-4o enhancement and Flux Pro |
|---|---|
| Complexity | advanced |
| Nodes | 22 |
| Categories | Content Creation, Multimodal AI |
| Author | AI/ML API | D1m7asis |
| Published | 29 Jul 2025 |
Use the JSON export at /data/workflows/6651/6651.json as the source template for this automation.
Open n8n, import the downloaded JSON, and review each node before activating the workflow.
Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.
Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.
Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.
Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.
Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.
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 li...
Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.
Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Content Creation, Multimodal AI use case.