A Node.js tool that automates file organization using Google Gemini AI. It reads PDF contents, predicts the correct destination and filename, and moves the file with confidence scoring.
- AI-Powered File Classification – Gemini AI analyzes file contents and predicts the right category.
- Automated File Organization – Files are renamed and moved to structured folders without manual effort.
- Autonomous Execution – No need for supervision, the AI takes decisions instantly.
- Change Logs – Every move is recorded in a log file for full transparency.
- Confidence Thresholds – Actions only trigger when AI is highly confident, ensuring reliability.
-
Clone the repo
git clone https://github.com/DarrylMathias/File-Automation-Gemini.git cd File-Automation-Gemini -
Install dependencies
npm install
-
Run script to find all directory paths of desktop for Gemini
node folderise.js
Run the automation:
node watch.jsWatch as the AI silently organizes files into the right place, as they are downloaded.
Logs of all changes are stored at:
C:\Users\<you>\OneDrive\Desktop\changes.txt
Adjust confidence thresholds, desktop location on your PC and folder paths accordingly.
MIT License. Free to use, modify, and expand.