Mindket

Telegram photo manager for Google Drive with AI edits

Newversion 1 · updated

Overview

An n8n workflow for a Telegram bot that files each photo you send in Google Drive and names it. A gpt-5-mini agent also renames, finds, edits or merges pictures on request, through two image sub-workflows of your own.

Telegram photo manager for Google Drive with AI edits is an n8n workflow in the Productivity category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page or copy its JSON, then import it into an n8n canvas. Nothing runs until you activate it in n8n.

At a glance

Runs in
  • n8n Cloud: import the file into a new workflow there
  • Your own n8n server: it needs a public HTTPS address for Telegram’s webhook
  • Google Drive: the photos and the new images sit in two folders you choose
  • Telegram: on a phone or a computer, wherever you chat with the bot
Start with
Edit Image       imageTitle, imagePrompt, imageID
Combine Images   prompt, image1, image2, imageTitle

Platform

Connects 3 apps

How it works

Trigger

Telegram message

It starts when your bot receives a message, either:

  • A photo
  • A typed request about your pictures

Actions

  1. A photo is saved to your Drive folder under the day’s date
  2. A gpt-5-mini agent names it, or reads your request
  3. The agent renames, finds, edits or merges pictures with its five tools
  4. The bot answers in the chat with what it did

Result

A Drive folder of well-named photos you manage from a Telegram chat, with edits made by your own sub-workflows

Integrations

What you need before you start.

Telegram

Chat bot

Brings in each photo and message, and sends the agent’s answer back to your chat.

NeedsA bot token from BotFather

Google Drive

File storage

Keeps the photos and the new images in two folders, and lets the agent rename and list them.

NeedsA Google account to sign in with, and two folder IDs

OpenAI

Language model

Runs gpt-5-mini for the agent that names files and decides which tool to call.

NeedsOpenAI API key

Workflow check

Checked by Mindket on 13 Nov 2026

Steps
7 steps, starting on a Telegram event
AI
1 step calls an AI model: AI Agent
Sign-ins
Signs in to: Telegram, Google Drive and OpenAI
API keys
No API key is left in the file
Step types
Mindket’s checker reads all 6 of its step types

Read from the workflow’s file, not from a run.

About

What it is

This n8n workflow turns a Telegram chat into a front end for a folder of pictures in Google Drive. Send the bot a photo and it lands in that folder under the day’s date. A moment later the agent gives it a descriptive name and tells you what it chose. Type a request and the same agent, running gpt-5-mini, can rename a file, find one, or send it off for an edit. It can also merge two pictures. The edits and merges run in two sub-workflows you supply. 18 nodes, five of them notes.

Who it suits

People who take photos on their phone for work and want them filed and named without opening Drive. It suits anyone with an image model already set up in n8n, or who will build one. Skip it if you want edits out of the box. The file holds no image model of its own.

Who uses it, and how
IndustryWho uses itHow they use itExample
Real estateAgents who shoot listingsSend each room photo from the viewing and let the bot name itAn agent sends twelve photos of a flat, and each one is in Drive with a room name before she leaves.
Online retailShop ownersAsk for a cleaner background on a product photoA seller sends a mug photo and asks for a plain white background.
Trades and constructionSite managersFile progress photos from the site under clear namesA site manager sends a photo of a finished wall and later finds it by asking for it.
Social mediaContent creatorsMerge two pictures into one image for a postA creator asks the bot to put a product into a beach scene she sent earlier.

You need some n8n: importing a file, three credentials, two folder IDs and two sub-workflows of your own. Its author puts setup at about 13 minutes, which leaves out building the sub-workflows.

Where to use it

Any n8n that Telegram can reach over the internet will run it.

  • n8n Cloud: import the file into a new workflow there
  • Your own n8n server: it needs a public HTTPS address for Telegram’s webhook
  • Google Drive: the photos and the new images sit in two folders you choose
  • Telegram: on a phone or a computer, wherever you chat with the bot

Setup

Get it saves a zip with workflow.json and Mindket’s setup notes in your downloads folder. Make the two Drive folders first.

What you need first
NeedDetail
n8nA recent version, on n8n Cloud or a server Telegram can reach
TelegramA bot and its token, from BotFather
GoogleAn account with two Drive folders, for a Google Drive OAuth2 credential
OpenAIAn API key that can use gpt-5-mini
Sub-workflowsOne that edits a picture and one that merges two, both saving to the output folder
  1. In n8n, create a workflow, open its menu, choose Import from File and pick workflow.json.
  2. Add a Telegram credential and select it in Telegram Trigger, Download File and Respond.
  3. Add a Google Drive OAuth2 credential and select it in the four Drive nodes.
  4. Put the photos folder’s ID in place of YOUR_PICTURES_FOLDER_ID and the output folder’s in place of YOUR_OUTPUT_FOLDER_ID.
  5. Add an OpenAI credential and select it in OpenAI Chat Model.
  6. Pick your two sub-workflows in Edit Image and Combine Images.
  7. In Telegram Trigger, add your Telegram user ID under Restrict to User IDs.
  8. Save and press Publish.

