{
 "name": "[노드 한 장] AI Agent · Steam 리뷰 50개 → 3줄 요약",
 "nodes": [
  {
   "id": "b1",
   "name": "Run manually",
   "type": "n8n-nodes-base.manualTrigger",
   "typeVersion": 1,
   "position": [
    0,
    0
   ],
   "parameters": {}
  },
  {
   "id": "b2",
   "name": "Get recent reviews",
   "type": "n8n-nodes-base.httpRequest",
   "typeVersion": 4.2,
   "position": [
    220,
    0
   ],
   "parameters": {
    "url": "https://store.steampowered.com/ajaxappreviews/1091500?json=1&l=english&language=english&num_per_page=50&filter=recent&purchase_type=all",
    "options": {}
   }
  },
  {
   "id": "b3",
   "name": "Join review texts",
   "type": "n8n-nodes-base.code",
   "typeVersion": 2,
   "position": [
    440,
    0
   ],
   "parameters": {
    "jsCode": "const r = $input.first().json.reviews || [];\nconst up = r.filter(x => x.voted_up).length;\nconst text = r.map((x, i) => `#${i+1} [${x.voted_up ? 'Recommended' : 'Not recommended'}] ${x.review.replace(/\\s+/g,' ').slice(0, 500)}`).join('\\n');\nreturn [{ json: { game: 'Cyberpunk 2077', review_count: r.length, recommended: up, not_recommended: r.length - up, characters: text.length, reviews: text } }];"
   }
  },
  {
   "id": "b4",
   "name": "AI Agent",
   "type": "@n8n/n8n-nodes-langchain.agent",
   "typeVersion": 2,
   "position": [
    680,
    0
   ],
   "parameters": {
    "promptType": "define",
    "text": "=Game: {{ $json.game }}\nReviews ({{ $json.review_count }}):\n{{ $json.reviews }}",
    "options": {
     "systemMessage": "You summarize Steam user reviews for someone with no time to read them.\nReply in exactly this format, nothing else:\nKO\n1. 좋은 점: (한 줄)\n2. 불만: (한 줄)\n3. 총평: (한 줄)\nEN\n1. Likes: (one line)\n2. Complaints: (one line)\n3. Overall: (one line)\nUse only what the reviews say. Keep each line under 60 characters."
    }
   }
  },
  {
   "id": "b5",
   "name": "OpenAI Chat Model",
   "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
   "typeVersion": 1.2,
   "position": [
    600,
    220
   ],
   "parameters": {
    "model": {
     "__rl": true,
     "mode": "list",
     "value": "gpt-4.1-mini",
     "cachedResultName": "gpt-4.1-mini"
    },
    "options": {
     "temperature": 0.2
    }
   }
  }
 ],
 "connections": {
  "Run manually": {
   "main": [
    [
     {
      "node": "Get recent reviews",
      "type": "main",
      "index": 0
     }
    ]
   ]
  },
  "Get recent reviews": {
   "main": [
    [
     {
      "node": "Join review texts",
      "type": "main",
      "index": 0
     }
    ]
   ]
  },
  "Join review texts": {
   "main": [
    [
     {
      "node": "AI Agent",
      "type": "main",
      "index": 0
     }
    ]
   ]
  },
  "OpenAI Chat Model": {
   "ai_languageModel": [
    [
     {
      "node": "AI Agent",
      "type": "ai_languageModel",
      "index": 0
     }
    ]
   ]
  }
 },
 "settings": {
  "timezone": "Asia/Seoul",
  "executionOrder": "v1"
 },
 "meta": {
  "templateCredsSetupCompleted": false,
  "source": "datapopcorn.ai/workflow/nodes"
 }
}