Build CMS import rows and collision-safe redirects from a legacy CSV upload
Ready for 3.0What this workflow does
This workflow has 11 nodes and runs when someone submits an n8n form (“CMS migration redirect map”). It uses only n8n's built-in nodes.
How it runs
Trigger: When someone submits an n8n form (“CMS migration redirect map”).
- Extract CSV Records (Extract from File): extracts data from a file (csv)
- Set CMS Migration Rules (Edit Fields (Set)): sets or maps fields
- Normalize Source URLs (Code): runs custom JavaScript code
- Generate Safe Slugs (Code): runs custom JavaScript code
- Prepare Import Rows (Code): runs custom JavaScript code
- Check Import Status (If): checks a condition and branches into true / false
- Package CMS Imports (Code): runs custom JavaScript code
- Package CMS Review (Code): runs custom JavaScript code
- Merge: merges the data from its input branches
- Return Migration Map (Code): runs custom JavaScript code
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 (6)
- n8n Form Trigger
n8n-nodes-base.formTrigger - Extract from File
n8n-nodes-base.extractFromFile - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Merge
n8n-nodes-base.merge
From the author
Quick overview This workflow uses an n8n Form to upload a legacy content CSV, normalizes source URLs and slugs, generates collision-safe destination slugs, and outputs CMS import rows plus a 301 redirect map with diagnostics for collisions and rejected…