The agent fills every field the two tools send. The image IDs are Drive file IDs:

Edit Image       imageTitle, imagePrompt, imageID
Combine Images   prompt, image1, image2, imageTitle

How to use it

Send a photo, then wait for the reply that names it. To change a name, say which picture and what to call it. For an edit, describe the change, such as a warmer light or a removed sign. To merge, name both pictures and say how they should sit together. Each message stands alone, so name the file you mean.

What to change for a different result
To changeWhere
How it names and answersThe system message of AI Agent
The modelOpenAI Chat Model, now gpt-5-mini
A new photo’s first nameThe name of Upload file, today’s date until the agent renames it
What a search returnsThe fields of Search Raw Files and Search AI Images

Example

You send a photo of a ceramic mug on a kitchen table. Upload file saves it as the day’s date, and Set Text passes the agent a note with the new file’s ID. The agent picks a name in the style its prompt shows, such as Ceramic_Mug_Kitchen_Table. It calls Change Name and answers in the chat with a line such as:

Saved and renamed your photo to Ceramic_Mug_Kitchen_Table.

Later you write “put the mug on a plain white background”. The agent searches the photos folder, finds the file by its name and calls Edit Image with its ID and your request.

For newcomers and experts

If you are new. n8n draws a workflow as boxes joined by lines, and each box, a node, does one job. The agent sits in the middle, with its model and five tools hanging under it on thin lines. Three tools are Google Drive actions, and two are whole other workflows. Send one photo first. Then open AI Agent in that run to see which tools it called.

For experts. The agent is version 3 of n8n’s agent node, with no memory, and it returns its steps with its answer.

The agent’s tools
ToolNode typeWhat to know
Change NameGoogle Drive, update a fileTakes the file ID and the new name from the agent
Search Raw FilesGoogle Drive, list a folderReturns every file in the photos folder with its ID, name and link
Search AI ImagesGoogle Drive, list a folderThe same for the output folder, where your sub-workflows save
Edit ImageCall n8n Workflow toolSends a title, a prompt and one image ID
Combine ImagesCall n8n Workflow toolSends a prompt, two image IDs and a title

Good to know

Its model has a shutdown date, and one fault in the original copy is fixed.

  • The fix: Respond had an empty chat ID, so no reply could reach Telegram. It now answers the chat the message came from
  • Model shutdown: OpenAI’s deprecations page, read on 2 November 2026, lists gpt-5-mini for shutdown on 11 December 2026, with gpt-5.6-terra as its replacement
  • Photo size: Download File saves the medium copy Telegram sends. Use .last() on the photo list in its file ID for the largest
  • Pictures sent as files: Switch routes only photos and text, so the bot ignores them
  • Long folders: each search sends the whole folder’s list to OpenAI, so a big folder costs more
  • HTML replies: Telegram refuses a reply with a stray < or &, since Respond sends HTML
  • Who can use it: without a user restriction, anyone who finds the bot can write to your Drive and spend your OpenAI credit
  • Your data: the photos go to your Drive, and your messages and the file names go to OpenAI
  • Credentials: the JSON holds none, and nothing from its author’s Drive

README and files

README

Telegram photo manager for Google Drive with AI edits

An n8n workflow for a Telegram bot that keeps your photos in a Google Drive folder. Send it a photo and it saves the
picture and gives it a sensible name. Send it a message and an OpenAI agent renames a file, finds one, or hands an edit or
a merge of two pictures to an image sub-workflow of your own.

What is inside

  • workflow.json: the workflow as n8n exports it, 18 nodes. Five are sticky notes that label its parts: the input, the
    agent, its model, the image tools and the file tools. It holds no credential.
  • README.md: these notes.

What we changed from the original copy

  • Respond had an empty chat ID, so no reply could ever reach Telegram and every run ended in an error there. It now
    answers the chat the message came from: {{ $('Telegram Trigger').item.json.message.chat.id }}.
  • The author's two Drive folders are gone. Upload file and Search Raw Files ask for YOUR_PICTURES_FOLDER_ID, and
    Search AI Images for YOUR_OUTPUT_FOLDER_ID.
  • Edit Image and Combine Images pointed at sub-workflows in the author's own n8n. Both now arrive empty, and you pick
    your own.

Before you start

  • An n8n instance, on n8n Cloud or your own server, reachable from the internet so Telegram can call it. The agent node
    is version 3, so use a recent n8n.
  • A Telegram bot and its token, from BotFather.
  • A Google account, and two Drive folders: one for the photos you send, one for the images the sub-workflows make.
  • An OpenAI API key that can use gpt-5-mini. Read Good to know about its shutdown date.
  • Two image sub-workflows of your own, for edits and for merges (below).

