Generate workflow documentation and node names with GPT‑4.1‑mini

Go to Workflow
10 views
Built by SpaGreen Creative SpaGreen Creative
Created on June 05, 2026

Description

Who Is This For?
This workflow serves as a comprehensive "Workflow Nodes SEO & Documentation Generator". It uses AI to analyze, rename, and document n8n workflows, offering a streamlined way to optimize workflow readability and prepare them for sharing.

Who Is This For?
This workflow is designed for n8n users, workflow managers, and community contributors who want clean, professional, and easy-to-understand workflows.

What This Workflow Does
This workflow works as a smart assistant that:
Automatically renames nodes with clear, human-readable names based on their purpose.
Generates SEO-friendly workflow titles suitable for sharing in the n8n community.
Creates structured markdown documentation, including diagrams and node details, for easy maintenance and sharing.

Key Features
Multi-Process Selection**: Choose from "Node Name", "Workflow Name", "Description", or "Other Description" modes via a form.
Dynamic Workflow Selection**: Automatically lists all your workflows so you can pick one to edit.
AI-Powered Analysis**: Uses an AI Agent (Mistral/OpenAI) to study your workflow and generate better names or text.
Validation Logic**: Checks that the AI identified every node before applying changes to prevent errors.
Safe Renaming**: Updates node names and links at the same time to keep the workflow working.
Version History**: Provides links to compare the new version with the original one.

Requirements & Setup
n8n API Credentials**: Required to fetch workflows and save updates.
AI Model Credentials**: Requires credentials for an LLM (e.g., Mistral, OpenAI, or OpenRouter) connected to the "OpenAI" node.
Google Docs API (Optional)**: If the "Docs" tool is used, credentials are needed for fetching reference data.

Important Notes
Form Trigger**: This workflow is triggered via a "Form Trigger" node, which presents a UI for selecting the process and workflow.
Data Safety**: The validation step ensures that the AI does not miss any nodes before renaming, preventing workflow corruption.
Context Window**: The AI agent uses a "Memory" node with a context window of 10, allowing it to remember previous interactions during generation.
Formatting**: The generated documentation uses Markdown and Mermaid.js syntax for visual workflow diagrams.

Support & Help
WhatsApp**: Chat on WhatsApp
Discord**: SpaGreen Community
Facebook Group**: SpaGreen Support
Website**: https://spagreen.net
Developer Portfolio**: Codecanyon SpaGreen

Nodes Used (10)

AI Agent
@n8n/n8n-nodes-langchain.agent
AI Agent Tool
@n8n/n8n-nodes-langchain.agentTool
Auto-fixing Output Parser
@n8n/n8n-nodes-langchain.outputParserAutofixing
Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm
Code
n8n-nodes-base.code
HTML
n8n-nodes-base.html
OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi
Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow
Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured
Think Tool
@n8n/n8n-nodes-langchain.toolThink