GPT-4oとSerpAPIを活用した人気エンドユーザー製品購入の特定

上級

これはAI分野の自動化ワークフローで、26個のノードを含みます。主にMerge, Aggregate, Agent, ChatTrigger, ToolSerpApiなどのノードを使用、AI技術を活用したスマート自動化を実現。 GPT-4oとSerpAPIを基盤としたAI駆動型製品リサーチ・比較ワークフロー

前提条件
  • OpenAI API Key

カテゴリー

ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
  "id": "E83gUT3zpziY06CJ",
  "meta": {
    "instanceId": "d92ae4b43988b888be9e59a711908a679453e558f86530d2ed2c1c3491f22bf5"
  },
  "name": "Utilizing GPT-4o and SerpAPI to Identify Top End Products for Purchase",
  "tags": [],
  "nodes": [
    {
      "id": "947b3118-19f5-4f91-9fa2-11ec04f955fa",
      "name": "チャットメッセージ受信時",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        -660,
        1060
      ],
      "webhookId": "61740614-aad1-4cb3-84a9-8090f67a4bcd",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "5c2efc66-bbdf-47d8-b6fe-223467aaf5d5",
      "name": "OpenAI チャットモデル1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -360,
        1300
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "81ef7f2d-1bab-4891-86d1-24669e8acbcb",
      "name": "ウィンドウバッファメモリ1",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        -220,
        1300
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "c5724fcc-1740-4efe-bd53-34f8f4746d20",
      "name": "SerpAPI 検索1",
      "type": "@n8n/n8n-nodes-langchain.toolSerpApi",
      "position": [
        -100,
        1300
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "3ddfa322-69d8-4f77-b1f2-ed38b41fa6c8",
      "name": "構造化出力パーサー",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        40,
        1300
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "65cfae11-7e46-4722-9745-495207168b66",
      "name": "マージ1",
      "type": "n8n-nodes-base.merge",
      "position": [
        1420,
        1020
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "b6a2894c-fce5-46bd-8c1e-3cf7a470f274",
      "name": "集計1",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        1660,
        1060
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "dfcf324b-7726-4a2d-88f2-1b3d3ad13c10",
      "name": "OpenAI チャットモデル",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1880,
        1240
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "373b43c5-0073-4d62-bb2d-0e7db8c90e27",
      "name": "SerpAPI 検索",
      "type": "@n8n/n8n-nodes-langchain.toolSerpApi",
      "position": [
        900,
        600
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "6bd27fb8-fbc6-46ca-ab6e-55de783dfce5",
      "name": "SerpAPI 検索3",
      "type": "@n8n/n8n-nodes-langchain.toolSerpApi",
      "position": [
        900,
        1240
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "1ff649d8-4486-492e-8585-40fae0577b3c",
      "name": "SerpAPI 検索4",
      "type": "@n8n/n8n-nodes-langchain.toolSerpApi",
      "position": [
        900,
        1600
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "7e43b85c-8b65-4ce1-8441-25a977f450af",
      "name": "SerpAPI 検索5",
      "type": "@n8n/n8n-nodes-langchain.toolSerpApi",
      "position": [
        900,
        1960
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "dc0b29fc-ad70-4349-971a-c460c93c148e",
      "name": "OpenAI チャットモデル2",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        620,
        600
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "77f9fe28-e0dd-4dce-a963-0f5f0c983c20",
      "name": "SerpAPI 検索2",
      "type": "@n8n/n8n-nodes-langchain.toolSerpApi",
      "position": [
        900,
        920
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "026f54c0-15cf-4213-95e4-636f6db63bc0",
      "name": "OpenAI チャットモデル3",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        620,
        920
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "b4bf906b-eb7d-4859-bbac-faa286d52aae",
      "name": "OpenAI チャットモデル4",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        620,
        1240
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "991f273d-9c42-4bbd-9138-d4aacb940108",
      "name": "OpenAI チャットモデル5",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        620,
        1600
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "9044ad4c-7bed-4df4-a34f-5b102c247c00",
      "name": "OpenAI チャットモデル6",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        640,
        1940
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "a4c6a71f-4dcf-4a8f-ab8a-e68d6d12e6e3",
      "name": "Item Finder",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -220,
        1060
      ],
      "parameters": {},
      "typeVersion": 1.7
    },
    {
      "id": "382e28d2-3526-47f3-83db-3875403d2e27",
      "name": "Reviewer 1",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        680,
        420
      ],
      "parameters": {},
      "typeVersion": 1.7
    },
    {
      "id": "bfd3ffa9-83af-4d5f-af82-54290b251412",
      "name": "Reviewer 2",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        680,
        740
      ],
      "parameters": {},
      "typeVersion": 1.7
    },
    {
      "id": "51b222a9-e44b-46fe-95ac-d34eefeb2013",
      "name": "Reviewer 3",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        700,
        1060
      ],
      "parameters": {},
      "typeVersion": 1.7
    },
    {
      "id": "2b23e388-0bec-42b1-8f78-147a7097bfe7",
      "name": "Reviewer 4",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        700,
        1400
      ],
      "parameters": {},
      "typeVersion": 1.7
    },
    {
      "id": "a144739d-d7f1-48c1-9fcd-f9cfd6842d44",
      "name": "Reviewer 5",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        700,
        1760
      ],
      "parameters": {},
      "typeVersion": 1.7
    },
    {
      "id": "ba725e88-621f-417b-bdb2-358cb0ec18d6",
      "name": "Compiler",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1940,
        1060
      ],
      "parameters": {},
      "typeVersion": 1.7
    },
    {
      "id": "dab84cc6-d029-4238-9f6e-7b40eee00df8",
      "name": "付箋",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -720,
        320
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "f7002b47-7e2f-44a2-837c-8cb43e6e7a1f",
  "connections": {
    "Merge1": {
      "main": [
        [
          {
            "node": "Aggregate1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "SerpAPI": {
      "ai_tool": [
        [
          {
            "node": "382e28d2-3526-47f3-83db-3875403d2e27",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "ba725e88-621f-417b-bdb2-358cb0ec18d6": {
      "main": [
        []
      ]
    },
    "SerpAPI1": {
      "ai_tool": [
        [
          {
            "node": "a4c6a71f-4dcf-4a8f-ab8a-e68d6d12e6e3",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "SerpAPI2": {
      "ai_tool": [
        [
          {
            "node": "bfd3ffa9-83af-4d5f-af82-54290b251412",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "SerpAPI3": {
      "ai_tool": [
        [
          {
            "node": "51b222a9-e44b-46fe-95ac-d34eefeb2013",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "SerpAPI4": {
      "ai_tool": [
        [
          {
            "node": "2b23e388-0bec-42b1-8f78-147a7097bfe7",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "SerpAPI5": {
      "ai_tool": [
        [
          {
            "node": "a144739d-d7f1-48c1-9fcd-f9cfd6842d44",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate1": {
      "main": [
        [
          {
            "node": "ba725e88-621f-417b-bdb2-358cb0ec18d6",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "382e28d2-3526-47f3-83db-3875403d2e27": {
      "main": [
        [
          {
            "node": "Merge1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "bfd3ffa9-83af-4d5f-af82-54290b251412": {
      "main": [
        [
          {
            "node": "Merge1",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "51b222a9-e44b-46fe-95ac-d34eefeb2013": {
      "main": [
        [
          {
            "node": "Merge1",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "2b23e388-0bec-42b1-8f78-147a7097bfe7": {
      "main": [
        [
          {
            "node": "Merge1",
            "type": "main",
            "index": 3
          }
        ]
      ]
    },
    "a144739d-d7f1-48c1-9fcd-f9cfd6842d44": {
      "main": [
        [
          {
            "node": "Merge1",
            "type": "main",
            "index": 4
          }
        ]
      ]
    },
    "a4c6a71f-4dcf-4a8f-ab8a-e68d6d12e6e3": {
      "main": [
        [
          {
            "node": "382e28d2-3526-47f3-83db-3875403d2e27",
            "type": "main",
            "index": 0
          },
          {
            "node": "bfd3ffa9-83af-4d5f-af82-54290b251412",
            "type": "main",
            "index": 0
          },
          {
            "node": "51b222a9-e44b-46fe-95ac-d34eefeb2013",
            "type": "main",
            "index": 0
          },
          {
            "node": "2b23e388-0bec-42b1-8f78-147a7097bfe7",
            "type": "main",
            "index": 0
          },
          {
            "node": "a144739d-d7f1-48c1-9fcd-f9cfd6842d44",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "ba725e88-621f-417b-bdb2-358cb0ec18d6",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "a4c6a71f-4dcf-4a8f-ab8a-e68d6d12e6e3",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model2": {
      "ai_languageModel": [
        [
          {
            "node": "382e28d2-3526-47f3-83db-3875403d2e27",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model3": {
      "ai_languageModel": [
        [
          {
            "node": "bfd3ffa9-83af-4d5f-af82-54290b251412",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model4": {
      "ai_languageModel": [
        [
          {
            "node": "51b222a9-e44b-46fe-95ac-d34eefeb2013",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model5": {
      "ai_languageModel": [
        [
          {
            "node": "2b23e388-0bec-42b1-8f78-147a7097bfe7",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model6": {
      "ai_languageModel": [
        [
          {
            "node": "a144739d-d7f1-48c1-9fcd-f9cfd6842d44",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Window Buffer Memory1": {
      "ai_memory": [
        [
          {
            "node": "a4c6a71f-4dcf-4a8f-ab8a-e68d6d12e6e3",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "a4c6a71f-4dcf-4a8f-ab8a-e68d6d12e6e3",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "When chat message received": {
      "main": [
        [
          {
            "node": "a4c6a71f-4dcf-4a8f-ab8a-e68d6d12e6e3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
よくある質問

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

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

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

上級 - 人工知能

有料ですか?

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

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

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

作成者
AiAgent

AiAgent

@lifehacks

As a self-taught entrepreneur, I’m passionate about automating everyday tasks to simplify life. Every system I create is designed to enhance efficiency and free up valuable time. Once I perfect an automation that transforms my own routine, I’m excited to share it with you—so you can experience the same benefits.

外部リンク
n8n.ioで表示

このワークフローを共有

カテゴリー

カテゴリー: 34