Developer & DevOps

Organize local file directories with AI-powered classification

16 nodes 328 211 Automatic trigger
Download

Workflow Description

Automation that monitors local folders and uses Mistral AI to analyze and classify files automatically, then reorganizes them into logical structures based on content and patterns without manual intervention.

How it works

  1. 1.Monitor local directories for new or existing files using the file trigger
  2. 2.Send each file to Mistral AI model for analysis and category assignment
  3. 3.Parse AI responses into structured commands for file operations
  4. 4.Execute move and rename operations to organize files automatically
  5. 5.Log the results and handle edge cases in the workflow

Use cases

  • Sort messy download folders automatically by file type and date
  • Classify project documents and assets into appropriate subdirectories
  • Maintain organized archives by applying consistent naming and folder structures

Requirements

  • Access to local file system with read and write permissions
  • Active Mistral Cloud account with valid API credentials
  • Defined target folders and organization rules for the automation

Service Value

Ideal as a smart automation service combining integrations and AI to produce ready-to-use results.

Apps Used

Local File Trigger Lm Chat Mistral Cloud Output Parser LLM Chain

Details

Trigger Automatic trigger
Nodes 16
Apps 4
Views 328
Downloads 211

How to Use

  1. 1.Click "Download Template"
  2. 2.Open your n8n dashboard
  3. 3.Go to Workflows > Import from File
  4. 4.Select downloaded file and configure credentials

Nodes Used (16)

/

Local File Trigger

Local File Trigger

#1

Get Files and Folders

Execute Command

#2

Files and Folders to Array

Set

#3

Mistral Cloud Chat Model

Lm Chat Mistral Cloud

#4

Structured Output Parser

Output Parser Structured

#5

Set Variables

Set

#6

Move Files into Folders

Execute Command

#7

Sticky Note

Sticky Note

#8

Sticky Note1

Sticky Note

#9

If Has Target Files...

If

#10

Sticky Note2

Sticky Note

#11

Get Suggestions to List

Split Out

#12

Sticky Note3

Sticky Note

#13

Sticky Note4

Sticky Note

#14

Sticky Note5

Sticky Note

#15

AI File Manager

LLM Chain

#16