Templates / Organise your local file directories with AI

Organise your local file directories with AI

Ready for 3.0

by Jimleuk ✓ · 18,541 views · created 2024-07-10 · File Management, AI Summarization

Ready 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).

  1. Set Variables (Edit Fields (Set)): sets 1 field: directory
  2. Get Files and Folders (Execute Command): runs a shell command on the n8n host
  3. Files and Folders to Array (Edit Fields (Set)): sets 2 fields: files, folders
  4. If: checks a condition and branches into true / false
  5. AI File Manager (Basic LLM Chain): sends a prompt to an LLM, with model: Mistral Cloud Chat Model; output parser: Structured Output Parser
  6. Get Suggestions to List (Split Out): splits a list into separate items
  7. Move Files into Folders (Execute Command): runs a shell command on the n8n host

Services it uses

Mistral Cloud Chat Model

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)

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…

Excerpt from Jimleuk's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.