{
 "name": "[노드 한 장] OpenAI Chat Model · 같은 샘플을 두 설정으로",
 "nodes": [
  {
   "id": "m",
   "name": "Run manually",
   "type": "n8n-nodes-base.manualTrigger",
   "typeVersion": 1,
   "position": [
    0,
    0
   ],
   "parameters": {}
  },
  {
   "id": "s",
   "name": "Same fictional prompt",
   "type": "n8n-nodes-base.code",
   "typeVersion": 2,
   "position": [
    220,
    0
   ],
   "parameters": {
    "jsCode": "// 직접 작성한 가상 프롬프트. 두 실행에 완전히 동일한 문장 사용.\nreturn [{json:{sample:true,prompt:\"직접 작성한 가상 장면입니다. 비 오는 날 창가에서 따뜻한 차를 마시는 장면에 붙일 짧은 한국어 제목 하나를 써 주세요. 8~12자 내외, 제목만, 따옴표 없이 답하세요.\"}}];"
   }
  },
  {
   "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": "lm",
   "name": "OpenAI Chat Model",
   "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
   "typeVersion": 1.2,
   "position": [
    460,
    240
   ],
   "parameters": {
    "model": {
     "__rl": true,
     "mode": "list",
     "value": "gpt-4.1-mini",
     "cachedResultName": "gpt-4.1-mini"
    },
    "options": {
     "temperature": 0
    }
   }
  }
 ],
 "connections": {
  "Run manually": {
   "main": [
    [
     {
      "node": "Same fictional prompt",
      "type": "main",
      "index": 0
     }
    ]
   ]
  },
  "Same fictional prompt": {
   "main": [
    [
     {
      "node": "Basic LLM Chain",
      "type": "main",
      "index": 0
     }
    ]
   ]
  },
  "OpenAI Chat Model": {
   "ai_languageModel": [
    [
     {
      "node": "Basic LLM Chain",
      "type": "ai_languageModel",
      "index": 0
     }
    ]
   ]
  }
 },
 "settings": {
  "executionOrder": "v1",
  "timezone": "Asia/Seoul"
 },
 "meta": {
  "templateCredsSetupCompleted": false,
  "source": "datapopcorn.ai/workflow/nodes"
 }
}