AJ Learning Hub logoAJ Learning Hub

Sub-workflow (n8n)

also sub-workflow

In n8n, a sub-workflow is a separate workflow called by another via the Execute Workflow node, enabling reusable, modular logic.

Analogy

Like a function you call from many places instead of copying the same code.

Why it matters

Sub-workflows keep complex automations modular and reusable, reducing duplication across builds.

In practice

A reusable 'send Slack alert' sub-workflow called by several parent workflows.

Related terms:n8nNode (n8n)OrchestrationSubagent