Set it up

  1. In n8n, create a workflow, open its menu and choose Import from File. Pick workflow.json.
  2. Add a Telegram credential with your bot's token. Select it in Telegram Trigger, Download File and Respond.
  3. Add a Google Drive OAuth2 credential. Select it in Upload file, Change Name, Search Raw Files and
    Search AI Images.
  4. Copy each folder's ID, the last part of its address after /folders/. Put the photos folder's in Upload file and
    Search Raw Files in place of YOUR_PICTURES_FOLDER_ID, and the output folder's in Search AI Images in place of
    YOUR_OUTPUT_FOLDER_ID.
  5. Add an OpenAI credential and select it in OpenAI Chat Model.
  6. Build the two sub-workflows, then pick them in Edit Image and Combine Images.
  7. In Telegram Trigger, add your Telegram user ID under Restrict to User IDs, so strangers cannot use the bot.
  8. Save and press Publish. n8n registers the bot's webhook with Telegram when the workflow goes live.

What each sub-workflow receives

The agent fills every field. The image IDs are Google Drive file IDs, so each sub-workflow needs Drive access to download
the pictures. Save what it makes to the output folder, where Search AI Images looks.

Edit Image       imageTitle, imagePrompt, imageID
Combine Images   prompt, image1, image2, imageTitle

Their names in the original copy, Edit Image Nanobanana Tool and Combine Images Nanobanana, point to Google's Gemini
image model, known as Nano Banana, but any image model that edits a picture from a prompt will do.

How a run goes

  1. Telegram Trigger receives each new message, and Switch sends a photo one way and text the other.
  2. For a photo, Download File fetches it from Telegram, and Upload file saves it to the photos folder under the day's
    date, such as 2026-11-02. Set Text then tells the agent that a picture came in, with its Drive file ID.
  3. AI Agent runs gpt-5-mini through OpenAI Chat Model. Its system message tells it to name a new photo at once with
    Change Name and say what it chose, without asking you.
  4. For text, the agent works out what you want. It finds files with Search Raw Files or Search AI Images, renames them
    with Change Name, and sends edits to Edit Image and merges to Combine Images.
  5. Respond sends the agent's answer to your chat, formatted as HTML.

Change the look

  • How it names and behaves: the system message of AI Agent. Its example names show the style it aims for.
  • The model: OpenAI Chat Model, now gpt-5-mini.
  • The first name a photo gets: the name of Upload file, today's date until the agent renames it.
  • What a search returns: the fields of Search Raw Files and Search AI Images, now the ID, the name and the link.

Good to know

  • Model shutdown: OpenAI's deprecations page, read on 2 November 2026, lists gpt-5-mini for shutdown on 11 December
    2026, with gpt-5.6-terra as its replacement.
  • Photo size: Download File takes the second of the sizes Telegram sends with each photo, a medium copy, so that is what
    lands in Drive. Use {{ $('Telegram Trigger').item.json.message.photo.last().file_id }} in its file ID for the largest.
    A picture sent as a file matches neither rule of Switch, so the bot ignores it.
  • No memory: the system message speaks of earlier messages and recent uploads, but the agent has no memory. Each message
    stands alone, so name the file you mean, or let it search.
  • Long folders: each search lists every file in its folder, and the whole list goes to OpenAI. A big folder makes every
    search slower and dearer.
  • HTML replies: Respond sends the answer as HTML, and Telegram refuses a message with a stray < or & in it. Clear
    the parse mode in Respond if that happens.
  • Who can use it: without a user restriction on Telegram Trigger, anyone who finds the bot can write to your Drive and
    spend your OpenAI credit.
  • Your data: your photos go from Telegram to your Drive, your messages and the file names go to OpenAI, and the
    sub-workflows get the file IDs the agent passes on.
  • Credentials: the JSON holds none, and nothing from its author's Drive.
Files
README.md  6 KB
workflow.json  19 KB

2 files, 24 KB, downloaded as a zip.

What’s new

  • Version 1 · 2026-11-03

Reviews

No ratings yet

Write a review

No reviews yet.

More from Mindket

See all from Mindket

anaksor-ocr

Sokheng · Kit

Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…

New

Qwen2.5-7B-Instruct as GGUF files in eight quantization sizes, to chat with locally through llama.cpp. For people who want a capable 7.6B model on their own co…

New

ACE-Step 1.5 XL SFT

ACE-Step · Kit

Generates music from text with a 4B diffusion decoder, 50 steps and guidance control, aiming for higher audio quality than the base. For creators with a GPU of…

New

Similar in Productivity

See all in Productivity

Guizang PPT Skill

op7418 · Skill

Skill that makes single-file HTML slide decks, slide illustrations and platform covers in two visual styles, with a presenter mode for rehearsal. For speakers…

New29.8k

Frontend Slides

zarazhangrui · Skill

Builds HTML presentations from scratch or from a PowerPoint file and shows visual style previews to pick from, for people who want web slides with no CSS or Ja…

New32.3k

IPTV

iptv-org · Kit

Collects publicly available live TV channels from many countries into playlists that any video player with live streaming can open. Made for viewers and for de…

New144k