{
  "name": "KYOEN Cards",
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "kyoen-cards"
      },
      "id": "webhook",
      "name": "LINE Command",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 1,
      "position": [
        250,
        300
      ],
      "credentials": {}
    },
    {
      "parameters": {
        "method": "GET",
        "url": "${\"https://nrbserphtykbhwdowfsz.supabase.co\"}/rest/v1/line_cards?select=*&order=updated_at.desc&limit=10",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "apikey",
              "value": "<redacted-credential>"
            },
            {
              "name": "Authorization",
              "value": "Bearer${\"<redacted-credential>\"}"
            }
          ]
        }
      },
      "id": "query",
      "name": "Query Cards",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.1,
      "position": [
        450,
        300
      ]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://api.line.me/v2/bot/message/reply",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "Content-Type",
              "value": "application/json"
            },
            {
              "name": "Authorization",
              "value": "Bearer jffJiSAr5f/YtAthi/rcB3zwP0rew1y8OXPiJH3BSNd31oxheNvg1wT1VaTM7KorLFINWDWwelf1Hx7ptKEd8a9U5clDDerK8shFJtKp1bwCt8BNQhuB5m8LSGKsUhfIX+DX+gXY0kiBhMAXWdW70AdB04t89/1O/w1cDnyilFU"
            }
          ]
        },
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "{\"replyToken\":\"={{ $json.events[0].replyToken }}\",\"messages\":[{\"type\":\"text\",\"text\":\"\u30ab\u30fc\u30c9\u4e00\u89a7:\\n{{ $json.map(c => c.title).join(\\\"\\\\n\\\") }}\"}]}"
      },
      "id": "reply",
      "name": "Reply Cards",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.1,
      "position": [
        650,
        300
      ]
    }
  ],
  "connections": {
    "LINE Command": {
      "main": [
        [
          {
            "node": "Query Cards",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Query Cards": {
      "main": [
        [
          {
            "node": "Reply Cards",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  },
  "staticData": null
}