# Generate workflow documentation and node names with OpenAI: n8n workflow

> Started by someone submitting a form, and works across n8n data table. It puts OpenAI behind a retrieval step, so answers are drawn from documents you...

Source: https://millionrounds.com/workflow/generate-workflow-documentation-and-node-names-with-openai (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Documents and files](https://millionrounds.com/workflows?category=Documents+and+files#library)

# Generate workflow documentation and node names with OpenAI

Started by someone submitting a form, and works across n8n data table. It puts OpenAI behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 51 steps, 5 branches, 1 loop or waits: large, and worth reading before you trust it with anything live.

Large Calls a model: OpenAI Retrieval

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fgenerate-workflow-documentation-and-node-names-with-openai)

**51 steps** Large: read it before trusting it with anything live

**5** Branches: places the flow splits

**1** Loop or waits

**1** Service it connects to

## The flow

Starts it 1 Model 12 Logic 22 Service 16

The steps in the order they run, from what starts it.

- 1 **Form Trigger** Form trigger *Starts it*
- 2 **Docs** Google Docs Tool *Service*
- 3 **Think** Tool Think *Model*
- 4 **Parse** Output Parser Structured *Model*
- 5 **n8n Data** Data Table Tool *Service*
- 6 **Memory** Memory Buffer Window *Model*
- 7 **OpenAI** Lm Chat Open Ai *Model*
- 8 **Structured Parser** Output Parser Structured *Model*
- 9 **Select Work Process** Form *Service*
- 10 **Research** Agent Tool *Model*
- 11 **AI Agent (sticky-notes editor)** Agent *Model*
- 12 **AI Agent (node editor)** Agent *Model*
- 13 **Auto-fixing Output Parser** Output Parser Autofixing *Model*
- 14 **AI Agent (workflow name editor)** Agent *Model*
- 15 **Auto-fixing Output Parser1** Output Parser Autofixing *Model*
- 16 **Basic LLM Chain** Chain Llm *Model*
- 17 **Get All Workflows** N8n *Service*
- 18 **Loop Over Items** Split In Batches *Logic*
- 19 **Prepare LLM Verify Data** Set *Logic*
- 20 **Edit Name** Set *Logic*
- 21 **Merge1** Merge *Logic*
- 22 **Aggregate** Aggregate *Logic*
- 23 **Display Workflow Description** Form *Service*
- 24 **Get Idea Form n8n Data Table** Data Table *Service*
- 25 **Verify Update Nodes** If *Logic*
- 26 **Display SEO type Workflow Name/Title** Form *Service*
- 27 **Create DOCS** Set *Logic*
- 28 **Select Workflow form Dynamic Workflow List** Form *Service*
- 29 **Apply Update Nodes Connections** Set *Logic*
- 30 **Convert Text File** Convert To File *Service*
- 31 **Check the action edit again** If *Logic*
- 32 **Code (Clean FlocFlow ID)** Code *Logic*
- 33 **Assemble Update Workflow Object** Set *Logic*
- 34 **Display Workflow Text file** Form *Service*
- 35 **Edit Page** Html *Logic*
- 36 **Workflow md content** Html *Logic*
- 37 **Get Specified Workflow** N8n *Service*
- 38 **Save Renamed Workflow** N8n *Service*
- 39 **Display Workflow Documentation** Form *Service*
- 40 **Display Workflow Documentation1** Form *Service*
- 41 **Switch** Switch *Logic*
- 42 **Create Workflow Update Links** Set *Logic*
- 43 **Get Workflow Nodes Connections** Set *Logic*
- 44 **Code (Separate notes Form Workflow)** Code *Logic*
- 45 **Get Single Workflow Using ID** N8n *Service*
- 46 **Check Trigger Source Type** If *Logic*
- 47 **Create a mermaid chart** Code *Logic*
- 48 **Merge** Merge *Logic*
- 49 **Display Update & Old Workflow Links** Form *Service*
- 50 **Check Action** If *Logic*
- 51 **Blank DOCS file** Set *Logic*

## How it's built

- **Starts on:** Someone submitting a form
- **Steps:** 51, with 5 branches, 1 loop or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** n8n data table
- **Model:** OpenAI
- **Retrieval:** Answers are drawn from documents you supply, not from the model alone

## Questions

What does it need to run?

An n8n account, and a key for OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on someone submitting a form.

Does it use AI?

Yes. It calls OpenAI. Its answers draw on documents you give it, not on the model alone. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 51 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 51 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fgenerate-workflow-documentation-and-node-names-with-openai)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[n8n data table](https://millionrounds.com/workflows?service=n8n+data+table#library)

## Workflows like it

Also documents and files, with the same services where possible, closest in size first.

- [**AI knowledge assistant with Gemini and OpenAI** 32 steps · calls a model · Google Drive, Pinecone](https://millionrounds.com/workflow/ai-knowledge-assistant-with-gemini-and-openai)
- [**Route legal contract risks with OpenAI and Slack** 25 steps · calls a model · n8n data table](https://millionrounds.com/workflow/route-legal-contract-risks-with-openai-and-slack)
- [**Translate PDFs into multiple languages with Google Translate** 20 steps · Gmail, n8n data table](https://millionrounds.com/workflow/translate-pdfs-into-multiple-languages-with-google-translate)
- [**Restore n8n workflows from GitHub JSON backups** 17 steps · GitHub, n8n data table](https://millionrounds.com/workflow/restore-n8n-workflows-from-github-json-backups)
- [**Assess blockchain smart contract and tokenomics risk** 15 steps · calls a model · Gmail, n8n data table](https://millionrounds.com/workflow/assess-blockchain-smart-contract-and-tokenomics-risk)
- [**Chase missing onboarding documents daily with Google Drive** 15 steps · Gmail, Google Drive](https://millionrounds.com/workflow/chase-missing-onboarding-documents-daily-with-google-drive)
