{
  "schemaVersion": "flowdrome.workflow.v1",
  "id": "",
  "name": "New lead lands — Table trigger",
  "version": "0",
  "status": "draft",
  "nodes": [
    {
      "id": "watch",
      "type": "input.table",
      "label": "Watch Node Demo Leads",
      "category": "trigger",
      "config": {
        "table": "Node Demo Leads",
        "events": [
          "created"
        ],
        "pollSeconds": 5
      },
      "position": {
        "x": 0,
        "y": 0
      }
    },
    {
      "id": "out",
      "type": "utility.console",
      "label": "Welcome flow",
      "category": "utility",
      "config": {
        "message": "{{ $json.event }} row {{ $json.rowId }}: {{ $json.row.email }} ({{ $json.row.company }}) — start the welcome flow"
      },
      "position": {
        "x": 530,
        "y": 0
      }
    }
  ],
  "edges": [
    {
      "id": "e0",
      "sourceNodeId": "watch",
      "sourcePort": "output",
      "targetNodeId": "out",
      "targetPort": "input"
    }
  ],
  "triggers": [
    {
      "id": "t0",
      "nodeId": "watch"
    }
  ],
  "meta": {
    "snippets": [],
    "source": "template-gallery",
    "description": "Deployed, this fires whenever a row is created in the “Node Demo Leads” Flowdrome Table (the host polls the table's change feed; pick created/updated/deleted kinds on the node). Test simulates one change so you can build the downstream flow now — pair it with the “Lead ledger — Flowdrome Tables” demo, which writes the rows."
  }
}