Keep your shared drive tidy without sorting files by hand. This workflow watches a local folder, gets a list of new files, and uses AI to decide which subfolder each file belongs to. Teams that store assets, reports, or invoices in one place can keep things organized with little effort.
Here is how it works. A Local File Trigger listens for new files in a target path and waits for the write to complete. A command collects the list of files and folders, then the flow checks if there are files to move. The Mistral Cloud model reviews the list and returns a clear map of folder names and the files that should go into them using a structured output parser. Suggestions are split into single items, and a shell command creates any missing folders and moves the files. This design turns a messy drop zone into a clean folder tree.
To run it, make sure n8n has access to the local directory, such as a Docker bind mount. You will need a Mistral API key. Expect to cut manual sorting from hours to minutes each week. Great fits include marketing assets, ops receipts, HR documents, and shared project files. Always back up before running any file move steps.