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…
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.
Edit Image imageTitle, imagePrompt, imageID Combine Images prompt, image1, image2, imageTitle
Telegram message
It starts when your bot receives a message, either:
A Drive folder of well-named photos you manage from a Telegram chat, with edits made by your own sub-workflows
What you need before you start.
Chat bot
Brings in each photo and message, and sends the agent’s answer back to your chat.
NeedsA bot token from BotFather
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
Language model
Runs gpt-5-mini for the agent that names files and decides which tool to call.
NeedsOpenAI API key
Checked by Mindket on 13 Nov 2026
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.
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.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| Real estate | Agents who shoot listings | Send each room photo from the viewing and let the bot name it | An agent sends twelve photos of a flat, and each one is in Drive with a room name before she leaves. |
| Online retail | Shop owners | Ask for a cleaner background on a product photo | A seller sends a mug photo and asks for a plain white background. |
| Trades and construction | Site managers | File progress photos from the site under clear names | A site manager sends a photo of a finished wall and later finds it by asking for it. |
| Social media | Content creators | Merge two pictures into one image for a post | A 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.
Any n8n that Telegram can reach over the internet will run it.
Get it saves a zip with workflow.json and Mindket’s setup notes in your downloads folder. Make the two Drive folders first.
| Need | Detail |
|---|---|
| n8n | A recent version, on n8n Cloud or a server Telegram can reach |
| Telegram | A bot and its token, from BotFather |
| An account with two Drive folders, for a Google Drive OAuth2 credential | |
| OpenAI | An API key that can use gpt-5-mini |
| Sub-workflows | One that edits a picture and one that merges two, both saving to the output folder |
workflow.json.Telegram Trigger, Download File and Respond.YOUR_PICTURES_FOLDER_ID and the output folder’s in place of YOUR_OUTPUT_FOLDER_ID.OpenAI Chat Model.Edit Image and Combine Images.Telegram Trigger, add your Telegram user ID under Restrict to User IDs.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
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.
| To change | Where |
|---|---|
| How it names and answers | The system message of AI Agent |
| The model | OpenAI Chat Model, now gpt-5-mini |
| A new photo’s first name | 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 |
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.
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.
| Tool | Node type | What to know |
|---|---|---|
Change Name | Google Drive, update a file | Takes the file ID and the new name from the agent |
Search Raw Files | Google Drive, list a folder | Returns every file in the photos folder with its ID, name and link |
Search AI Images | Google Drive, list a folder | The same for the output folder, where your sub-workflows save |
Edit Image | Call n8n Workflow tool | Sends a title, a prompt and one image ID |
Combine Images | Call n8n Workflow tool | Sends a prompt, two image IDs and a title |
Its model has a shutdown date, and one fault in the original copy is fixed.
Respond had an empty chat ID, so no reply could reach Telegram. It now answers the chat the message came fromgpt-5-mini for shutdown on 11 December 2026, with gpt-5.6-terra as its replacementDownload File saves the medium copy Telegram sends. Use .last() on the photo list in its file ID for the largestSwitch routes only photos and text, so the bot ignores them< or &, since Respond sends HTMLAn 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.
workflow.json: the workflow as n8n exports it, 18 nodes. Five are sticky notes that label its parts: the input, theREADME.md: these notes.Respond had an empty chat ID, so no reply could ever reach Telegram and every run ended in an error there. It now{{ $('Telegram Trigger').item.json.message.chat.id }}.Upload file and Search Raw Files ask for YOUR_PICTURES_FOLDER_ID, andSearch 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 pickgpt-5-mini. Read Good to know about its shutdown date.workflow.json.Telegram Trigger, Download File and Respond.Upload file, Change Name, Search Raw Files andSearch AI Images./folders/. Put the photos folder's in Upload file andSearch Raw Files in place of YOUR_PICTURES_FOLDER_ID, and the output folder's in Search AI Images in place ofYOUR_OUTPUT_FOLDER_ID.OpenAI Chat Model.Edit Image and Combine Images.Telegram Trigger, add your Telegram user ID under Restrict to User IDs, so strangers cannot use the bot.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.
Telegram Trigger receives each new message, and Switch sends a photo one way and text the other.Download File fetches it from Telegram, and Upload file saves it to the photos folder under the day's2026-11-02. Set Text then tells the agent that a picture came in, with its Drive file ID.AI Agent runs gpt-5-mini through OpenAI Chat Model. Its system message tells it to name a new photo at once withChange Name and say what it chose, without asking you.Search Raw Files or Search AI Images, renames themChange Name, and sends edits to Edit Image and merges to Combine Images.Respond sends the agent's answer to your chat, formatted as HTML.AI Agent. Its example names show the style it aims for.OpenAI Chat Model, now gpt-5-mini.Upload file, today's date until the agent renames it.Search Raw Files and Search AI Images, now the ID, the name and the link.gpt-5-mini for shutdown on 11 Decembergpt-5.6-terra as its replacement.Download File takes the second of the sizes Telegram sends with each photo, a medium copy, so that is what{{ $('Telegram Trigger').item.json.message.photo.last().file_id }} in its file ID for the largest.Switch, so the bot ignores it.Respond sends the answer as HTML, and Telegram refuses a message with a stray < or & in it. ClearRespond if that happens.Telegram Trigger, anyone who finds the bot can write to your Drive andREADME.md 6 KB workflow.json 19 KB
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…
Qwen · Kit
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…
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…
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…
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…
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…