πŸ“š Auto-generate documentation for n8n workflows with GPT and Docsify

Nodes

818211a2-bc09-427d-bfa4-d8db9fbffb50a0d93eb1-bb23-4c69-815f-fe01a740b02ca97f27bd-6185-4b9b-bade-f7020a7a188594248680-97fe-4c64-8c0e-406e7e4b5b47f8cb31dc-fafe-49d3-8399-f520741f80ad+12

Created by

EdEduard

Last edited 56 days ago

This workflow creates a documentation system for n8n instances using Docsify.js. It serves a dynamic documentation website that allows users to:

  • View an overview of all workflows in a tabular format
  • Filter workflows by tags
  • Access automatically generated documentation for each workflow
  • Edit documentation with a live Markdown preview
  • Visualize workflow structures using Mermaid.js diagrams

πŸ“Ί Check out the short 2-min demonstration on LinkedIn. Don't forget to connect!

πŸ”§ Key Components

  1. Main Documentation Portal
  • Serves a Docsify-powered website
  • Provides a navigation sidebar with workflow tags
  • Displays workflow status, creation date, and documentation links
  1. Documentation Generator
  • Uses GPT model to auto-generate workflow descriptions
  • Creates Mermaid.js diagrams of workflow structures
  • Maintains consistent documentation format
  1. Live Editor
  • Split-screen Markdown editor with preview
  • Real-time Mermaid diagram rendering
  • Save/Cancel functionality

βš™οΈ Technical Details

Environment Setup

  • Requires write access to the specified project directory
  • Uses environment variables for n8n instance URL configuration
  • Implements webhook endpoints for serving documentation

⚠️ Security Considerations

Note: The current implementation doesn't include authentication for editing. Consider adding authentication for production use.

Dependencies

  • Docsify.js for documentation rendering
  • Mermaid.js for workflow visualization
  • OpenAI GPT for documentation generation

πŸ” Part of the n8n Observability Series

This workflow is part of a broader series focused on n8n instance observability. Check out these related workflows:

  1. Workflow Dashboard - Get comprehensive analytics of your n8n instance
  2. Visualize Your n8n Workflows with Mermaid.js - Create beautiful workflow visualizations

Each workflow in this series helps you better understand and manage your n8n automation ecosystem!

New to n8n?

Need help building new n8n workflows? Process automation for you or your company will save you time and money, and it's completely free!