Docsify example
Configured with Chain LLM, Convert To File, Execute Command, Extract From File, and additional nodes. Review the connections and setup before adapting this template.
Node categories in this workflow
- Transform
- Routing
- Files / media
- Web / API
- Integration
- AI & models
- Code
- Trigger
Icons describe general node roles, inferred from node types. Inspect the parameters for the configured action.
Drag to pan; use + and − to zoom. Reconstructed from the exported node positions; nothing runs here. Dashed lines represent non-main connections. Full node names and notes appear below.
How it works
The exported workflow contains the following configured nodes. Their connections are shown above; inspect the JSON for the complete logic, expressions, and external actions.
| Node | Category | Type | Operation |
|---|---|---|---|
| CONFIG | Transform | Edit Fields | See node parameters |
| Convert to File | Transform | Convert To File | toText |
| HasFile? | Routing | If | See node parameters |
| Extract from File | Transform | Extract From File | text |
| Main Page | Transform | Html | See node parameters |
| Instance overview | Transform | Html | See node parameters |
| Sort-workflows | Transform | Sort | See node parameters |
| doc action | Routing | Switch | See node parameters |
| Empty Set | Transform | Edit Fields | See node parameters |
| Load Doc File | Files / media | Read Write File | See node parameters |
| Respond with markdown | Web / API | Respond To Webhook | See node parameters |
| Respond with HTML | Web / API | Respond To Webhook | See node parameters |
| Save New Doc File | Files / media | Read Write File | write |
| Blank Doc File | Transform | Edit Fields | See node parameters |
| Fetch Single Workflow1 | Integration | N8N | get |
| Fill Workflow Table | Transform | Edit Fields | See node parameters |
| Basic LLM Chain | AI & models | Chain LLM | See node parameters |
| OpenAI Chat Model | AI & models | OpenAI Chat Model | See node parameters |
| Structured Output Parser | Transform | Output Parser Structured | See node parameters |
| Auto-fixing Output Parser | Transform | Output Parser Autofixing | See node parameters |
| Respond with main page HTML | Web / API | Respond To Webhook | See node parameters |
| Workflow Tags | Transform | Html | See node parameters |
| No Operation, do nothing | Routing | No Op | See node parameters |
| Merge | Transform | Merge | See node parameters |
| Fallback file name | Transform | Html | See node parameters |
| mkdir | Code | Execute Command | See node parameters |
| Merge1 | Transform | Merge | See node parameters |
| Edit Page | Transform | Html | See node parameters |
| Workflow md content | Transform | Html | See node parameters |
| Is Action Edit?1 | Routing | If | See node parameters |
| Is Action Edit?2 | Routing | If | See node parameters |
| Generate Mermaid Chart | Code | Code | See node parameters |
| Merge2 | Transform | Merge | See node parameters |
| Generated Doc | Transform | Edit Fields | See node parameters |
| Passthrough | Routing | No Op | See node parameters |
| Merge3 | Transform | Merge | See node parameters |
| Merge4 | Transform | Merge | See node parameters |
| Merge5 | Transform | Merge | See node parameters |
| Edit Fields | Transform | Edit Fields | See node parameters |
| Is Action Save? | Routing | If | See node parameters |
| Merge6 | Transform | Merge | See node parameters |
| Respond OK on Save | Web / API | Respond To Webhook | See node parameters |
| single workflow | Trigger | Webhook | See node parameters |
| file types | Routing | Switch | See node parameters |
| Get All Workflows | Integration | N8N | See node parameters |
| md files | Routing | Switch | See node parameters |
| Get Workflow tags | Integration | N8N | See node parameters |
| docsify | Trigger | Webhook | See node parameters |
Setup
- Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
- Connect your own credentials through n8n’s credential store. Replace
REPLACE_WITH_*values with your resource identifiers. - Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
- Run with synthetic data and harmless destinations. Enable triggers only after checking the actual outputs.
Requirements
An n8n instance with the listed node types and compatible versions. Service-connected workflows may require accounts, credentials, or paid APIs.
Credential types declared in the source
n8nApiopenAiApi
Workflow notes
Main Docsify webhook
Main Docsify webhook
In response, n8n serves the main html page with the Docsify JS library
Single page requests
Single page requests
- Docsify may request default pages (i.e.
readme.mdor asummary.md) - GET request for the workflow documentation pages
- POST request for saving manually edited doc page
EDIT THIS!
EDIT THIS!
project_pathto link to a writable directory that is accessible to n8n- update
instance_urlwhen running in the cloud version. If using in self-hosted mode, make sure N8N_PROTOCOL and N8N_HOST .env variables are correct
Construct main HTML page and send it back to the user
Construct main HTML page and send it back to the user
HTML_headersandHTML_docsify_includeare stored in the CONFIG node for the page simplicity
Serve main Markdown table with the workflow overview
Serve main Markdown table with the workflow overview
NOTE! Here we don't reply with HTML content. Only Markdown elements are sent back and processed by the JS library
- Create an overall table when
README.md(the home page) is requested - Create a table with a subset of workflows when a tag from a navigation pane is selected
Serve left pane content
Serve left pane content
- Here all workflows are fetched again when
summary.mdfile is requested.
It contains Markdown for the left navigation pane: a list of all tags
Handle missing pages
Handle missing pages
Serve the Markdown content with the requested file name for edge cases, i.e. any unexpected files
Custom markdown editor
Custom markdown editor
This is another HTML page for the live Markdown editor
Mermaid.jsis supported- Docsify preview on edit
- Save or Cancel buttons
Save new file
Save new file
Once the doc page is generated or edited manually, a Markdown files is saved in the directory
Load existing doc file
Load existing doc file
Check the existing file when the View or Edit button is pressed
If the file is not available, then:
If the file is not available, then:
- either auto-generate new doc
- prepare a basic template for editing
Docsify example
Docsify example
Purpose and structure
This folder contains the Docsify example workflow. Its executable nodes use chainLlm, code, convertToFile, executeCommand, extractFromFile, html, if, lmChatOpenAi, merge, n8n, noOp, outputParserAutofixing, outputParserStructured, readWriteFile, respondToWebhook, set, sort, switch, webhook. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.
Setup
Import inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.
Entry points
single workflow, docsify
Verification
Sanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.
Attribution
https://github.com/Zie619/n8n-workflows/blob/94007c1445d9258a7da116646b79473e7c7c3282/workflows/Code/1726_Code_Webhook_Automation_Webhook.json MIT; preserve source notices.
Canvas section labels
These name areas of the original canvas; they do not include explanatory instructions.
- Main functionality here