Overview
This lesson is part of the n8n AI Automation - Zero to Hero course, Section: 3. Deep Dive Concepts.
Watch the video above for the full tutorial, or read the written guide below.
What Are Sub-Workflows in n8n?
A sub-workflow is a separate workflow you call from another workflow, like a reusable function. The calling workflow uses the Execute Sub-workflow node, and the sub-workflow runs from its own Execute Sub-workflow Trigger, accepts input data, and returns a result.
How to Use Sub-Workflows in n8n
Build the reusable logic as its own workflow that starts with an Execute Sub-workflow Trigger. In the main workflow, add an Execute Sub-workflow node, select that workflow, and pass in the data it needs. The sub-workflow runs and hands its output back to the main flow. Use sub-workflows to reuse one tested process across many automations, keep large workflows readable, and isolate logic you change often.
Key Takeaways
- Understanding the core concepts covered in this lesson
- Practical, hands-on experience you can apply immediately
- Tips from real-world n8n workflow implementations
Related Lessons
- Lesson 11: How Branching works in n8n Workflows | Smart Automations with Multiple Paths
- Lesson 12: How to Use Merge Node in n8n | Combine Data Like a Pro
- Lesson 13: How to Use Set Node in n8n | Edit Fields Node | Add, Edit, Clean Data
- Lesson 14: How to Use Aggregate Node in n8n | Combine & Summarize Data
- Lesson 15: How to Use Remove Duplicates Node in n8n | Clean Your Data Fast
Next Steps
Continue your n8n journey with the full n8n AI Automation - Zero to Hero course.