Live prices — WebSocket

Every message a connected WebSocket client sends becomes one run — here a price quote gets enriched and logged. Deployed, clients connect to ws://host/ticker.

What’s inside

3 nodes — every type links to its full reference page.

StepNodeType
ws://…/ticker WebSocket Trigger input.websocket
Quote spread Edit Fields (Set) processing.set
Quote board Console utility.console

Import it

  1. Studio → Import — paste the JSON below (or the URL /docs/templates/live-prices-websocket.json).
  2. Or ask the AI Copilot with the JSON pasted after the phrase:
    import this workflow json into a new workflow named "Live prices — WebSocket"
  3. 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": "Live prices — WebSocket",
  "version": "0",
  "status": "draft",
  "nodes": [
    {
      "id": "ws",
      "type": "input.websocket",
      "label": "ws://…/ticker",
      "category": "trigger",
      "config": {
        "path": "/ticker",
        "heartbeatSeconds": 30
      },
      "position": {
        "x": 0,
        "y": 0
      }
    },
    {
      "id": "spread",
      "type": "processing.set",
      "label": "Quote spread",
      "category": "processing",
      "config": {
        "mode": "manual",
        "assignments": [
          {
            "name": "ask",
            "type": "number",
            "value": "{{ $json.bid + 0.25 }}"
          }
        ],
        "include": "all",
        "dotNotation": true,
        "ignoreConversionErrors": false
      },
      "position": {
        "x": 530,
        "y": 0
      }
    },
    {
      "id": "out",
      "type": "utility.console",
      "label": "Quote board",
      "category": "utility",
      "config": {
        "message": "{{ $json.symbol }}: bid {{ $json.bid }} / ask {{ $json.ask }}"
      },
      "position": {
        "x": 1060,
        "y": 0
      }
    }
  ],
  "edges": [
    {
      "id": "e0",
      "sourceNodeId": "ws",
      "sourcePort": "output",
      "targetNodeId": "spread",
      "targetPort": "input"
    },
    {
      "id": "e1",
      "sourceNodeId": "spread",
      "sourcePort": "output",
      "targetNodeId": "out",
      "targetPort": "input"
    }
  ],
  "triggers": [
    {
      "id": "t0",
      "nodeId": "ws"
    }
  ],
  "meta": {
    "snippets": [],
    "source": "template-gallery",
    "description": "Every message a connected WebSocket client sends becomes one run — here a price quote gets enriched and logged. Deployed, clients connect to ws://host/ticker."
  }
}

Generated from the verified demo corpus — this exact document seeds and runs on a fresh Flowdrome. Raw JSON: live-prices-websocket.json.