Use this powerful n8n workflow template to automatically generate and serve dynamic Markdown documentation for all your existing n8n workflows using GPT-4 and Docsify. Includes a live Markdown editor.
Download this n8n workflow template and start using it instantly.
Managing documentation for numerous automations can be time-consuming. This n8n workflow solves this by acting as a dynamic documentation server, leveraging the power of an AI Large Language Model (LLM) to instantly generate detailed documentation for any existing n8n workflow.
This robust n8n workflow integrates with the Docsify JS library, serving an interactive documentation site directly from your n8n instance. When a user requests documentation for a specific n8n workflow, the system checks if a Markdown file exists. If it doesn't, or if the user requests a 'recreate' action, the workflow fetches the target workflow's JSON data, generates a Mermaid schematic diagram using a custom n8n node, and feeds both into an OpenAI model (via Langchain nodes). The AI generates structured, technical documentation, which is then saved locally. The entire system supports viewing, live editing with a Markdown preview, and saving the resulting document, making it an essential n8n template for governance and knowledge sharing.
This automation operates primarily through two webhook n8n trigger nodes acting as an API endpoint for the Docsify front-end.
index.html page, which loads the Docsify library.README.md, summary.md, or specific workflow documents).README.md, summary.md), the workflow queries the n8n API to list all available n8n workflows or tags, compiling them into a Markdown table or navigation pane.docs_workflowId.md) is requested, the system checks the local disk for the existing file.OpenAI Chat Model using Langchain n8n nodes for structured documentation generation.Save New Doc File n8n node.n8n nodes) pointing back to your instance to allow the workflow to read other workflow definitions and tags.OpenAI Chat Model n8n node) for documentation generation.CONFIG Set n8n node (ID: f41906c3-ee4c-4333-bfd5-426f82ba4bd9):projectpath: Define a writable directory where Markdown files will be stored (e.g., ./.n8n/testdocs).instance_url: Ensure this correctly reflects the publicly accessible URL of your n8n instance.docsify webhook trigger.docsify, single workflow): The primary n8n trigger points that handle all incoming HTTP requests from the Docsify client, routing requests for the main page, tag lists, and individual documentation files.Get All Workflows, Get Workflow tags, Fetch Single Workflow): These n8n nodes query the n8n API itself to retrieve data about existing n8n workflow names, statuses, tags, and complete JSON structures. Used to dynamically build the index and sidebar.Generate Mermaid Chart): Custom scripting that analyzes the JSON structure of a target n8n workflow and generates a Mermaid diagram string, visually mapping out the flow of n8n nodes and connections.gpt-4-turbo): The core AI component that processes the workflow JSON and documentation instructions to generate comprehensive Markdown content, fulfilling the documentation creation task.Load Doc File, Save New Doc File): Handles persistence, allowing the workflow to load existing, manually edited documentation or save newly generated/edited files to the defined project_path.Main Page, Edit Page): Used to construct and serve the necessary HTML pages. Edit Page contains the bespoke JavaScript for the live Markdown editor and saving functionality, crucial for maintaining and editing generated n8n templates documentation.Automate daily alerts for nearby garage sales and flea markets. This powerful n8n workflow scrapes web data, filters events by distance (<= 20km), and sends timely Telegram notifications. Use this n8n template for web scraping automation.

Use this efficient n8n workflow to capture your insightful LinkedIn likes, filter recent posts, and automatically save them as structured content ideas in Airtable. Get started with this n8n templates today.

Automate AI token tracking for agent usage from WhatsApp and Telegram, logging all interactions, audio transcriptions, and costs directly to Google Sheets using this powerful n8n workflow.

Automate video distribution across YouTube, Instagram, and TikTok using this powerful n8n workflow. Perfect for creators and marketers seeking efficient social media n8n templates.

Automate loading files (PDF, JSON, text) from Google Drive into a PGVector database using n8n. This powerful n8n workflow creates a RAG knowledge base using OpenAI embeddings.

Automate logistics damage reporting using an n8n workflow. Operators send photos via Telegram, GPT-4o generates structured reports and extracts barcodes, and the final document is emailed via Gmail. Use this efficient n8n template today.








































