A knowledge base is only useful if you can trust what goes into it.
Otherwise, it becomes another attic full of copied notes, old decisions, random ideas, and things you promise yourself you will organize later.
This n8n markdown knowledge base builder helps turn scattered notes into organized Markdown-ready content you can review before saving.
The workflow focuses on structure: frontmatter, folders, internal links, decisions, tasks, open questions, and cleanup notes.
This is Workflow 10 in the GetPrompting Free n8n Workflow Library. It teaches durable knowledge structure instead of dumping everything into permanent storage.
scattered notes -> Markdown structure -> source-of-truth note -> review and save
Quick Copy
Markdown Knowledge Base Prompt
Use this manually before wiring the full workflow. If the prompt helps by hand, it is worth automating.
You are organizing scattered notes into Markdown-ready knowledge base content. Knowledge base goal: [GOAL] Scattered notes: [PASTE NOTES] Preferred structure: [FOLDERS OR NOTE TYPES] Privacy rules: [WHAT SHOULD NOT BE SAVED] Return: - suggested folder - frontmatter - primary note body - decisions - tasks - open questions - internal link ideas - cleanup note
What the Markdown Knowledge Base Builder Does
The workflow takes knowledge-base goal, scattered notes, preferred structure, folder path, note type, status, tags, and privacy rules and turns them into a Google Doc with frontmatter-ready Markdown, folder suggestions, internal link ideas, decisions, tasks, open questions, and cleanup notes.
The important part is not that the workflow is complicated. It is that the workflow creates a real document you can review, edit, and use. That is what separates a practical automation from a fun demo.

Why This Workflow Matters
This workflow teaches durable knowledge structure. It turns messy notes into Markdown-ready content with frontmatter, folder suggestions, internal links, decisions, tasks, and open questions.
This matters because beginners often try to automate the exciting part first. They jump straight to agents, dashboards, and complicated branching logic before the core pattern is reliable. I like starting smaller. Make one useful thing work. Then make it better.
That approach is slower for about five minutes and faster for everything after that. Once the base workflow is understandable, you can change the model, destination, trigger, or output format without rebuilding from scratch.
What You Need Before You Build It
The version I built uses n8n, Ollama, a local chat model, and Google Docs. You can change those pieces later, but this setup makes the workflow easy to inspect and test.
- n8n running locally, self-hosted, or in n8n Cloud
- Ollama running locally if you want the local AI version
- a local chat model such as
llama3.1:8b, or another model your machine runs reliably - a Google account
- Google Docs credentials connected inside n8n
Download the Free n8n Workflow
I published the clean workflow export on GitHub so you can import it, inspect it, and adapt it to your own setup.
Download the Markdown Knowledge Base Builder workflow on GitHub
The repo includes the n8n workflow JSON, screenshots, sample input, sample output, installation notes, customization ideas, and troubleshooting docs.
The public export does not include my private credentials, OAuth tokens, workflow IDs, API keys, or account details. After importing it, you will still need to connect your own Google Docs credential inside n8n.
How This n8n Markdown Knowledge Base Builder Works
Here is the practical flow:
Manual Start -> Set Workflow Inputs -> Build AI Prompt -> Generate With AI -> Review AI Output -> Prepare Google Doc -> Create and Write the Google Doc

Let us walk through the main pieces.
1. Manual Start
Manual start lets you review what becomes permanent knowledge before it enters your vault or repo.
2. Set Workflow Inputs
This node stores the goal, notes, preferred structure, folder path, status, tags, and privacy rules.
3. Build AI Prompt
The prompt asks for Markdown-ready structure, not just a summary.
4. Generate With AI
The model organizes the notes into frontmatter, sections, decisions, tasks, questions, and links.
5. Review AI Output
The review step keeps the note format consistent and flags cleanup needs.
6. Prepare Google Doc
This gives you a reviewable document before saving anything permanently.
7. Create and Write the Google Doc
The final output becomes a staging note you can approve before moving into Obsidian, Git, or another knowledge base.

