This workflow corresponds to n8n.io template #4492 โ we link there as the canonical source.
This workflow follows the Chainllm โ Execute Workflow Trigger recipe pattern โ see all workflows that pair these two integrations.
The workflow JSON
Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide โ
{
"id": "XF4Y9oQ5hZi1PL5f",
"name": "Community Node/Learn Anything",
"tags": [],
"nodes": [
{
"id": "551e1f6f-79ce-4977-9532-a9b510b2e288",
"name": "On form submission",
"type": "n8n-nodes-base.formTrigger",
"position": [
-2200,
-1320
],
"parameters": {},
"typeVersion": 2.2
},
{
"id": "4f27652f-5d41-4087-b687-f843544857a3",
"name": "OpenRouter Chat Model",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
"position": [
-1120,
-1100
],
"parameters": {},
"typeVersion": 1
},
{
"id": "45fe685f-327c-4621-88ce-fb067bbdcbae",
"name": "OpenRouter Chat Model1",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
"position": [
-200,
-940
],
"parameters": {},
"typeVersion": 1
},
{
"id": "7dac529b-0855-42db-a21b-5bde9f7fb218",
"name": "Structured Output Parser",
"type": "@n8n/n8n-nodes-langchain.outputParserStructured",
"position": [
-80,
-940
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "b9a0f51c-4c42-42d8-a360-44795f38d203",
"name": "JSONCreator",
"type": "@n8n/n8n-nodes-langchain.chainLlm",
"position": [
-220,
-1160
],
"parameters": {},
"typeVersion": 1.6
},
{
"id": "199076bf-c030-4e82-b70f-c4366fa404e3",
"name": "HierarchyCreator",
"type": "@n8n/n8n-nodes-langchain.chainLlm",
"position": [
-1200,
-1320
],
"parameters": {},
"typeVersion": 1.6
},
{
"id": "7f30739c-7968-42eb-822c-38dfe097ddaf",
"name": "Split Out",
"type": "n8n-nodes-base.splitOut",
"position": [
160,
-1160
],
"parameters": {},
"typeVersion": 1
},
{
"id": "bc2a138e-454d-4036-96e3-92b38d92a545",
"name": "Loop Over Items",
"type": "n8n-nodes-base.splitInBatches",
"position": [
160,
-900
],
"parameters": {},
"typeVersion": 3
},
{
"id": "ca315209-3309-47ed-a960-17d01ae824ec",
"name": "Create Row",
"type": "n8n-nodes-base.notion",
"position": [
-1700,
-1320
],
"parameters": {},
"typeVersion": 2.2
},
{
"id": "6ebc7d82-fe2d-4d30-af5c-51ea459f7635",
"name": "OpenRouter Chat Model4",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
"position": [
-800,
-1100
],
"parameters": {},
"typeVersion": 1
},
{
"id": "c8a179b5-d728-42a1-ad4d-b4fd4d561bdd",
"name": "Structured Output Parser2",
"type": "@n8n/n8n-nodes-langchain.outputParserStructured",
"position": [
-620,
-1100
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "fa4c2532-a2c6-49bc-bbae-e6ead719502c",
"name": "OpenRouter Chat Model3",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
"position": [
460,
-520
],
"parameters": {},
"typeVersion": 1
},
{
"id": "87b4c23b-c83a-4631-ba53-00e19dedd9b7",
"name": "Edit Fields",
"type": "n8n-nodes-base.set",
"position": [
860,
-760
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "ba7d1d4a-bd9c-43cc-8b16-3a984ac1408a",
"name": "Update Row",
"type": "n8n-nodes-base.notion",
"position": [
-440,
-1160
],
"parameters": {},
"typeVersion": 2.2
},
{
"id": "ac8d97bb-833d-42ff-bf17-d93ac9c5d41a",
"name": "CreateNotionBlocks",
"type": "n8n-nodes-base.executeWorkflow",
"position": [
1080,
-760
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "31e378a0-5feb-4b81-9119-635d292c7833",
"name": "Set Done",
"type": "n8n-nodes-base.notion",
"position": [
400,
-1060
],
"parameters": {},
"executeOnce": true,
"typeVersion": 2.2
},
{
"id": "bc95ed24-bc5f-47a0-a525-c65026790304",
"name": "SeniorWriter",
"type": "@n8n/n8n-nodes-langchain.chainLlm",
"position": [
420,
-760
],
"parameters": {},
"typeVersion": 1.6
},
{
"id": "39c587e0-ece4-4019-b463-fe90da8ffdb1",
"name": "Add ToC",
"type": "n8n-nodes-base.httpRequest",
"position": [
-440,
-1460
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "a294009e-72c3-4afd-a0e1-af2ecd4b8891",
"name": "NotionTopicGenerator",
"type": "@n8n/n8n-nodes-langchain.chainLlm",
"position": [
-820,
-1320
],
"parameters": {},
"typeVersion": 1.6
},
{
"id": "f3414c6e-cf71-4286-9851-48df805c9d05",
"name": "When Executed by Another Workflow",
"type": "n8n-nodes-base.executeWorkflowTrigger",
"position": [
-2200,
40
],
"parameters": {},
"typeVersion": 1.1
},
{
"id": "802df43a-4ef2-412c-a010-86dcf316a5d5",
"name": "Parse JSON blocks1",
"type": "n8n-nodes-base.set",
"onError": "continueRegularOutput",
"position": [
-860,
40
],
"parameters": {},
"executeOnce": false,
"typeVersion": 3.4
},
{
"id": "f3162ed6-5575-4f83-bb62-5f90bf448d34",
"name": "HTML to Array1",
"type": "n8n-nodes-base.set",
"notes": "{{ $json.data.match(/<table[\\s\\S]*?<\\/table>|<ul[\\s\\S]*?<\\/ul>|<ol[\\s\\S]*?<\\/ol>|<[^>]+>[^<]*<\\/[^>]+>/g) }}\n\n\n\n{{ $json.data.match(/(<h[23][\\s\\S]*?<\\/h[23]>|<p[\\s\\S]*?<\\/p>|<table[\\s\\S]*?<\\/table>|<ul[\\s\\S]*?<\\/ul>|<ol[\\s\\S]*?<\\/ol>)/g) }}",
"position": [
-1700,
40
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "9929364a-13cf-4c46-9d03-6b1f706fe566",
"name": "Convert to HTML1",
"type": "n8n-nodes-base.markdown",
"position": [
-1940,
40
],
"parameters": {},
"typeVersion": 1
},
{
"id": "5135df4c-251b-4203-ace0-18f3416dad9f",
"name": "Tags to Items1",
"type": "n8n-nodes-base.splitOut",
"position": [
-1440,
40
],
"parameters": {},
"typeVersion": 1
},
{
"id": "8a2116bf-2cb4-4b7b-a0bc-4efbd869274e",
"name": "Upload to Notion Page1",
"type": "n8n-nodes-base.httpRequest",
"onError": "continueRegularOutput",
"maxTries": 2,
"position": [
360,
220
],
"parameters": {},
"retryOnFail": true,
"typeVersion": 4.2,
"waitBetweenTries": 3000
},
{
"id": "c63d534b-72c1-42ab-937c-356fb94f03c2",
"name": "Valid Blocks1",
"type": "n8n-nodes-base.filter",
"position": [
-640,
40
],
"parameters": {},
"typeVersion": 2.2
},
{
"id": "a02b6b69-1228-4277-9bfc-35632fd03934",
"name": "Append Blocks1",
"type": "n8n-nodes-base.merge",
"position": [
-240,
60
],
"parameters": {},
"typeVersion": 3
},
{
"id": "b7bc54b3-3b40-467f-b7b5-97f06b84ee18",
"name": "For Each Block...1",
"type": "n8n-nodes-base.splitInBatches",
"position": [
120,
60
],
"parameters": {},
"typeVersion": 3
},
{
"id": "22bb1442-cb2d-40af-a58c-2fd44a6b6a30",
"name": "Aggregate",
"type": "n8n-nodes-base.aggregate",
"position": [
360,
-80
],
"parameters": {},
"typeVersion": 1
},
{
"id": "e3760fa5-48da-43bd-abd0-95deaa5c7b9b",
"name": "Wait",
"type": "n8n-nodes-base.wait",
"position": [
580,
220
],
"parameters": {},
"typeVersion": 1.1
},
{
"id": "9df0485d-ac37-45e7-8b44-b4edd2cf7bf4",
"name": "OpenRouter Chat Model2",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
"position": [
-1140,
260
],
"parameters": {},
"typeVersion": 1
},
{
"id": "40eff257-14d3-40b8-873d-248b44687859",
"name": "Sticky Note",
"type": "n8n-nodes-base.stickyNote",
"position": [
-3420,
-1380
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "06045092-569b-4ae5-bed1-238088a40f4d",
"name": "Sticky Note1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-2340,
-2080
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "78648756-8dbb-4356-89de-4e95b0938dc4",
"name": "Sticky Note2",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1860,
-1920
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "c95e06fe-6d06-4c70-bf8a-93c5d3a2565b",
"name": "Sticky Note3",
"type": "n8n-nodes-base.stickyNote",
"position": [
-2280,
-40
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "cc0c809d-c62d-4453-b44a-55028f05aab7",
"name": "Notion Block Generator",
"type": "@n8n/n8n-nodes-langchain.chainLlm",
"position": [
-1200,
40
],
"parameters": {},
"typeVersion": 1.5
}
],
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "2fdbc839-a48f-4382-9001-4c2438b2761f",
"connections": {
"Wait": {
"main": [
[
{
"node": "For Each Block...1",
"type": "main",
"index": 0
}
]
]
},
"Split Out": {
"main": [
[
{
"node": "Loop Over Items",
"type": "main",
"index": 0
}
]
]
},
"Create Row": {
"main": [
[
{
"node": "HierarchyCreator",
"type": "main",
"index": 0
}
]
]
},
"Update Row": {
"main": [
[
{
"node": "JSONCreator",
"type": "main",
"index": 0
}
]
]
},
"Edit Fields": {
"main": [
[
{
"node": "CreateNotionBlocks",
"type": "main",
"index": 0
}
]
]
},
"JSONCreator": {
"main": [
[
{
"node": "Split Out",
"type": "main",
"index": 0
}
]
]
},
"SeniorWriter": {
"main": [
[
{
"node": "Edit Fields",
"type": "main",
"index": 0
}
]
]
},
"Valid Blocks1": {
"main": [
[
{
"node": "Append Blocks1",
"type": "main",
"index": 0
}
]
]
},
"Append Blocks1": {
"main": [
[
{
"node": "For Each Block...1",
"type": "main",
"index": 0
}
]
]
},
"HTML to Array1": {
"main": [
[
{
"node": "Tags to Items1",
"type": "main",
"index": 0
}
]
]
},
"Tags to Items1": {
"main": [
[
{
"node": "Notion Block Generator",
"type": "main",
"index": 0
}
]
]
},
"Loop Over Items": {
"main": [
[
{
"node": "Set Done",
"type": "main",
"index": 0
}
],
[
{
"node": "SeniorWriter",
"type": "main",
"index": 0
}
]
]
},
"Convert to HTML1": {
"main": [
[
{
"node": "HTML to Array1",
"type": "main",
"index": 0
}
]
]
},
"HierarchyCreator": {
"main": [
[
{
"node": "NotionTopicGenerator",
"type": "main",
"index": 0
}
]
]
},
"CreateNotionBlocks": {
"main": [
[
{
"node": "Loop Over Items",
"type": "main",
"index": 0
}
]
]
},
"For Each Block...1": {
"main": [
[
{
"node": "Aggregate",
"type": "main",
"index": 0
}
],
[
{
"node": "Upload to Notion Page1",
"type": "main",
"index": 0
}
]
]
},
"On form submission": {
"main": [
[
{
"node": "Create Row",
"type": "main",
"index": 0
}
]
]
},
"Parse JSON blocks1": {
"main": [
[
{
"node": "Valid Blocks1",
"type": "main",
"index": 0
}
]
]
},
"NotionTopicGenerator": {
"main": [
[
{
"node": "Update Row",
"type": "main",
"index": 0
},
{
"node": "Add ToC",
"type": "main",
"index": 0
}
]
]
},
"OpenRouter Chat Model": {
"ai_languageModel": [
[
{
"node": "HierarchyCreator",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Notion Block Generator": {
"main": [
[
{
"node": "Parse JSON blocks1",
"type": "main",
"index": 0
}
]
]
},
"OpenRouter Chat Model1": {
"ai_languageModel": [
[
{
"node": "JSONCreator",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"OpenRouter Chat Model2": {
"ai_languageModel": [
[
{
"node": "Notion Block Generator",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"OpenRouter Chat Model3": {
"ai_languageModel": [
[
{
"node": "SeniorWriter",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"OpenRouter Chat Model4": {
"ai_languageModel": [
[
{
"node": "NotionTopicGenerator",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Upload to Notion Page1": {
"main": [
[
{
"node": "Wait",
"type": "main",
"index": 0
}
]
]
},
"Structured Output Parser": {
"ai_outputParser": [
[
{
"node": "JSONCreator",
"type": "ai_outputParser",
"index": 0
}
]
]
},
"Structured Output Parser2": {
"ai_outputParser": [
[
{
"node": "NotionTopicGenerator",
"type": "ai_outputParser",
"index": 0
}
]
]
},
"When Executed by Another Workflow": {
"main": [
[
{
"node": "Convert to HTML1",
"type": "main",
"index": 0
}
]
]
}
}
}
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
Hey n8n Innovators & Knowledge Seekers! ๐
Source: https://n8n.io/workflows/4492/ โ original creator credit. Request a take-down โ
More Data & Sheets workflows โ ยท Browse all categories โ
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
Stopanderror Splitout. Uses outputParserStructured, lmChatOpenAi, formTrigger, chainLlm. Event-driven trigger; 85 nodes.
Deep Research old(fr). Uses outputParserStructured, formTrigger, chainLlm, form. Event-driven trigger; 79 nodes.
Splitout Filter. Uses manualTrigger, outputParserStructured, lmChatOpenRouter, informationExtractor. Event-driven trigger; 51 nodes.
Extractfromfile Form Export. Uses extractFromFile, lmChatOpenAi, outputParserStructured, formTrigger. Event-driven trigger; 23 nodes.
Extractfromfile Form. Uses extractFromFile, lmChatOpenAi, outputParserStructured, formTrigger. Event-driven trigger; 23 nodes.