🎬 Edit images with text prompts using Gemini AI and Telegram Bot

⚡ 1,539 views · 🎬 Content Creation & Video

Description

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.

đź”§ Prerequisites

🔑 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

⚠️ Troubleshooting

đź”— Nodes Used

Telegram, Telegram Trigger, Filter, Google Gemini

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup