Generate images with Pollinations & blog articles with Gemini 2.5 from Telegram
Ready for 3.0What this workflow does
This AI workflow has 30 nodes and runs on Telegram events (callback query, message). Along the way it connects Google Gemini Chat Model, Telegram, Google Sheets and Google Drive. It also calls api.telegram.org over HTTP.
How it runs
Trigger: On Telegram events (callback query, message).
- Classify Telegram Input (Code): runs custom JavaScript code
- Switch: routes items into 4 branches
- Send Main Menu to User (Telegram): uses Telegram
- Switch: routes items into 3 branches
- Validate Command Format (If): checks a condition and branches into true / false
- Store Selected Article Style (Google Sheets): append or update
- Prompt User for Image Description (Telegram): uses Telegram
- Prompt User for Blog Title (Telegram): uses Telegram
- Send Help Instructions (HTTP Request): calls api.telegram.org
- Detect Text-Based Input Type (Edit Fields (Set)): sets or maps fields
…plus 18 more steps. See the full node list below.
Services it uses
HTTP calls to: api.telegram.org
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (11)
- Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Telegram Trigger
n8n-nodes-base.telegramTrigger - Code
n8n-nodes-base.code - Switch
n8n-nodes-base.switch - Telegram
n8n-nodes-base.telegram - If
n8n-nodes-base.if - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - Google Sheets
n8n-nodes-base.googleSheets - Google Drive
n8n-nodes-base.googleDrive - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm
From the author
This n8n workflow is a Telegram bot that allows users to either: - Generate AI images using Pollinations API, or - Generate blog articles using Gemini AI Users simply type image your prompt or blog your title, and the bot responds with either an AI-generated…