{
  "schemaVersion": "flowdrome.workflow.v1",
  "id": "",
  "name": "Caller memory — remember the last request",
  "version": "0",
  "status": "draft",
  "nodes": [
    {
      "id": "seed",
      "type": "input.inject",
      "label": "Incoming request",
      "category": "trigger",
      "config": {
        "contentType": "application/json",
        "payload": {
          "caller": "ada@example.test",
          "request": "reset my API key"
        }
      },
      "position": {
        "x": 0,
        "y": 0
      }
    },
    {
      "id": "remember",
      "type": "storage.memory",
      "label": "Remember",
      "category": "utility",
      "config": {
        "op": "append",
        "key": "caller-history",
        "value": {
          "caller": "ada@example.test",
          "request": "reset my API key"
        }
      },
      "position": {
        "x": 530,
        "y": 0
      }
    },
    {
      "id": "recall",
      "type": "storage.memory",
      "label": "Recall last 5",
      "category": "utility",
      "config": {
        "op": "recall",
        "key": "caller-history",
        "limit": 5
      },
      "position": {
        "x": 1060,
        "y": 0
      }
    },
    {
      "id": "out",
      "type": "utility.console",
      "label": "Caller history",
      "category": "utility",
      "config": {
        "message": "history: {{ $json }}"
      },
      "position": {
        "x": 1590,
        "y": 0
      }
    }
  ],
  "edges": [
    {
      "id": "e0",
      "sourceNodeId": "seed",
      "sourcePort": "output",
      "targetNodeId": "remember",
      "targetPort": "input"
    },
    {
      "id": "e1",
      "sourceNodeId": "remember",
      "sourcePort": "output",
      "targetNodeId": "recall",
      "targetPort": "input"
    },
    {
      "id": "e2",
      "sourceNodeId": "recall",
      "sourcePort": "output",
      "targetNodeId": "out",
      "targetPort": "input"
    }
  ],
  "triggers": [
    {
      "id": "t0",
      "nodeId": "seed"
    }
  ],
  "meta": {
    "snippets": [],
    "source": "template-gallery",
    "description": "Cross-run memory scoped to this workflow: append what the caller asked for, then recall the recent history — run it several times and the history grows."
  }
}