What This Automation Does
This workflow watches a folder for new files like PDFs, DOCX, or text files.
When a new file appears, the workflow reads the file, pulls out the text, and uses AI to make study notes.
The notes include summaries, questions, quizzes, timelines, and glossaries to help learning.
All results are saved as easy-to-read files on the computer.
Who Should Use This Workflow
This workflow is for students or anyone who has lots of documents to study and wants fast, clear notes without reading all pages.
No coding skills are needed, just basic file handling and setting up connections in n8n.
Tools and Services Used
- n8n: Automation software to build and run the workflow.
- Mistral Cloud API: Gives AI abilities for summarizing, embedding, and generating text.
- Qdrant Vector Database: Stores document data in a special format for fast AI lookups.
- Local File System: Folder where new documents are added and where generated notes are saved.
How This Workflow Works (Input → Process → Output)
Inputs
- New PDF, DOCX, or text documents placed in a watched folder.
- API keys for Mistral Cloud and Qdrant database.
- Folder path to save generated notes.
Processing Steps
- Detect New Files: Watches the folder for added documents using the Local File Trigger node.
- Read File Content: Reads the document and identifies the type with a Switch node.
- Extract Text: Uses different methods to get words out of PDF, DOCX, or text files.
- Prepare Text: Puts the extracted words into a single field for easy use.
- Generate Embeddings: Turns text into number vectors using Embeddings Mistral Cloud.
- Store Vectors: Saves vectors in the Qdrant database under the “storynotes” collection.
- Summarize Content: Uses the Summarization Chain with Mistral Cloud Chat Model to create short summaries of the documents.
- Merge Data: Combines summary and metadata for note creation.
- Iterate Templates: Processes different note types like Study Guide, Timeline, and Briefing Doc separately.
- Generate Questions: AI makes 5 questions about the summary to focus note writing.
- Retrieve Context: Pulls related info from Qdrant to help AI answer questions better.
- Answer and Generate Notes: AI builds answers and turns them into markdown study notes.
- Save Files: Converts notes to text files and writes them back to the local folder.
Output
- Well-organized study notes in markdown format saved in the chosen folder.
- Notes include summaries, questions, quizzes, timelines, and glossaries for easy studying.
Beginner step-by-step: How to Use This Workflow in n8n Production
Step 1: Get the Workflow File
- Find the Download button on this page.
- Click it to get the workflow file to your computer.
Step 2: Import Workflow in n8n Editor
- Open the n8n editor where workflows are built.
- Use Import from File and select the downloaded workflow file.
Step 3: Configure Credentials and Settings
- In the imported workflow, add your Mistral Cloud API Key and Qdrant API Key in the credential sections.
- Check and update folder paths in Local File Trigger and file output nodes to match your computer.
- Verify collection names and other IDs if needed.
- If there are prompt templates or expressions, copy and paste exactly as shown here.
Step 4: Test the Workflow
- Put a sample document into the watched folder.
- Run the workflow manually or wait for auto trigger to check if notes generate correctly.
Step 5: Activate for Production
- Turn on the workflow’s active switch in n8n.
- The workflow will now watch for new files and make notes automatically.
- For stable running on your server, consider self-host n8n.
Customizations ✏️
- Add new note templates by listing them in the Get Doc Types node.
- Change the Qdrant collection name in the vector store nodes for different projects.
- Tune chunk sizes in the Summarization Chain to handle various document lengths.
- Switch to other AI models by updating keys and model names in the Mistral nodes.
- Change the watched folder path in Local File Trigger as needed.
Troubleshooting 🔧
- Workflow not triggering: Make sure polling is on in Local File Trigger and folder path is correct.
- Summary missing: Check if text extraction works and reduce chunk size in the summarization step.
- Notes not saving: Verify filenames and folder permissions in Read/Write File nodes.
Pre-Production Checklist ✅
- Confirm the folder watched by Local File Trigger is accessible.
- Test text extraction with sample PDF, DOCX, and text files.
- Make sure Mistral Cloud and Qdrant API keys are valid and working.
- Drop a new file and check that study notes generate properly.
- Save a copy of the workflow JSON and your documents as backup.
Deployment Guide
Activate the workflow in the n8n editor by switching it on.
The Local File Trigger will keep watching for new files to process automatically.
If errors appear, check logs and try adjusting chunk sizes or retry settings.
For stable use on a server, consider running self-host n8n.
Summary & Results
✓ Saves hours of manual note-taking by auto-processing documents.
✓ Produces clear, structured study notes with summaries, questions, and more.
✓ Handles various file types like PDF, DOCX, and text automatically.
✓ Stores document data for AI searches using vector embedding in Qdrant.
✓ Easy to run and customize in n8n with minimal technical skill.
