Edit Images with Text Prompts using Gemini AI and Telegram Bot
    100%
    Automation
    0(0 reviews)
    149 downloads

    Edit Images with Text Prompts using Gemini AI and Telegram Bot

    NM

    Curated by n8n Markets team

    Last updated: March 8, 2026

    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

    What's Included

    • Complete n8n workflow template with 0 nodes. Ready to import and customize.

    Requirements

    n8n instance (self-hosted or cloud). credentials.

    How to Use

    1. Download the workflow JSON 2. Import into your n8n instance 3. Configure credentials for 4. Activate and enjoy automation

    How to import this template into n8n

    1. Download the workflow JSON file from this page.
    2. In n8n, open Workflows, create a new workflow and choose Import from File.
    3. Open each node that shows a warning and connect your own credentials.
    4. Run the workflow once manually to check the output before you activate it.
    Included in Pro
    • Importable n8n workflow JSON file
    • Download with Builder Pro or Agency Unlimited
    • Built for n8n v1.0++
    • Setup time: 5-15 min

    Included in Builder Pro — $19/mo, 4,177 premium workflows

    Before you activate

    Templates are reviewed before they are listed. Test with your own credentials and data before running it in production.

    Updated Mar 2026
    v1.0
    SSL
    Secure
    GDPR

    100% Secure Checkout

    Refund requests within 7 days of a new subscription

    Reviews

    0

    No reviews yet

    See all 0 reviews ↓
    —

    0 reviews

    5★
    0
    4★
    0
    3★
    0
    2★
    0
    1★
    0

    No reviews yet.

    Questions & Answers

    0

    Log in to ask a question.

    No questions yet. Be the first to ask!

    People Also Bought