AutomationMart
Home/Browse/Text-to-image generation with Google Gemini & enhanced prompts via Telegram Bot
n8n

Text-to-image generation with Google Gemini & enhanced prompts via Telegram Bot

n8nn8n7 modulesv1.0
TelegramGemini

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 Flash image. This workflow automatically enhances user prompts with professional prompt engineering techniques and delivers high-quality images directly to your Telegram chat. 🎯 What This Workflow Does This automation creates an intel

At a glance

Text-to-image generation with Google Gemini & enhanced prompts via Telegram Bot is a ready-made n8n workflow you import as a workflow JSON file β€” no build required. It connects Telegram, Gemini. It's free to download. Follow the 5-step import below to go live in minutes.

Platform
n8n
Connects
Telegram, Gemini
Modules
7
Price
Free
Version
v1.0
Text-to-image generation with Google Gemini & enhanced prompts via Telegram Bot workflow diagram

About this workflow

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 Flash image. This workflow automatically enhances user prompts with professional prompt engineering techniques and delivers high-quality images directly to your Telegram chat. 🎯 What This Workflow Does This automation creates an intelligent Telegram bot that: - Receives text messages from users describing what image they want - Enhances prompts using AI-powered prompt engineering to add artistic details, lighting, composition, and style specifications - Generates images using Google's Gemini 2.0 Flash image generation model - Delivers results instantly back to the user's Telegram chat ⚑️ Key Features - Smart Prompt Enhancement: Automatically transforms basic requests like "a cat on a windowsill" into detailed, professional prompts with lighting, composition, and style details - Professional Image Quality: Leverages Google's latest Gemini 2.0 Flash model for high-quality image generation - Instant Delivery: Images are generated and sent back to users within seconds - User-Friendly: Simple text-to-image conversion through familiar Telegram interface - Structured Output: Uses JSON schema to ensure consistent prompt formatting πŸ› οΈ How It Works 1. Telegram Trigger: Listens for incoming messages from users 2. AI Prompt Enhancement: Uses Gemini 2.5 Flash Lite to analyze and expand user requests into detailed prompts 3. Structured Processing: Formats the enhanced prompt using JSON schema for consistency 4. Image Generation: Sends the enhanced prompt to Gemini 2.0 Flash image generation API 5. File Conversion: Converts the generated image data to a file format 6. Delivery: Sends the generated image back to the user via Telegram 🎭 Use Cases - Creative Content Creation: Generate artwork, illustrations, and visual concepts - Social Media Content: Create unique images for posts and stories - Concept Visualization: Turn ideas into visual representations - Educational Materials: Generate images for presentations and learning materials - Personal Projects: Create custom artwork for personal use πŸ“‹ Prerequisites Before setting up this workflow, you'll need: Required Accounts & APIs: - Telegram Bot Token: Create a bot via @BotFather - Google AI Studio Account: Access to Gemini API services Required Credentials: - Telegram Bot API credentials - Google Gemini API key with access to: - Gemini 2.5 Pro (for prompt enhancement) - Gemini 2.0 Flash Preview (for image generation) πŸš€ Setup Instructions 1. Import the Workflow: Copy the workflow JSON into your n8n instance 2. Configure Telegram Bot: - Create a new bot using @BotFather - Add your bot token to the Telegram credentials in n8n 3. Set Up Google Gemini API: - Create API key from Google AI Studio and add to n8n credentials 4. Activate the Workflow: Enable the workflow to start receiving messages πŸ’‘ Customization Options - Prompt Templates: Modify the prompt enhancement instructions for different artistic styles - Image Parameters: Adjust generation settings for different image formats and qualities - Response Formats: Customize how images are delivered (with captions, multiple formats, etc.) πŸ“Š Example Interaction User Input: "Generate a beautiful image of a dragon from game of thrones" Enhanced Prompt: "A majestic, formidable dragon, reminiscent of those from Game of Thrones, perched atop a jagged, snow-capped mountain peak. The dragon is depicted with immense, leathery wings unfurled, scales glinting with iridescent blues and deep charcoals under the harsh, cold light. Its eyes glow with an inner, fiery amber. The scene is captured with a dramatic, low-angle wide shot, emphasizing the dragon's sheer scale against a turbulent, stormy sky filled with dark, bruised clouds and streaks of lightning. The atmosphere is oppressive and foreboding, with biting wind and swirling snow creating a sense of raw power and danger. The color palette is dominated by icy blues, stark greys, deep blacks, and the contrasting fiery glow of the dragon's eyes and perhaps a hint of internal fire. Rendered in a hyperrealistic, cinematic digital art style, with exceptional attention to detail on the scales, musculature, and the texture of the rocky environment. Lighting is dramatic and high-contrast, with sharp highlights on the dragon's form and deep, impenetrable shadows. Quality specifications include ultra-high detail, 8K resolution, photorealistic rendering, and an epic, awe-inspiring mood, evoking the grandeur and terror of powerful fantasy creatures." Result:

