Skip to content

Build a self-organizing screenshot library

Let an AI model sort new screenshots into folders by topic, give them descriptive names and tag them, and park anything it can't place.

ShareX drops every screenshot into the same place with a name like chrome_Xk2p9QzL.png. A few months later, finding the one with last year's error message means scrolling through hundreds of thumbnails. This guide builds a library workflow that files each new screenshot as it arrives: an AI model decides what it shows, a folder per topic keeps it with similar ones, a descriptive name makes it findable, and tags add detail across folders. Screenshots it can't place go to an Unsorted folder instead of the wrong one.

  1. File uploaded (trigger)PNG, JPEG and WebP
  2. Not in a folder?Current file › Folder is empty (null)
    • True
      1. Load content
      2. AI classifyDevelopment, Shopping, Gaming, Personal
      3. Write a file nameAI generate text
      4. RenameDate and name
      5. Move to folderScreenshots/‹category›, or Unsorted
      6. AI suggest tagsUp to 3, or suggest new ones
      7. Any tags?
        • True
          1. Add tags
        • FalseNothing runs
    • FalseNothing runs

What you'll build

UploadAfter the workflow
screenshot-build-error.png at the top of the libraryScreenshots/Development/2026-12-02 terminal-build-error-typeerror-in-orderlist.png, tagged code, errors, terminal
screenshot-chat.png, a group chat about a hikeScreenshots/Unsorted/2026-12-02 group-chat-planning-a-saturday-hike-ridge-trail.png, tagged with new tags hiking and weekend-plans
Any screenshot while the AI service is downScreenshots/Unsorted/2026-12-02 screenshot.png, untagged

The steps, folders and names are verified from runs of this workflow. The AI's answers in them, the category, the words of the name and the tags, are illustrative: a good image model gives answers like them, not necessarily the same.

Before you start

DifficultyIntermediate
TimeAbout 25 minutes
Workflow kindLibrary workflow
ConnectionsAn AI connection whose model takes images
ModelsAny image model, such as gemma3 or qwen2.5vl on Ollama, or a hosted model such as gpt-4.1-mini. A decision model classifies faster and cheaper where your connection offers one.
FoldersScreenshots. Create it in Files; the topic folders inside it are created as needed.
TagsA few you already use, such as code, errors, shopping. Optional: the AI suggests new ones when none fit.
FieldsNone
Sample filesscreenshot-build-error.png, screenshot-product-page.png, screenshot-chat.png

To keep screenshots on your own network, use a local model; see Run AI locally with Ollama.

The built-in Sort, name and tag screenshotstemplate adds a shorter version of this workflow with fixed folders (Chats, Code, Documents, Receipts, Other). It has none of this guide's safeguards: it sorts files already in a folder, uses the model's name without cleaning it, and fails when a step can't answer. Build the workflow below, or add the template and borrow the Conditions, the slug template and Continue settings from it.

Build the workflow

Create it

Open Automations › Workflows, click New workflow, name it Organize screenshots, keep Library workflow, and choose File uploaded. Set its File types to image/png, image/jpeg and image/webp, the formats AI steps can read.

Only sort new, unfiled uploads

Add a Condition after the trigger and rename it Not in a folder?. Add one rule: Value from a step, Current file › Folder, operator is empty (null).

ShareX uploads land at the top of your library, which has no folder. Files you upload into a folder on purpose take False, where nothing is connected, so the workflow leaves them alone.

Load the image

From the Condition's True output, add Load content. AI steps read the image from it.

Decide the topic

Add AI classify after Load content and click Configure step.

  • Connection: your AI connection.
  • Method: Decision model if the editor doesn't flag the connection; otherwise Language model, which works with every connection, including Ollama.
  • Add image input, then Image: Load content › Content.
  • Allow no match when none of the categories fit: on.

Add the categories. The descriptions matter more than the names: they're what the model reads.

CategoryWhat belongs in this category?
DevelopmentCode editors, terminals, logs, error messages, developer tools and documentation.
ShoppingProduct pages, carts, orders, prices and deals from online shops.
GamingVideo games, game launchers, scores and in-game moments.
PersonalChats, social media, photos, maps, calendars and personal notes.

On the Advanced tab, set If this step fails to Continue. When the AI service is down, the screenshot is still renamed and filed as Unsorted instead of the run stopping.

Write a name

Add AI generate text after AI classify and rename it Write a file name.

  • Connection: your AI connection.
  • Add image input, then Image: Load content › Content.
  • What to write:
    Write a file name for this screenshot: 3 to 6 lowercase English words separated by spaces that say what it shows, most specific first. Name the app or site when it's visible. No dates, no file extension, no punctuation. Answer with the name only.
    

Set If this step fails to Continue here too. Name screenshots with AI explains this step in more depth.

Rename the file

Add Rename and set New name to a template:

{{ subject.createdAt | date: 'yyyy-MM-dd' }} {{ steps.generate-text.text | default: 'screenshot' | slug | truncate: 60 }}
  • The date first sorts files by when they were taken and keeps names unique enough.
  • default: 'screenshot' is used when Write a file name failed and has no text. It must come before the other filters.
  • slug turns the AI's answer into lowercase words joined by dashes and drops anything else, so stray punctuation, slashes or quotes can't end up in the name.
  • truncate: 60 keeps long answers to 60 characters.

Leave Keep the extension on, so the file keeps .png or .jpg.

