製品の推奨 RAG

上級

これはLead Nurturing, AI RAG分野の自動化ワークフローで、17個のノードを含みます。主にGoogleSheets, ManualTrigger, SplitInBatches, Agent, ChatTriggerなどのノードを使用。 OpenAI、Qdrant、GoogleスプレッドシートRAGで医療症状を製品に一致させる

前提条件
  • Google Sheets API認証情報
  • OpenAI API Key
  • Qdrantサーバー接続情報
ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
  "id": "npjeGNOHqwXLz1AX",
  "meta": {
    "instanceId": "b50483b2122f6dc268662b45507d575d939570ea8e1e086601ebb3b6273c1cfd",
    "templateCredsSetupCompleted": true
  },
  "name": "Product Recommendation RAG",
  "tags": [],
  "nodes": [
    {
      "id": "ab7e0eb2-1a72-4dee-8b6a-c6a836fce257",
      "name": "付箋",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1360,
        -16
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "8882b64e-5caf-4a05-a7f3-d78b93d9f30c",
      "name": "RAGエージェント",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -896,
        160
      ],
      "parameters": {},
      "typeVersion": 1.7
    },
    {
      "id": "3788a0b5-4f73-4bd1-bdca-b659a49710f5",
      "name": "ワークフロー実行時",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        176,
        192
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "ec896b04-a5cc-4cc4-b7ce-3b552e2fe258",
      "name": "付箋1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -96,
        -32
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "cc6b47eb-87b1-44a8-8319-c5a0254b83ba",
      "name": "Qdrantベクトルデータベース",
      "type": "@n8n/n8n-nodes-langchain.vectorStoreQdrant",
      "position": [
        256,
        544
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "6b5d2b60-f65a-4075-b5a6-415c1fb1dcc8",
      "name": "埋め込み作成",
      "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
      "position": [
        192,
        752
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "9db5b8ae-a9c9-4465-a426-71bb9cda333d",
      "name": "ベクトルDBへの適切なデータ設定",
      "type": "@n8n/n8n-nodes-langchain.documentDefaultDataLoader",
      "position": [
        384,
        784
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "186a5ebf-57fd-4aa4-8031-89c503603431",
      "name": "テキストのチャンク分割",
      "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter",
      "position": [
        464,
        960
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "b969d3a6-f663-46bd-9207-666861aa4e49",
      "name": "埋め込み作成2",
      "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
      "position": [
        -560,
        640
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "37d1974e-0e65-441d-9a22-977035e6e1af",
      "name": "製品ごとのループ処理",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        800,
        192
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "d6cff138-2513-4acd-bf37-3e6691b3cf07",
      "name": "Qdrantデータベースからのデータ取得",
      "type": "@n8n/n8n-nodes-langchain.vectorStoreQdrant",
      "position": [
        -656,
        464
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "bf1668c5-cc6a-4ab3-9f97-e9cd701df1ed",
      "name": "チャットメッセージ受信時",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        -1120,
        160
      ],
      "webhookId": "07f045cb-bfbf-4f9d-a1dd-4a57a2e3d7f8",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "e05d5065-dec0-435e-a65d-e4f831541388",
      "name": "OpenAI LLM",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -976,
        384
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "e14dc3fe-f0e4-479b-ad7e-d5477d478e20",
      "name": "付箋2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        96,
        96
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "95f86512-e0f7-48e0-bb44-9b727ecb320a",
      "name": "付箋3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        96,
        448
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "672df8d1-81bd-4709-b7be-76cf04c92593",
      "name": "チャット履歴保存",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        -816,
        384
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "28d9b9f0-0b67-4828-b502-71e6f7c55ad8",
      "name": "全製品取得",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        416,
        192
      ],
      "parameters": {},
      "typeVersion": 4.6
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "3cc040a0-9a81-4134-ae19-3efbfb3a8133",
  "connections": {
    "8882b64e-5caf-4a05-a7f3-d78b93d9f30c": {
      "main": [
        []
      ]
    },
    "e05d5065-dec0-435e-a65d-e4f831541388": {
      "ai_languageModel": [
        [
          {
            "node": "8882b64e-5caf-4a05-a7f3-d78b93d9f30c",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "672df8d1-81bd-4709-b7be-76cf04c92593": {
      "ai_memory": [
        [
          {
            "node": "8882b64e-5caf-4a05-a7f3-d78b93d9f30c",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "6b5d2b60-f65a-4075-b5a6-415c1fb1dcc8": {
      "ai_embedding": [
        [
          {
            "node": "cc6b47eb-87b1-44a8-8319-c5a0254b83ba",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "28d9b9f0-0b67-4828-b502-71e6f7c55ad8": {
      "main": [
        [
          {
            "node": "37d1974e-0e65-441d-9a22-977035e6e1af",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "b969d3a6-f663-46bd-9207-666861aa4e49": {
      "ai_embedding": [
        [
          {
            "node": "d6cff138-2513-4acd-bf37-3e6691b3cf07",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "37d1974e-0e65-441d-9a22-977035e6e1af": {
      "main": [
        [],
        [
          {
            "node": "cc6b47eb-87b1-44a8-8319-c5a0254b83ba",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "cc6b47eb-87b1-44a8-8319-c5a0254b83ba": {
      "main": [
        [
          {
            "node": "37d1974e-0e65-441d-9a22-977035e6e1af",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "186a5ebf-57fd-4aa4-8031-89c503603431": {
      "ai_textSplitter": [
        [
          {
            "node": "9db5b8ae-a9c9-4465-a426-71bb9cda333d",
            "type": "ai_textSplitter",
            "index": 0
          }
        ]
      ]
    },
    "bf1668c5-cc6a-4ab3-9f97-e9cd701df1ed": {
      "main": [
        [
          {
            "node": "8882b64e-5caf-4a05-a7f3-d78b93d9f30c",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "d6cff138-2513-4acd-bf37-3e6691b3cf07": {
      "ai_tool": [
        [
          {
            "node": "8882b64e-5caf-4a05-a7f3-d78b93d9f30c",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "9db5b8ae-a9c9-4465-a426-71bb9cda333d": {
      "ai_document": [
        [
          {
            "node": "cc6b47eb-87b1-44a8-8319-c5a0254b83ba",
            "type": "ai_document",
            "index": 0
          }
        ]
      ]
    },
    "3788a0b5-4f73-4bd1-bdca-b659a49710f5": {
      "main": [
        [
          {
            "node": "28d9b9f0-0b67-4828-b502-71e6f7c55ad8",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
よくある質問

このワークフローの使い方は?

上記のJSON設定コードをコピーし、n8nインスタンスで新しいワークフローを作成して「JSONからインポート」を選択、設定を貼り付けて認証情報を必要に応じて変更してください。

このワークフローはどんな場面に適していますか?

上級 - リードナーチャリング, AI RAG検索拡張

有料ですか?

このワークフローは完全無料です。ただし、ワークフローで使用するサードパーティサービス(OpenAI APIなど)は別途料金が発生する場合があります。

ワークフロー情報
難易度
上級
ノード数17
カテゴリー2
ノードタイプ12
難易度説明

上級者向け、16ノード以上の複雑なワークフロー

作成者
Zain Ali

Zain Ali

@zain104

Software Engineer with over 3+ years of experience in full-stack development.

外部リンク
n8n.ioで表示

このワークフローを共有

カテゴリー

カテゴリー: 34