8
n8n 한국어amn8n.com

n8n에서 OpenRouter.ai 채팅 API 워크플로우를 사용하여 작업

초급

이것은Engineering, AI Chatbot분야의자동화 워크플로우로, 4개의 노드를 포함합니다.주로 Set, Summarize, HttpRequest, ManualTrigger 등의 노드를 사용하며. OpenRouter를 사용하여 Mistral과 AI 모델을 통해 채팅합니다.

사전 요구사항
  • 대상 API의 인증 정보가 필요할 수 있음
워크플로우 미리보기
노드 연결 관계를 시각적으로 표시하며, 확대/축소 및 이동을 지원합니다
워크플로우 내보내기
다음 JSON 구성을 복사하여 n8n에 가져오면 이 워크플로우를 사용할 수 있습니다
{
  "id": "I0kBHahzGYqCjGVg",
  "meta": {
    "instanceId": "29dccb3f636e984cab758d231ae358f0228fd43880fb6292144b674668680e5a"
  },
  "name": "Use OpenRouter.ai Chat API Workflow in n8n",
  "tags": [],
  "nodes": [
    {
      "id": "865b71c0-1571-45d1-b043-34748152efc1",
      "name": "워크플로우 실행 시",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -200,
        0
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "46b00289-733d-46ec-9db4-1774d3ff9ce6",
      "name": "OpenRouter.ai",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        280,
        0
      ],
      "parameters": {
        "url": "https://openrouter.ai/api/v1/chat/completions",
        "method": "POST",
        "options": {},
        "jsonBody": "={\n  \"model\": \"{{ $json.Model }}\",\n  \"messages\": [\n    {\n      \"role\": \"user\",\n      \"content\": \"{{ $json.Message }}\"\n    }\n  ]\n}\n",
        "sendBody": true,
        "specifyBody": "json",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpBearerAuth"
      },
      "typeVersion": 4.2
    },
    {
      "id": "8485a42f-54f5-4151-861b-30e565e0d0b6",
      "name": "모델 및 프롬프트 설정",
      "type": "n8n-nodes-base.set",
      "position": [
        40,
        0
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "230805bf-a50a-4d36-ac6d-70847bac862e",
              "name": "Model",
              "type": "string",
              "value": "mistralai/mistral-small-3.2-24b-instruct:free"
            },
            {
              "id": "c8d75446-659e-4fe6-bc88-8f24cf1a510e",
              "name": "Message",
              "type": "string",
              "value": "What is the meaning of life?"
            },
            {
              "id": "7eb8f25c-8a85-445c-9b06-0aaf66c5b719",
              "name": "",
              "type": "string",
              "value": ""
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "96a85fb6-2a8a-4417-93c7-9a6302658dfe",
      "name": "요약",
      "type": "n8n-nodes-base.summarize",
      "position": [
        500,
        0
      ],
      "parameters": {
        "options": {},
        "fieldsToSummarize": {
          "values": [
            {
              "field": "choices[0].message.content",
              "aggregation": "min"
            }
          ]
        }
      },
      "typeVersion": 1.1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "771a55ac-ff58-4b56-9137-b1871465b185",
  "connections": {
    "46b00289-733d-46ec-9db4-1774d3ff9ce6": {
      "main": [
        [
          {
            "node": "96a85fb6-2a8a-4417-93c7-9a6302658dfe",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "8485a42f-54f5-4151-861b-30e565e0d0b6": {
      "main": [
        [
          {
            "node": "46b00289-733d-46ec-9db4-1774d3ff9ce6",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "865b71c0-1571-45d1-b043-34748152efc1": {
      "main": [
        [
          {
            "node": "8485a42f-54f5-4151-861b-30e565e0d0b6",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
자주 묻는 질문

이 워크플로우를 어떻게 사용하나요?

위의 JSON 구성 코드를 복사하여 n8n 인스턴스에서 새 워크플로우를 생성하고 "JSON에서 가져오기"를 선택한 후, 구성을 붙여넣고 필요에 따라 인증 설정을 수정하세요.

이 워크플로우는 어떤 시나리오에 적합한가요?

초급 - 엔지니어링, AI 챗봇

유료인가요?

이 워크플로우는 완전히 무료이며 직접 가져와 사용할 수 있습니다. 다만, 워크플로우에서 사용하는 타사 서비스(예: OpenAI API)는 사용자 직접 비용을 지불해야 할 수 있습니다.

워크플로우 정보
난이도
초급
노드 수4
카테고리2
노드 유형4
난이도 설명

n8n 초보자를 위한 1-5개 노드의 간단한 워크플로우

외부 링크
n8n.io에서 보기

이 워크플로우 공유

카테고리

카테고리: 34