{
 "name": "[노드 한 장] Filter · 50% 이상 + $20 이하만 남기기",
 "nodes": [
  {
   "id": "f1",
   "name": "Run manually",
   "type": "n8n-nodes-base.manualTrigger",
   "typeVersion": 1,
   "position": [
    0,
    200
   ],
   "parameters": {}
  },
  {
   "id": "f2",
   "name": "Get Steam specials",
   "type": "n8n-nodes-base.httpRequest",
   "typeVersion": 4.2,
   "position": [
    240,
    200
   ],
   "parameters": {
    "url": "https://store.steampowered.com/api/featuredcategories?cc=us&l=english",
    "options": {}
   }
  },
  {
   "id": "f3",
   "name": "Split into games",
   "type": "n8n-nodes-base.splitOut",
   "typeVersion": 1,
   "position": [
    480,
    200
   ],
   "parameters": {
    "fieldToSplitOut": "specials.items",
    "options": {}
   }
  },
  {
   "id": "f4",
   "name": "50%+ off and under $20",
   "type": "n8n-nodes-base.filter",
   "typeVersion": 2.2,
   "position": [
    720,
    200
   ],
   "parameters": {
    "conditions": {
     "options": {
      "caseSensitive": true,
      "leftValue": "",
      "typeValidation": "strict",
      "version": 2
     },
     "conditions": [
      {
       "id": "c1",
       "leftValue": "={{ $json.discount_percent }}",
       "rightValue": 50,
       "operator": {
        "type": "number",
        "operation": "gte"
       }
      },
      {
       "id": "c2",
       "leftValue": "={{ $json.final_price / 100 }}",
       "rightValue": 20,
       "operator": {
        "type": "number",
        "operation": "lte"
       }
      }
     ],
     "combinator": "and"
    },
    "options": {}
   }
  },
  {
   "id": "f5",
   "name": "Deal list",
   "type": "n8n-nodes-base.set",
   "typeVersion": 3.4,
   "position": [
    960,
    200
   ],
   "parameters": {
    "includeOtherFields": false,
    "assignments": {
     "assignments": [
      {
       "id": "a1",
       "name": "game",
       "type": "string",
       "value": "={{ $json.name }}"
      },
      {
       "id": "a2",
       "name": "discount",
       "type": "string",
       "value": "={{ $json.discount_percent }}%"
      },
      {
       "id": "a3",
       "name": "price_usd",
       "type": "number",
       "value": "={{ $json.final_price / 100 }}"
      }
     ]
    },
    "options": {}
   }
  }
 ],
 "connections": {
  "Run manually": {
   "main": [
    [
     {
      "node": "Get Steam specials",
      "type": "main",
      "index": 0
     }
    ]
   ]
  },
  "Get Steam specials": {
   "main": [
    [
     {
      "node": "Split into games",
      "type": "main",
      "index": 0
     }
    ]
   ]
  },
  "Split into games": {
   "main": [
    [
     {
      "node": "50%+ off and under $20",
      "type": "main",
      "index": 0
     }
    ]
   ]
  },
  "50%+ off and under $20": {
   "main": [
    [
     {
      "node": "Deal list",
      "type": "main",
      "index": 0
     }
    ]
   ]
  }
 },
 "settings": {
  "timezone": "Asia/Seoul",
  "executionOrder": "v1"
 },
 "meta": {
  "templateCredsSetupCompleted": false,
  "source": "datapopcorn.ai/workflow/nodes"
 }
}