Reusable and independently testable sub-workflow
$20/month : Unlimited workflows
2500 executions/month
THE #1 IN WEB SCRAPING
Scrape any website without limits
HOSTINGER 🎉 Early Black Friday Deal
DISCOUNT 20% Try free
DISCOUNT 20%
Self-hosted n8n
Unlimited workflows - from $4.99/mo
#1 hub for scraping, AI & automation
6000+ actors - $5 credits/mo
Reusable and Independently Testable Sub-workflow
This n8n workflow provides a standardized structure for building and testing sub-workflows in isolation. Its purpose is to help you create robust, reusable, and maintainable automations by enabling you to test the sub-workflow's logic without needing a separate parent workflow.
Setup Instructions:
- Define Sub-workflow Inputs: Double-click the Execute Sub-workflow Trigger node to define the parameters (e.g.,
color) that your sub-workflow will expect from a parent workflow. - Configure Test Data: Use the
Test Inputnode (an Edit Fields (Set) node connected to the Manual Trigger) to provide sample data for isolated testing. - Connect Inputs: The
Combine Inputnode (an Edit Fields (Set) node) is the entry point for your sub-workflow's core logic. It should have two inputs: one from theExecute Sub-workflow Triggerand one from theTest Inputnode. - Merge Inputs: Ensure the
Combine Inputnode has the 'Include Other Input Fields' option enabled to merge data from both the live and test paths seamlessly.
You can read the full blog post that explains this workflow setup in detail here.