{
  "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."
  }
}