generate-text is the id Tessra gave the Write a file name step; renaming a step doesn't change its id. If you paste the template and the value shows in red, insert it from the list instead.

File it by topic

Add Move to folder:

  • Folder: Screenshots.
  • Subfolders: a template, {{ steps.classify.label | default: 'Unsorted' }}.

label is AI classify's Category name output, such as Development. When nothing fits, or AI classify failed, it has no value, and default sends the file to Unsorted instead. The folders are created the first time they're needed.

Suggest tags

Add AI suggest tags and click Configure step.

  • Connection and Image as before. Keep Method at Language model.
  • Choose from: leave empty to offer your 500 most used tags, or pick the tags the model may use.
  • Most tags: 3.
  • When no tag fits: Suggest new tags, Most new tags 2.

Set If this step fails to Continue.

Add the tags it found

Add a Condition named Any tags?, with Match set to Any rule and two rules:

ValueOperator
AI suggest tags › Tagsisn't empty
AI suggest tags › New tagsisn't empty

From its True output, add Add tags, and set both settings with From a step: Tags to AI suggest tags › Tags, and Tag names to AI suggest tags › New tags.

Add tags fails when it has nothing to add, which is why the Condition comes first. The Problems list shows warnings that AI suggest tags may not run before these two steps; that's expected, because it's set to continue when it fails.

Test it

  1. Upload the three sample files to the top of your library, with the workflow inactive.
  2. Click Test, choose screenshot-build-error.png, and turn on Allow sending content to outside services. Without it, AI steps return placeholders and nothing is sent. With a local model, nothing leaves your network either way.
  3. Click Start test and select each step. AI classify shows the category it chose and its confidence, Write a file name its text, and Rename and Move to folder the name and folder the file would get. Nothing in your library changes.
  4. Test the other samples too. The chat screenshot should take Unsorted, or Personal if your model reads it that way.

If the categories come out wrong, improve their descriptions and test again. See Testing.

Turn it on

Click Publish, then turn on Active. New screenshots at the top of your library are sorted within seconds to a minute, depending on how fast your model answers.

To sort screenshots you already have, see Sort existing files.

What to expect

A verified run on screenshot-build-error.png, with illustrative AI answers:

StepResult
Not in a folder?True
AI classifyDevelopment, confidence 0.91, A terminal window shows a failed build with a TypeError.
Write a file nameterminal build error typeerror in orderlist
Rename2026-12-02 terminal-build-error-typeerror-in-orderlist.png
Move to folderScreenshots/Development
AI suggest tagscode, errors, terminal
Add tagsAdded the three tags

When the AI service couldn't be reached, each AI step tried three times and then continued; the run finished as Completed with errors about five minutes later, with the file named 2026-12-02 screenshot.png in Screenshots/Unsorted (verified).

Troubleshooting

ProblemCause and fix
ai_model_missing_featureThe model doesn't take images. Choose a vision model in the step's Model, or as the connection's default.
The editor flags AI classify's connectionThe connection doesn't offer decision models. Set Method to Language model.
Everything goes to UnsortedThe model finds no category fits. Make the descriptions broader, add a category, or turn off Allow no match so it always picks one. In a test without Allow sending content to outside services, every file is Unsorted because no model was asked.
Screenshots go to the wrong folderMake descriptions more distinct, and add Additional instructions on the Advanced tab for close calls, such as Shopping wins over Personal for anything with a price.
Names are long or oddTighten What to write, set Temperature to 0.2 under Generation settings, or lower truncate.
tags_missing on Add tagsAdd tags ran with nothing to add. Check that it's connected to the True output of Any tags?.
Files are moved, but runs are slowEach AI step waits for the model. Local models on a CPU can take a minute or more per step; see Run AI locally with Ollama.
Runs finish as Completed with errorsAn AI step failed and the run continued. Open the run to see the error, such as connection_unreachable, and fix the connection. Files from those runs are in Unsorted.

Make it your own

Your own categories

Use the topics you actually look things up by, up to 50. Each category's name becomes a folder, so rename a category and new files go to the new folder name; files already sorted stay where they are.

Sort existing files

Build the same steps in a second workflow whose trigger is Run manually, without Not in a folder?. Then select up to 100 files in Files and choose More actions › Run automation. See Your first workflow.

Tag instead of moving

Keep files where they are by replacing Move to folder with Add tags, Tag names set to a template {{ steps.classify.label | default: 'unsorted' | lower }}.

Review the uncertain ones

With a decision model, set AI classify's Minimum probability to 0.6. Answers it's less sure of count as no match and go to Unsorted, where you can check them.

Use the file's name too

On AI classify, Add text input with {{ subject.originalName }}. Captures named by the app they came from, such as Steam_2026…, then help the model.

Privacy, cost and reliability

  • Each screenshot is sent three times, once to each AI step, to the address of your AI connection. With a hosted service, it receives your screenshots and handles them under its own terms. Screenshots often show messages, account details and documents, so prefer a local model when that matters to you.
  • AI suggest tags also sends the names of the tags it may choose from.
  • With a hosted service, each screenshot costs three requests, each with an image of roughly 1,600 tokens. Set Tokens a day on the connection to cap spending; see Tokens and limits.
  • AI answers vary. A file may land in the wrong folder or get an odd name; nothing is lost, and you can move or rename it in Files. The file's content is never changed.
  • Because every AI step continues when it fails, a broken AI connection never stops uploads or leaves files unfiled. They wait in Unsorted.