{
  "schemaVersion": "flowdrome.workflow.v1",
  "id": "",
  "name": "Invoices — CSV round trip",
  "version": "0",
  "status": "draft",
  "nodes": [
    {
      "id": "seed",
      "type": "input.inject",
      "label": "CSV export",
      "category": "trigger",
      "config": {
        "contentType": "application/json",
        "payload": "invoice,customer,amount\r\nINV-1,Acme,1200.50\r\nINV-2,Globex,89.99\r\nINV-3,Initech,432.10"
      },
      "position": {
        "x": 0,
        "y": 0
      }
    },
    {
      "id": "parse",
      "type": "processing.csv",
      "label": "Parse rows",
      "category": "processing",
      "config": {
        "mode": "parse",
        "header": true,
        "typed": true,
        "delimiter": ",",
        "trim": true,
        "inputField": "",
        "outputField": "",
        "columns": ""
      },
      "position": {
        "x": 530,
        "y": 0
      }
    },
    {
      "id": "pack",
      "type": "processing.convert-to-file",
      "label": "Package as file",
      "category": "processing",
      "config": {
        "format": "csv",
        "sourceField": "",
        "fileName": "invoices.csv",
        "outputField": "file"
      },
      "position": {
        "x": 1060,
        "y": 0
      }
    },
    {
      "id": "unpack",
      "type": "processing.extract-from-file",
      "label": "Read it back",
      "category": "processing",
      "config": {
        "format": "csv",
        "sourceField": "file",
        "outputField": ""
      },
      "position": {
        "x": 1590,
        "y": 0
      }
    },
    {
      "id": "out",
      "type": "utility.console",
      "label": "Verified",
      "category": "utility",
      "config": {
        "message": "Round-tripped rows: {{ $json }}"
      },
      "position": {
        "x": 2120,
        "y": 0
      }
    }
  ],
  "edges": [
    {
      "id": "e0",
      "sourceNodeId": "seed",
      "sourcePort": "output",
      "targetNodeId": "parse",
      "targetPort": "input"
    },
    {
      "id": "e1",
      "sourceNodeId": "parse",
      "sourcePort": "output",
      "targetNodeId": "pack",
      "targetPort": "input"
    },
    {
      "id": "e2",
      "sourceNodeId": "pack",
      "sourcePort": "output",
      "targetNodeId": "unpack",
      "targetPort": "input"
    },
    {
      "id": "e3",
      "sourceNodeId": "unpack",
      "sourcePort": "output",
      "targetNodeId": "out",
      "targetPort": "input"
    }
  ],
  "triggers": [
    {
      "id": "t0",
      "nodeId": "seed"
    }
  ],
  "meta": {
    "snippets": [],
    "source": "template-gallery",
    "description": "A finance export arrives as CSV text: parse it into typed rows, package the rows back into a downloadable file, and prove the file reads back — the import/export loop every finance flow needs."
  }
}