Wire up a sub-workflow
You've inherited an order-routing workflow where the same Edit Fields logic was copy-pasted into both branches of an If node. That duplication makes every change twice as risky and clutters the canvas. It's time to refactor.
You'll import two starter files — a main workflow with duplicated processing nodes and a sub-workflow with the shared logic. You'll delete the duplicated nodes and replace them with Execute Sub-workflow calls on each branch, creating a single source of truth for the processing logic.
This exercise is part of the course
Intermediate Workflow Automation with n8n
Hands-on interactive exercise
Turn theory into action with one of our interactive exercises
Start Exercise