Organise your local file directories with AI
Ready for 3.0Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.
What this workflow does
This AI workflow has 10 nodes and runs on Local File events (add). Along the way it connects Mistral Cloud Chat Model.
How it runs
Trigger: On Local File events (add).
- Set Variables (Edit Fields (Set)): sets 1 field: directory
- Get Files and Folders (Execute Command): runs a shell command on the n8n host
- Files and Folders to Array (Edit Fields (Set)): sets 2 fields: files, folders
- If: checks a condition and branches into true / false
- AI File Manager (Basic LLM Chain): sends a prompt to an LLM, with model: Mistral Cloud Chat Model; output parser: Structured Output Parser
- Get Suggestions to List (Split Out): splits a list into separate items
- Move Files into Folders (Execute Command): runs a shell command on the n8n host
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (8)
- Local File Trigger
n8n-nodes-base.localFileTrigger - Execute Command
n8n-nodes-base.executeCommand - Edit Fields (Set)
n8n-nodes-base.set - Mistral Cloud Chat Model
@n8n/n8n-nodes-langchain.lmChatMistralCloud - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - If
n8n-nodes-base.if - Split Out
n8n-nodes-base.splitOut - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm
From the author
If you have a shared or personal drive location with a high frequency of files created by humans, it can become difficult to organise. This may not matter... until you need to search for something! This n8n workflow works with the local filesystem to target…