What you’ll be able to do

Right, let’s be clear about what’s actually possible here. No AI assistant is going to reach into your hard drive and quietly reorganise ten years of downloads while you make a cup of tea. That’s not how any of this works, and if a tool claims it does, be sceptical.

What you CAN do is get an AI to help you think through a proper naming convention, write you a script that sorts files by type or date or pattern, or help you set up rules using tools that already exist for this job. That’s the honest version, and it’s genuinely useful once you get the workflow right.

Before you start

The naming convention matters more than the tool. I’ll say that again because it’s the bit people skip: naming convention first, automation second.

If your files are called “Untitled document 3” and “final final v2 ACTUAL”, no script in the world will sort that meaningfully. Something like YYYY-MM-DD-project-thing gives you sortable, searchable, human-readable files. Get that sorted mentally before you touch a script.

You also need to know what’s safe to hand over to an AI assistant. Anything with personal financial details, health information, client data, or anything under an NDA shouldn’t go anywhere near a chat window, even just as a filename list, if those filenames contain sensitive info. More on that later.

Lastly, understand the three real routes: rules-based tools (Hazel on Mac, Power Automate Desktop or PowerToys on Windows, or just relying on Google Drive/OneDrive’s built-in search, which already reads file contents reasonably well), scripts that an AI writes for you and you run yourself, or a naming convention you apply by hand going forward. None of these are magic. All of them work if you commit to them.

Get set up

First, decide which lane you’re in. If you want something that runs quietly in the background without you thinking about it, look at rules-based tools. Hazel (Mac only) watches folders and applies rules like “if it’s a PDF older than 30 days, move it here.” Power Automate Desktop or PowerToys does something similar on Windows, though the setup is a bit more fiddly.

If you’re comfortable running a script occasionally, ask ChatGPT or Claude to write you a small Python script that sorts by file type, date, or name pattern. This is probably the fastest route if you’re dealing with a folder that’s got out of hand, like a Downloads folder with 4,000 files in it.

If you just want better habits going forward, skip automation altogether and ask an assistant to propose a folder structure and naming convention, then apply it yourself as you save new files.

Before you do any of this, gather a sense of what you’re dealing with. Open the folder. Have a rough look at what’s in there, how many files, what types, whether there’s an obvious pattern (invoices, photos, screenshots, whatever). You don’t need exact numbers. Just enough to describe the mess honestly when you ask for help.

Try it yourself

Here are three prompts that do different jobs. Copy them, tweak the details, and see what comes back.

First, getting a naming convention and folder structure sorted:

I have a folder full of mixed files: invoices, photos, screenshots, and project documents going back about three years. Suggest a folder structure and file naming convention I could use going forward. I'd like something based on date and project name. Give me the folder hierarchy and 3-4 example filenames using the convention.

Second, asking for a sorting script (remember: read it before you run it, and test it on a copy first):

Write a Python script that sorts files in a folder by their file type into subfolders (e.g. Images, Documents, Spreadsheets, Other). The script should not delete anything, should not overwrite files with the same name, and should print a log of what it moved. Add comments explaining each step so I can check it before running it.

Third, setting up a rule-based approach without code:

I want to use Hazel on my Mac to automatically organise my Downloads folder. Suggest three simple rules I could set up: one for moving PDFs older than 30 days, one for renaming screenshots with today's date, and one for moving image files into a Pictures subfolder. Describe exactly what settings I'd choose in Hazel for each rule.

Swap Hazel for Power Automate Desktop if you’re on Windows, the assistant should adjust the steps accordingly.

Check the result

Don’t just trust that it worked. Check it.

If you used the naming convention prompt, take five real files from your messy folder and manually rename them using the suggested pattern. Does it actually make sense? Can you find things faster? If the convention falls apart on real examples, ask the assistant to revise it with those examples in mind.

If you got a script, this is the important bit: run it on a COPY of your folder, not the original. Duplicate the folder first, then point the script at the duplicate. Check the log it prints. Open a handful of the moved files to confirm they landed where expected and nothing’s missing. Count the files before and after, the number should match exactly. If anything’s been deleted or overwritten, stop and don’t run it on your real files.

If you set up rules in Hazel or Power Automate, test with a handful of dummy files first. Create three or four test files with names and dates that should trigger your rules, then watch what happens. Does the PDF actually move after 30 days? Does the screenshot get renamed correctly? Small scale first, always.

One more test worth doing: open the folder a week later and see if it’s still tidy. That’s the real proof. A one-off sort that decays back into chaos within a fortnight means the system isn’t sticking, and you probably need simpler rules or a habit change rather than more automation.

If it doesn’t work

A few common snags.

If the script errors out, paste the exact error message back to the assistant and ask it to fix that specific problem. Don’t guess. Don’t run a modified version you don’t understand either, just because it might work.

If Hazel or Power Automate rules aren’t triggering, check the folder permissions and make sure the tool actually has access to watch that folder. This trips people up more than anything else.

If the naming convention feels clunky in practice, it’s fine to simplify it. A convention you’ll actually use beats a perfect one you abandon after a week.

Now, the privacy bit, and this matters. Never paste actual file contents that contain personal, financial, medical, or confidential business information into a chat window, even to ask “how should I organise this?” You can describe the type of file without sharing its contents. Filenames themselves can also leak information, so if your files are named things like “Sarah_Redundancy_Letter_Final.docx”, don’t share that as an example either, describe it generically instead (“HR document”).

Also: never run a script you haven’t read, even if it came from an AI assistant and even if it looks harmless. If you don’t understand a line, ask the assistant to explain it before running anything. And any script that moves or deletes files should always be tested on a copy first. This isn’t overcaution, it’s just how you avoid losing a folder of family photos to a typo in a script.

If a tool needs access to cloud storage (Google Drive, OneDrive) to do its sorting, check what permissions it’s actually asking for before granting them. Read access to search is different from write access to move and delete.

Keep exploring

If sorting files worked well for you, the same logic (naming conventions, small scripts, sensible rules) applies elsewhere too. Have a look at “How to get AI to organise my schedule” if calendar chaos is your next target, or “How to get AI to automate repetitive tasks” for the broader version of what we’ve done here. And if your file mess is mostly PDFs you never actually read, “How to get AI to read a PDF” is worth a look too.

Sources and review notes

Review date: 15 September 2026 — every source above was opened and checked against the text on that date.