Start Multiple Sub-Workflows Asynchronously
Configured with HTTP Request, Respond To Webhook, Loop Over Items, Wait, and additional nodes. Review the connections and setup before adapting this template.
Node categories in this workflow
- Trigger
- Routing
- Wait
- Code
- Transform
- Web / API
Icons describe general node roles, inferred from node types. Inspect the parameters for the configured action.
Drag to pan; use + and − to zoom. Reconstructed from the exported node positions; nothing runs here. Dashed lines represent non-main connections. Full node names and notes appear below.
How it works
The exported workflow contains the following configured nodes. Their connections are shown above; inspect the JSON for the complete logic, expressions, and external actions.
| Node | Category | Type | Operation |
|---|---|---|---|
| When clicking ‘Test workflow’ | Trigger | Manual Trigger | See node parameters |
| Loop Over Items | Routing | Loop Over Items | See node parameters |
| Webhook Callback Wait | Wait | Wait | See node parameters |
| Update finishedSet | Code | Code | See node parameters |
| Initialize finishedSet | Transform | Edit Fields | See node parameters |
| Simulate Multi-Item for Parallel Processing | Code | Code | See node parameters |
| If All Finished | Routing | If | See node parameters |
| Start Sub-Workflow via Webhook | Web / API | HTTP Request | POST |
| Acknowledge Finished | Web / API | Respond To Webhook | See node parameters |
| Continue Workflow (noop) | Routing | No Op | See node parameters |
| Wait | Wait | Wait | See node parameters |
| Call Resume on Parent Workflow | Web / API | HTTP Request | POST |
| Respond to Webhook | Web / API | Respond To Webhook | See node parameters |
| Webhook | Trigger | Webhook | See node parameters |
Setup
- Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
- Connect your own credentials through n8n’s credential store. Replace
REPLACE_WITH_*values with your resource identifiers. - Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
- Run with synthetic data and harmless destinations. Enable triggers only after checking the actual outputs.
Requirements
An n8n instance with the listed node types and compatible versions. Service-connected workflows may require accounts, credentials, or paid APIs.
Credential types declared in the source
None declared. HTTP requests and Code nodes may still need configuration.
Workflow notes
Start Multiple Sub-Workflows Asynchronously
Start Multiple Sub-Workflows Asynchronously
- Note: Callback/Webhook "internal" Base-URL should be configured in the n8n instance to reference the k8s service name and internal port.
Main/Parent Workflow
Main/Parent Workflow
- This starts multiple executions of the sub-workflow in parallel and then loops until they all report back.
Sub-Workflow
Sub-Workflow
Cut/Paste this into a separate workflow, and activate it!!!
Call Resume on Parent Workflow
The callback resumes the parent workflow and reports which item finished. There could be a race condition if the parent workflow was just resumed by a different sub-workflow but hasn't entered a webhook-wait again yet. The delay and retry mitigates for the possibility that multiple subtasks complete and call back at once.
Start Multiple Sub-Workflows Asynchronously
Start Multiple Sub-Workflows Asynchronously
Purpose and structure
This folder contains the Start Multiple Sub-Workflows Asynchronously workflow. Its executable nodes use code, httpRequest, if, manualTrigger, noOp, respondToWebhook, set, splitInBatches, wait, webhook. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.
Setup
Import inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.
Entry points
When clicking ‘Test workflow’, Webhook
Verification
Sanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.
Attribution
https://github.com/Zie619/n8n-workflows/blob/94007c1445d9258a7da116646b79473e7c7c3282/workflows/Wait/0629_Wait_Code_Update_Webhook.json MIT; preserve source notices.
Canvas section labels
These name areas of the original canvas; they do not include explanatory instructions.
- Pseudo-Synchronously Wait for All Sub-Workflows to finish