Generate workflow audit docs from JSON with Claude Sonnet and Notion
Ready for 3.0What this workflow does
This AI workflow has 15 nodes and runs when someone submits an n8n form (“Workflow Documentation Generator”) (plus 1 other trigger). Along the way it connects Anthropic Chat Model and Notion.
How it runs
Trigger: When someone submits an n8n form (“Workflow Documentation Generator”) (plus 1 other trigger).
- Validate Form Data (Code): runs custom JavaScript code
- Record Error Details (Stop and Error): stops the run with an error
- Review Workflow Content (Code): runs custom JavaScript code
- Construct AI Prompt (Code): runs custom JavaScript code
- Generate Documentation (Basic LLM Chain): sends a prompt to an LLM, with model: Claude Model Interaction
- Interpret AI Response (Code): runs custom JavaScript code
- Formulate Notion Blocks (Code): runs custom JavaScript code
- Create Notion Document (Notion): uses Notion
- Process Batch of (Loop Over Items (Split in Batches)): loops over the items in batches
- Append to Notion Document (Notion): work with block
…plus 1 more step. See the full node list below.
Services it uses
Other Anthropic + Notion templates (17)
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (10)
- n8n Form Trigger
n8n-nodes-base.formTrigger - Code
n8n-nodes-base.code - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Anthropic Chat Model
@n8n/n8n-nodes-langchain.lmChatAnthropic - Notion
n8n-nodes-base.notion - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - No Operation, do nothing
n8n-nodes-base.noOp - Wait
n8n-nodes-base.wait - Error Trigger
n8n-nodes-base.errorTrigger - Stop and Error
n8n-nodes-base.stopAndError
From the author
Quick overview This workflow collects an exported n8n workflow JSON via an n8n Form, audits it for common reliability and security issues, uses Anthropic Claude to draft a business summary and technical report, and then creates a formatted documentation page…