The New Concept This Workflow Teaches
This workflow teaches durable knowledge structure. It turns messy notes into Markdown-ready content with frontmatter, folder suggestions, internal links, decisions, tasks, and open questions.
That concept is the reason this article exists as its own piece instead of being a copy of the previous workflow guide. Each workflow in the library should add a useful idea you can carry into future builds.
Once you understand this pattern, you can reuse it in other workflows. The exact topic changes, but the habit stays the same: define the input, give the model a clear job, review the output, and send the result somewhere useful.
How to Customize This Workflow
The GitHub version is intentionally simple. That is a feature, not a limitation. A simple workflow is easier to understand, modify, and trust.
Change the Inputs
Open the Set Workflow Inputs node and replace the sample values with your own knowledge-base goal, scattered notes, preferred structure, folder path, note type, status, tags, and privacy rules. If you use this often, you can replace the manual fields with a form, webhook, Google Sheet row, Obsidian note, or Notion database item.
Change the Model
The default version uses a local Ollama model. Smaller models are usually faster and cheaper to experiment with. Larger models may follow complex instructions better, but they can be slower and more memory hungry.
You can also swap the local model for a cloud model through n8n if the workflow needs stronger reasoning. I would still keep the review step, because better models are not the same thing as perfect models.
Change the Output Destination
Google Docs is a friendly first destination because it is easy to read and edit. But you can point the same pattern to Obsidian, Notion, Airtable, Google Sheets, a local Markdown file, a task manager, or a custom dashboard.
Upgrade It Later
- Write approved notes directly into Obsidian.
- Add privacy filters for email or client content.
- Create project-specific folder rules.
- Connect notes to a local RAG assistant later.
Common Mistakes to Avoid
Saving everything permanently
A knowledge base needs judgment. Some information should stay temporary.
Skipping frontmatter and tags
Metadata makes notes easier to find, filter, and connect later.
Making the folder system too complicated
Start simple. A knowledge base should reduce friction, not create another organizing hobby.
Where This Fits in a Bigger AI Workflow System
The Markdown Knowledge Base Builder is small on purpose, but it fits into a larger practical workflow system. It can sit beside the Daily Action Brief Builder, the Search Intent Blog Outline Builder, and the rest of the free n8n workflow library as one reusable tool in a larger process.
That is the real value of building these workflows one at a time. You are not just collecting templates. You are learning patterns: cleanup, planning, triage, structure, review, repurposing, documentation, and knowledge management.
Those patterns compound. A small workflow that solves one clear problem today can become a building block for a much more useful system later.
Final Thoughts
The Markdown Knowledge Base Builder is not impressive because it is massive. It is useful because it gives one messy problem a clear path from input to output.
That is the kind of automation worth learning. It respects the human part of the work while using AI to handle the structure, cleanup, and first-pass organization.
If you want to experiment with it, download the free workflow from GitHub, import it into n8n, run the sample input once, and then replace the sample with something from your own work.
Start small. Make it useful. Then improve one piece at a time.
Stay sharp,
Michael
Creator of GetPrompting.com
Keep Building the Workflow Library
This guide is part of the Free n8n Workflow Library, a set of small n8n builds designed to be imported, inspected, and customized one workflow at a time. If you want the previous step in the series, read Professional Email Builder. If you are comparing the full set, go back to the Free n8n Workflow Library and pick the workflow that matches the problem in front of you.
Need help turning this into a working system?
Start with the workflow, not the tool.
If you have a messy process, an AI workflow idea, or a small automation you want to make real, Michael can help map the system, build a focused prototype, and leave you with something practical you can actually use.
Enjoying the content?
GetPrompting is independently run, and I’m keeping the tutorials, guides, and workflow experiments free.
If you’d like to support future content, you can buy me a coffee.
Totally optional. The site stays free either way.