Text-to-image generation with Google Gemini & enhanced prompts via Telegram Bot
Ready for 3.0What this workflow does
This AI workflow has 7 nodes and runs on Telegram events (message). Along the way it connects Telegram and Google Gemini Chat Model. It also calls generativelanguage.googleapis.com over HTTP.
How it runs
Trigger: On Telegram events (message).
- Generate prompt (Basic LLM Chain): sends a prompt to an LLM, with model: Gemini 2.5 Pro; output parser: Structured Prompt
- Generate Image (HTTP Request): calls generativelanguage.googleapis.com (POST)
- Convert to Image (Convert to File): converts data to a file (to binary)
- Send a photo message (Telegram): send photo
Services it uses
Other Telegram + Google Gemini templates (354)
HTTP calls to: generativelanguage.googleapis.com
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 (7)
- HTTP Request
n8n-nodes-base.httpRequest - Telegram
n8n-nodes-base.telegram - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Telegram Trigger
n8n-nodes-base.telegramTrigger - Convert to File
n8n-nodes-base.convertToFile - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini
From the author
This workflow contains community nodes that are only compatible with the self-hosted version of n8n. 🤖 AI Image Generator Telegram Bot Transform simple text descriptions into stunning AI-generated images through a Telegram bot powered by Google's Gemini 2.0…