Edit images with text prompts using Gemini AI and Telegram Bot
Transform your Telegram chats into a creative powerhouse with this AI-driven image editing bot. Send an image document with a descriptive caption, and watch it get intelligently edited in seconds—no design skills required! 📋 What This Template Does This workflow powers a Telegram bot that automatically processes incoming image documents with text prompts. It downloads the file, uses Google Gemini AI to edit the image based on your caption, and instantly replies with the enhanced version. - Trigg
At a glance
Edit images with text prompts using Gemini AI and 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
- 5
- Price
- Free
- Version
- v1.0

About this workflow
Transform your Telegram chats into a creative powerhouse with this AI-driven image editing bot. Send an image document with a descriptive caption, and watch it get intelligently edited in seconds—no design skills required! 📋 What This Template Does This workflow powers a Telegram bot that automatically processes incoming image documents with text prompts. It downloads the file, uses Google Gemini AI to edit the image based on your caption, and instantly replies with the enhanced version. - Triggers on new messages containing documents and captions - Securely downloads and validates files before AI processing - Leverages Gemini for precise, prompt-based image edits - Sends the polished result back to the chat seamlessly 🔧 Prerequisites - A Telegram bot created via @BotFather - Google AI Studio account for Gemini API access - n8n instance with Telegram and Google Gemini nodes enabled 🔑 Required Credentials Telegram API Setup 1. Open Telegram and message @BotFather 2. Use /newbot to create your bot and note the token 3. In n8n, go to Credentials → Add Credential → Search "Telegram API" 4. Paste the token and save as "Telegram Bot" Google Gemini API Setup 1. Visit aistudio.google.com and sign in with Google 2. Click "Get API key" → Create API key in a new project 3. In n8n, go to Credentials → Add Credential → Search "Google Gemini API" 4. Enter the API key and save as "Gemini API" ⚙️ Configuration Steps 1. Import the provided JSON into your n8n workflows 2. Assign the Telegram Bot credential to the trigger and Telegram nodes 3. Assign the Gemini API credential to the Edit Image node 4. Activate the workflow and note your bot's username 5. Test by sending an image document with a caption like "add a sunset background" to your bot 🎯 Use Cases - Personal creativity boost: Send a selfie with "make me a superhero" for fun edits during downtime - Social media content: Upload product photos with "enhance lighting and add text overlay" for quick marketing visuals - Educational sketches: Share drawings with "colorize and detail" to turn student ideas into professional illustrations - Team collaboration: In group chats, prompt "remove background" for instant design feedback loops ⚠️ Troubleshooting - Bot not responding: Verify token in credentials and ensure "message" updates are enabled in the trigger - File download fails: Check if the sent file is a document/image; Telegram expires links after 1 hour—resend if needed - AI edit errors: Confirm Gemini API key quotas; shorten prompts if over 100 words for better results - No edited image sent: Inspect execution log for binary data flow; ensure "binaryData" is toggled on in send node
How to import this n8n workflow
- 1
Download the workflow JSON file after purchase.
- 2
Open n8n → click the menu → Import from File.
- 3
Select the downloaded JSON and import.
- 4
Set up credentials for each node that requires them.
- 5
Click Execute Workflow to test, then activate.
Setup guide
Setup guide included
Purchase to unlock the full step-by-step guide
Related N8n workflows
Gmail AI search assistant on Telegram (Gemini-powered)
🤖 Create Your First AI Agent with Weather & Web Scraping (Starter Kit)
Lead generation automate on LinkedIn - personalisation, enrichment
Get IP Address info in Telegram from Data24-7
Generate AI-Powered LinkedIn Posts with Google Gemini and Gen-Imager
Create TikTok videos with GPT-4o, Digital Twins, Veo 3 and Telegram
Automatic email classification with Gmail and Claude AI
Generate content ideas with Gemini Pro and store in Google Sheets
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.
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.
- Configure live on Google Meet / Zoom
- Free follow-up if workflow has defects
- Platform expert assigned to you