Sortio + Hazel: AI Sorting Meets Rule-Based Automation - Step-by-Step Guide | Sortio
Back to Guides
Productivity

Sortio + Hazel: AI Sorting Meets Rule-Based Automation

A Sortio + Hazel workflow is a dual-layer file management strategy for macOS where Hazel handles predictable, pattern-based file routing using deterministic rules, while Sortio tackles ambiguous, context-dependent sorting tasks using AI. Together, they form a complementary system: Hazel acts as the first pass for files with clear destinations, and Sortio steps in for everything that requires judgment, semantic understanding, or flexible categorization.

Last updated: 3/22/2026
6 steps

The Challenge

Every Mac user eventually hits the same wall: your Downloads folder, Desktop, or project directories become cluttered with files that defy simple rules. Hazel is brilliant at handling the predictable stuff, but what happens when you have 200 research files that need sorting by topic, not file type? Rule-based automation breaks down when the sorting logic lives in the content and context of files rather than in their metadata.

Who This Guide Is For

  • Mac power users who already use Hazel but still have folders that resist rule-based organization
  • Creative professionals managing large volumes of mixed-format project files across clients and campaigns
  • Researchers and academics with document collections that need semantic categorization beyond filename patterns
  • Developers and designers who want automated triage for predictable files and AI-powered sorting for everything else
  • Anyone who has tried to write a Hazel rule with more than five conditions and realized they need a different approach

Step-by-Step Guide

1

Audit Your Current File Chaos

Spend ten minutes identifying which folders cause you the most friction. Mentally divide files into two buckets: files where you can describe the rule in a single sentence using metadata, and files where the destination depends on what the file is about. The second bucket is where Sortio will shine.

2

Set Up Hazel as Your First-Pass Filter

Install Hazel and configure it to watch your high-traffic folders. Build rules for predictable patterns: move .dmg files to Installers, sort bank statements by institution name, auto-rename screenshots with readable dates. Hazel should only handle files where the rule produces the correct result 100% of the time.

3

Configure a Staging Folder for Sortio

Create a dedicated folder like ~/SortioInbox that serves as the landing zone for files Hazel cannot confidently route. In Hazel, add a catch-all rule: if a file does not match any specific rules after one hour, move it to this staging folder.

4

Sort the Staging Folder with Sortio

Open Sortio and point it at your staging folder. Write a natural language prompt describing how you want files organized. Sortio reads filenames, understands context, and makes judgment calls that no rule-based system can. Run this manually or on a schedule.

5

Use Hazel to Trigger Post-Sort Actions

After Sortio organizes files, set up Hazel rules on the destination folders for final-mile actions: auto-tag files in Finder, add Spotlight comments, rename with client prefixes, or import PDFs into your reference manager. The pattern is: Hazel triages the obvious, Sortio sorts the ambiguous, Hazel finalizes the details.

6

Refine the Boundary Over Time

If Sortio keeps putting the same type of file in the same place, promote that pattern into a Hazel rule. If a Hazel rule keeps misfiring, demote it and let those files flow to the Sortio staging folder. Over a few weeks, you develop a finely tuned system where each tool handles exactly what it is best at.

Example Workflow

1Before

Downloads folder with 45 files: 8 bank statement PDFs, 3 .dmg installers, 12 research papers on various topics, 6 screenshots, 2 contract drafts, 5 images from a client project, 4 podcast MP3s, and 5 miscellaneous files with unclear names.

2The Prompt

Sort these files into folders by purpose. Group research papers by their subject area. Put client-related files together under the client name. Create a folder for personal documents like contracts. Put media files into a subfolder based on whether they are images, audio, or video. Anything truly unidentifiable goes in a Review Later folder.

3After

Hazel instantly handles the first pass: 8 bank PDFs to Finance/Statements, 3 .dmg files to Installers, 6 screenshots renamed and moved to Pictures/Screenshots. The remaining 28 files land in ~/SortioInbox. Sortio then processes the inbox: research papers split by topic, client images grouped by client, contracts to Legal, podcasts to Media/Audio. Total time: under 2 minutes for 45 files.

Pro Tips

  • Set Hazel to color-tag files as they pass through: green for Hazel-sorted, orange for sent to Sortio, so you can audit performance at a glance
  • Create multiple Sortio staging folders for different contexts (work, personal, specific projects) to enable more targeted sorting prompts
  • Use Hazel's "has been stable for" condition to avoid processing files still downloading, with a longer window before the catch-all rule fires
  • When Sortio creates an unexpected folder, do not delete it immediately -- it often reveals a category you had not consciously identified
  • Keep Hazel rules simple (one condition, one action) and Sortio prompts detailed with specific examples and edge case guidance
  • Back up Hazel rules periodically and keep a text file of your most effective Sortio prompts for iteration

Frequently Asked Questions

Does Sortio replace Hazel or do I need both?

They solve different problems and work best together. Hazel excels at deterministic, metadata-based rules. Sortio excels at contextual, judgment-based sorting where the correct destination depends on what a file is about. Using both means predictable files get routed instantly by Hazel and ambiguous files get intelligently sorted by Sortio.

How do I decide whether a sorting task belongs in Hazel or Sortio?

Apply a simple test: can you describe the rule in one sentence using only metadata like file name, extension, size, or date? If yes, use Hazel. If describing the rule requires understanding content, context, or making a judgment call, use Sortio.

Can Hazel automatically trigger Sortio to process a folder?

There is no direct integration between the two apps, but you can build an effective workflow using Hazel as the upstream filter. Configure Hazel to move unmatched files to a dedicated staging folder that you periodically process with Sortio. The staging folder acts as the bridge between the two systems.

What happens if both Hazel and Sortio try to handle the same file?

Conflicts are unlikely if you follow the staging folder pattern. Hazel rules fire first and route files with clear destinations. Only unmatched files get moved to the Sortio staging folder. Since the two tools operate on separate file pools, there is no risk of conflicting actions.

Related Glossary Terms

Ready to Implement This Guide?

Sortio can automate much of this workflow with AI-powered file organization. Let Sortio handle the sorting while you focus on your work.

Download Sortio Free