{
 "name": "[노드 한 장] Model Selector · 수동 tier로 두 모델 옵션 고르기",
 "nodes": [
  {
   "id": "m",
   "name": "Run manually",
   "type": "n8n-nodes-base.manualTrigger",
   "typeVersion": 1,
   "position": [
    0,
    0
   ],
   "parameters": {}
  },
  {
   "id": "s",
   "name": "One manual tier sample",
   "type": "n8n-nodes-base.code",
   "typeVersion": 2,
   "position": [
    220,
    0
   ],
   "parameters": {
    "jsCode": "// 직접 정한 tier는 실습용 라벨입니다. 난이도를 추론하는 분류가 아닙니다.\nreturn [{json:{sample:true,tier:\"basic\",prompt:\"직접 작성한 가상 안내문입니다. '샘플 노트 판매를 시작합니다'를 공손한 한국어 한 문장으로 바꿔주세요. 문장만 답하세요.\"}}];"
   }
  },
  {
   "id": "c",
   "name": "Basic LLM Chain",
   "type": "@n8n/n8n-nodes-langchain.chainLlm",
   "typeVersion": 1.7,
   "position": [
    460,
    0
   ],
   "parameters": {
    "promptType": "define",
    "text": "={{ $json.prompt }}",
    "hasOutputParser": false
   }
  },
  {
   "id": "r",
   "name": "Model Selector",
   "type": "@n8n/n8n-nodes-langchain.modelSelector",
   "typeVersion": 1,
   "position": [
    460,
    240
   ],
   "parameters": {
    "numberInputs": 2,
    "rules": {
     "rule": [
      {
       "modelIndex": 1,
       "conditions": {
        "options": {
         "caseSensitive": true,
         "leftValue": "",
         "typeValidation": "strict",
         "version": 2
        },
        "conditions": [
         {
          "id": "route-basic",
          "leftValue": "={{ $json.tier }}",
          "rightValue": "basic",
          "operator": {
           "type": "string",
           "operation": "equals"
          }
         }
        ],
        "combinator": "and"
       }
      },
      {
       "modelIndex": 2,
       "conditions": {
        "options": {
         "caseSensitive": true,
         "leftValue": "",
         "typeValidation": "strict",
         "version": 2
        },
        "conditions": [
         {
          "id": "route-standard",
          "leftValue": "={{ $json.tier }}",
          "rightValue": "standard",
          "operator": {
           "type": "string",
           "operation": "equals"
          }
         }
        ],
        "combinator": "and"
       }
      }
     ]
    }
   }
  },
  {
   "id": "n",
   "name": "OpenAI mini temp0",
   "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
   "typeVersion": 1.2,
   "position": [
    310,
    460
   ],
   "parameters": {
    "model": {
     "__rl": true,
     "mode": "list",
     "value": "gpt-4.1-mini",
     "cachedResultName": "gpt-4.1-mini"
    },
    "options": {
     "temperature": 0
    }
   }
  },
  {
   "id": "p",
   "name": "OpenAI mini temp08",
   "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
   "typeVersion": 1.2,
   "position": [
    650,
    460
   ],
   "parameters": {
    "model": {
     "__rl": true,
     "mode": "list",
     "value": "gpt-4.1-mini",
     "cachedResultName": "gpt-4.1-mini"
    },
    "options": {
     "temperature": 0.8
    }
   }
  }
 ],
 "connections": {
  "Run manually": {
   "main": [
    [
     {
      "node": "One manual tier sample",
      "type": "main",
      "index": 0
     }
    ]
   ]
  },
  "One manual tier sample": {
   "main": [
    [
     {
      "node": "Basic LLM Chain",
      "type": "main",
      "index": 0
     }
    ]
   ]
  },
  "Model Selector": {
   "ai_languageModel": [
    [
     {
      "node": "Basic LLM Chain",
      "type": "ai_languageModel",
      "index": 0
     }
    ]
   ]
  },
  "OpenAI mini temp0": {
   "ai_languageModel": [
    [
     {
      "node": "Model Selector",
      "type": "ai_languageModel",
      "index": 0
     }
    ]
   ]
  },
  "OpenAI mini temp08": {
   "ai_languageModel": [
    [
     {
      "node": "Model Selector",
      "type": "ai_languageModel",
      "index": 1
     }
    ]
   ]
  }
 },
 "settings": {
  "executionOrder": "v1",
  "timezone": "Asia/Seoul"
 },
 "meta": {
  "templateCredsSetupCompleted": false,
  "source": "datapopcorn.ai/workflow/nodes"
 }
}