Keep your shared drive tidy by watching for new files and sorting them into clear folders with AI guidance. Ideal for teams that drop many assets into one place and need fast, consistent organization.
A local file trigger listens to a chosen directory and starts when a new item appears. Shell commands collect a neat list of top level files and subfolders, then a check confirms there is something to organize. A Mistral AI chat model returns folder suggestions in a strict, structured format using a parser, and the flow splits those suggestions into single tasks. The trigger waits until files finish writing to avoid partial moves. Final commands create missing folders and move each file to its new home, so the root stays clean and easy to browse.
You only need n8n with access to your file system and a Mistral API key. Point the trigger to your mounted path, verify the model, and run a small test by dropping sample files into the folder. Set a dry run by echoing file paths before real moves to validate results. The result is a clear folder tree, faster search, and fewer naming mistakes across the team.