Related N8n workflows

Create a request from a Telegram message

This scenario lets you create requests with just one message in telegram.

Free

Filter breaking geopolitical news with AI scoring & Telegram alerts

Geopolitics Breaking News Alert System Workflow Name: Geopolitics Breaking News Alert System Author: Devjothi Dutta Category: Productivity, News & Media, AI/Machine Learning Complexity: Medium Setup Time: 45-60 minutes --- --- πŸ“– Description An intelligent geopolitical monitoring system that filters 200+ daily news articles down to only the critical breaking news that matters to you. This workflow uses smart keyword filtering and

Free

Configure Telegram bot webhooks with form automation

Telegram Bot Webhook Configuration Tool This workflow creates a simple web form that helps you configure Telegram bot webhooks quickly. Instead of manually constructing the Telegram API URL, this tool does it for you automatically. How It Works The workflow consists of three main steps: 1. Form Input: A web form collects your bot token and webhook URL 2. URL Construction: Automatically builds the correct Telegram API URL 3. Redirect: Takes you directly to the Telegram API to complete the configu

Free

Evaluate AI workflows using Google Sheets, Gemini, Claude, GPT, and Perplexity

This template and YouTube video goes over 5 different implementations of evaluations within n8n. - Categorization - Correctness - Tools used - String similarity - Helpfulness You’ll learn when to use each type, how to set up test datasets in Google Sheets or data tables, and how to track your results over time. I also explain best practices like only changing one variable at a time, documenting your prompts and model settings, and building proper training datasets with enough examples to confi

Free

Automated daily news summaries with OpenRouter AI & Gmail delivery

Daily AI News Summary & Gmail Delivery This n8n template demonstrates how to build an autonomous AI agent that automatically scours the web for the latest news, intelligently summarizes the top stories, and delivers a professional, formatted news digest directly to your email inbox. Use cases are many: Create a personalized daily briefing to start your day informed, keep your team updated on industry trends and competitor news, or automate content curation for your newsletter. Good to know At t

Free

AI-Powered RAG Document Processing & Chatbot with Google Drive, Supabase, OpenAI

Who is this for? This workflow is perfect for: Businesses and teams who need an automated solution to organize, analyze, and retrieve insights from their internal documents. Researchers who want to quickly analyze and query large collections of research papers, reports, or datasets. Customer support teams looking to streamline access to product documentation and support resources. Legal and compliance professionals needing to reference and query legal documents with confidence.

Free

Reddit lead finder: Automated prospecting with GPT-4, Supabase and Gmail alerts

This workflow monitors targeted subreddits for potential sales leads using Reddit’s API, AI content analysis, Supabase, and Google Sheets. It is built specifically to discover posts from Reddit users who may benefit from a particular product or service. It can be easily customized for any market. --- πŸ” Features - Targeted Subreddit Monitoring: Searches multiple niche subreddits like smallbusiness, startup, sweatystartup, etc., using relevant keywords. - AI-Powered Relevance Scoring: Uses Ope

Free

Transform images into AI videos with MiniMax Hailuo 02. Upload to YouTube/TikTok

This automated workflow takes a static image and a textual prompt and transforms them into an animated video using the MiniMax Hailuo 02 model. It then uploads the generated video to YouTube and TikTok, and updates a Google Sheet with relevant links and metadata. --- Benefits of This Workflow Fully Automated Pipeline: From prompt to video to social media publication β€” all without manual intervention. Scalable Content Creation: Generate and distribute dozens of videos per hour with minimal huma

Free

Reviews

No reviews yet

Be the first to buy and share your experience.

Leave a review

Sign in to share your experience with this workflow.

Log in to review
Free
No ratings yet

Create a free account to purchase workflows.

  • JSON blueprint β€” instant download
  • Setup guide PDF included
  • 5 downloads Β· valid 30 days
  • Works with n8n

Need help setting this up?

Book a 3-hour live setup session with an Agility consultant.

β‚Ή2,499/ session
3 hrs Β· video call
  • Configure live on Google Meet / Zoom
  • Free follow-up if workflow has defects
  • Platform expert assigned to you
Book installation session
Free