{
  "schemaVersion": "flowdrome.workflow.v1",
  "id": "",
  "name": "Answer the caller — HTTP Response",
  "version": "0",
  "status": "draft",
  "nodes": [
    {
      "id": "hook",
      "type": "input.http.webhook",
      "label": "POST /quote",
      "category": "trigger",
      "config": {
        "method": "POST",
        "path": "/quote",
        "contentType": "application/json"
      },
      "position": {
        "x": 0,
        "y": 23
      }
    },
    {
      "id": "price",
      "type": "processing.set",
      "label": "Price lookup",
      "category": "processing",
      "config": {
        "mode": "manual",
        "assignments": [
          {
            "name": "price",
            "type": "number",
            "value": "9.99"
          },
          {
            "name": "currency",
            "type": "string",
            "value": "USD"
          }
        ],
        "include": "all",
        "dotNotation": true,
        "ignoreConversionErrors": false
      },
      "position": {
        "x": 530,
        "y": 0
      }
    },
    {
      "id": "resp",
      "type": "output.http-response",
      "label": "200 + quote",
      "category": "output",
      "config": {
        "statusCode": 200,
        "headers": {},
        "bodyMode": "payload"
      },
      "position": {
        "x": 1060,
        "y": 0
      }
    }
  ],
  "edges": [
    {
      "id": "e0",
      "sourceNodeId": "hook",
      "sourcePort": "output",
      "targetNodeId": "price",
      "targetPort": "input"
    },
    {
      "id": "e1",
      "sourceNodeId": "price",
      "sourcePort": "output",
      "targetNodeId": "resp",
      "targetPort": "input"
    }
  ],
  "triggers": [
    {
      "id": "t0",
      "nodeId": "hook"
    }
  ],
  "meta": {
    "snippets": [],
    "source": "template-gallery",
    "description": "A webhook that ANSWERS: the caller POSTs a SKU and gets a JSON quote back with a 200 — Early-respond means the caller never waits for anything after this node."
  }
}