Enrich via sub-workflow
The parent flow hands a customer to the reusable “Helper — enrich customer” sub-workflow and carries on with the enriched result — build a step once, call it from everywhere. Double-click into the sub-run from the run view.
Heads-up: A helper sub-workflow — seed the demo corpus (npm run seed:node-demos) or rewire the Execute Workflow node after import.
What’s inside
3 nodes — every type links to its full reference page.
| Step | Node | Type |
|---|---|---|
| Customer | Inject | input.inject |
| Call sub-workflow | Execute Workflow | workflow.workflow |
| Continue with result | Console | utility.console |
Import it
- Studio → Import — paste the JSON below (or the URL
/docs/templates/enrich-via-sub-workflow.json). - Or ask the AI Copilot with the JSON pasted after the phrase:
import this workflow json into a new workflow named "Enrich via sub-workflow" - Any credentials the nodes need are
${credential.…}references — add them once in Admin → Credentials and the template picks them up. Nothing secret ships in a template.
The workflow document (flowdrome.workflow.v1, 3 node types)
{
"schemaVersion": "flowdrome.workflow.v1",
"id": "",
"name": "Enrich via sub-workflow",
"version": "0",
"status": "draft",
"nodes": [
{
"id": "seed",
"type": "input.inject",
"label": "Customer",
"category": "trigger",
"config": {
"contentType": "application/json",
"payload": {
"customer": "Acme",
"tier": "gold"
}
},
"position": {
"x": 0,
"y": 0
}
},
{
"id": "call",
"type": "workflow.workflow",
"label": "Call sub-workflow",
"category": "flow",
"config": {
"executionMode": "sequential",
"workflows": [
{
"id": "IMPORT_ME_HELPER",
"name": "Node Demos · Helper — enrich customer"
}
]
},
"position": {
"x": 530,
"y": 0
}
},
{
"id": "out",
"type": "utility.console",
"label": "Continue with result",
"category": "utility",
"config": {
"message": "Enriched: {{ $json }}"
},
"position": {
"x": 1060,
"y": 0
}
}
],
"edges": [
{
"id": "e0",
"sourceNodeId": "seed",
"sourcePort": "output",
"targetNodeId": "call",
"targetPort": "input"
},
{
"id": "e1",
"sourceNodeId": "call",
"sourcePort": "output",
"targetNodeId": "out",
"targetPort": "input"
}
],
"triggers": [
{
"id": "t0",
"nodeId": "seed"
}
],
"meta": {
"snippets": [],
"source": "template-gallery",
"description": "The parent flow hands a customer to the reusable “Helper — enrich customer” sub-workflow and carries on with the enriched result — build a step once, call it from everywhere. Double-click into the sub-run from the run view."
}
} Generated from the verified demo corpus — this exact document seeds and runs on a fresh Flowdrome. Raw JSON: enrich-via-sub-workflow.json.