{
  "name": "StreamDeck - Data Table Bridge",
  "nodes": [
    {
      "parameters": {
        "httpMethod": "GET",
        "path": "streamdeck-table",
        "responseMode": "responseNode",
        "options": {}
      },
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [260, 300],
      "id": "webhook-1",
      "name": "Webhook"
    },
    {
      "parameters": {
        "operation": "getRows",
        "tableId": {
          "__rl": true,
          "mode": "name",
          "value": "={{ $json.query.table }}"
        },
        "returnAll": true,
        "options": {}
      },
      "type": "n8n-nodes-base.dataTable",
      "typeVersion": 1,
      "position": [480, 300],
      "id": "datatable-1",
      "name": "Get Table Rows"
    },
    {
      "parameters": {
        "respondWith": "allIncomingItems",
        "options": {}
      },
      "type": "n8n-nodes-base.respondToWebhook",
      "typeVersion": 1.1,
      "position": [700, 300],
      "id": "respond-1",
      "name": "Respond to Webhook"
    },
    {
      "parameters": {
        "content": "## StreamDeck - Data Table Bridge\n\nThis workflow reads any Data Table dynamically.\nThe table name is passed as a query parameter by the Stream Deck plugin.\n\n1. Activate this workflow\n2. Copy the **Production** webhook URL\n3. Paste it in the Stream Deck plugin settings\n4. Set the **Table name** in the plugin — it will be sent automatically\n\nExample: `GET /webhook/streamdeck-table?table=QOBUZ_famosi`",
        "height": 240,
        "width": 420
      },
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [240, 40],
      "id": "note-1",
      "name": "Instructions"
    }
  ],
  "connections": {
    "Webhook": {
      "main": [
        [
          {
            "node": "Get Table Rows",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Table Rows": {
      "main": [
        [
          {
            "node": "Respond to Webhook",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "tags": []
}
