AutomationFlowsAI & RAG › Ai-powered Product Research & Comparison with Gpt-4o and Serpapi

Ai-powered Product Research & Comparison with Gpt-4o and Serpapi

ByAiAgent @lifehacks on n8n.io

This powerful workflow can take hours of difficult research attempting to identify the perfect product to buy and condense it into a few short minutes. Simply typing the name of an item you wish to purchase into a chat message will initiate the workflow to begin its search…

Chat trigger trigger★★★★☆ complexityAI-powered26 nodesChat TriggerOpenAI ChatMemory Buffer WindowTool Serp ApiOutput Parser StructuredAgent
AI & RAG Trigger: Chat trigger Nodes: 26 Complexity: ★★★★☆ AI nodes: yes Added:

This workflow corresponds to n8n.io template #3315 — we link there as the canonical source.

This workflow follows the Agent → Chat Trigger recipe pattern — see all workflows that pair these two integrations.

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "id": "E83gUT3zpziY06CJ",
  "name": "Utilizing GPT-4o and SerpAPI to Identify Top End Products for Purchase",
  "tags": [],
  "nodes": [
    {
      "id": "947b3118-19f5-4f91-9fa2-11ec04f955fa",
      "name": "When chat message received",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        -660,
        1060
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "5c2efc66-bbdf-47d8-b6fe-223467aaf5d5",
      "name": "OpenAI Chat Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -360,
        1300
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "81ef7f2d-1bab-4891-86d1-24669e8acbcb",
      "name": "Window Buffer Memory1",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        -220,
        1300
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "c5724fcc-1740-4efe-bd53-34f8f4746d20",
      "name": "SerpAPI1",
      "type": "@n8n/n8n-nodes-langchain.toolSerpApi",
      "position": [
        -100,
        1300
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "3ddfa322-69d8-4f77-b1f2-ed38b41fa6c8",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        40,
        1300
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "65cfae11-7e46-4722-9745-495207168b66",
      "name": "Merge1",
      "type": "n8n-nodes-base.merge",
      "position": [
        1420,
        1020
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "b6a2894c-fce5-46bd-8c1e-3cf7a470f274",
      "name": "Aggregate1",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        1660,
        1060
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "dfcf324b-7726-4a2d-88f2-1b3d3ad13c10",
      "name": "OpenAI Chat Model",
      "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": "SerpAPI3",
      "type": "@n8n/n8n-nodes-langchain.toolSerpApi",
      "position": [
        900,
        1240
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "1ff649d8-4486-492e-8585-40fae0577b3c",
      "name": "SerpAPI4",
      "type": "@n8n/n8n-nodes-langchain.toolSerpApi",
      "position": [
        900,
        1600
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "7e43b85c-8b65-4ce1-8441-25a977f450af",
      "name": "SerpAPI5",
      "type": "@n8n/n8n-nodes-langchain.toolSerpApi",
      "position": [
        900,
        1960
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "dc0b29fc-ad70-4349-971a-c460c93c148e",
      "name": "OpenAI Chat Model2",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        620,
        600
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "77f9fe28-e0dd-4dce-a963-0f5f0c983c20",
      "name": "SerpAPI2",
      "type": "@n8n/n8n-nodes-langchain.toolSerpApi",
      "position": [
        900,
        920
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "026f54c0-15cf-4213-95e4-636f6db63bc0",
      "name": "OpenAI Chat Model3",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        620,
        920
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "b4bf906b-eb7d-4859-bbac-faa286d52aae",
      "name": "OpenAI Chat Model4",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        620,
        1240
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "991f273d-9c42-4bbd-9138-d4aacb940108",
      "name": "OpenAI Chat Model5",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        620,
        1600
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "9044ad4c-7bed-4df4-a34f-5b102c247c00",
      "name": "OpenAI Chat Model6",
      "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": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -720,
        320
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "f7002b47-7e2f-44a2-837c-8cb43e6e7a1f",
  "connections": {
    "Merge1": {
      "main": [
        [
          {
            "node": "Aggregate1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "SerpAPI": {
      "ai_tool": [
        [
          {
            "node": "Reviewer 1",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Compiler": {
      "main": [
        []
      ]
    },
    "SerpAPI1": {
      "ai_tool": [
        [
          {
            "node": "Item Finder",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "SerpAPI2": {
      "ai_tool": [
        [
          {
            "node": "Reviewer 2",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "SerpAPI3": {
      "ai_tool": [
        [
          {
            "node": "Reviewer 3",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "SerpAPI4": {
      "ai_tool": [
        [
          {
            "node": "Reviewer 4",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "SerpAPI5": {
      "ai_tool": [
        [
          {
            "node": "Reviewer 5",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate1": {
      "main": [
        [
          {
            "node": "Compiler",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Reviewer 1": {
      "main": [
        [
          {
            "node": "Merge1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Reviewer 2": {
      "main": [
        [
          {
            "node": "Merge1",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Reviewer 3": {
      "main": [
        [
          {
            "node": "Merge1",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "Reviewer 4": {
      "main": [
        [
          {
            "node": "Merge1",
            "type": "main",
            "index": 3
          }
        ]
      ]
    },
    "Reviewer 5": {
      "main": [
        [
          {
            "node": "Merge1",
            "type": "main",
            "index": 4
          }
        ]
      ]
    },
    "Item Finder": {
      "main": [
        [
          {
            "node": "Reviewer 1",
            "type": "main",
            "index": 0
          },
          {
            "node": "Reviewer 2",
            "type": "main",
            "index": 0
          },
          {
            "node": "Reviewer 3",
            "type": "main",
            "index": 0
          },
          {
            "node": "Reviewer 4",
            "type": "main",
            "index": 0
          },
          {
            "node": "Reviewer 5",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Compiler",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "Item Finder",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model2": {
      "ai_languageModel": [
        [
          {
            "node": "Reviewer 1",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model3": {
      "ai_languageModel": [
        [
          {
            "node": "Reviewer 2",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model4": {
      "ai_languageModel": [
        [
          {
            "node": "Reviewer 3",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model5": {
      "ai_languageModel": [
        [
          {
            "node": "Reviewer 4",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model6": {
      "ai_languageModel": [
        [
          {
            "node": "Reviewer 5",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Window Buffer Memory1": {
      "ai_memory": [
        [
          {
            "node": "Item Finder",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Item Finder",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "When chat message received": {
      "main": [
        [
          {
            "node": "Item Finder",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

This powerful workflow can take hours of difficult research attempting to identify the perfect product to buy and condense it into a few short minutes. Simply typing the name of an item you wish to purchase into a chat message will initiate the workflow to begin its search…

Source: https://n8n.io/workflows/3315/ — original creator credit. Request a take-down →

More AI & RAG workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

AI & RAG

This powerful workflow can take hours of difficult research attempting to identify the perfect online tool to aid you with your business and condenses it into a few short seconds. Simply typing the na

Chat Trigger, OpenAI Chat, Memory Buffer Window +3
AI & RAG

Generate high-quality, SEO-optimized content briefs automatically using AI, real-time keyword research, SERP intelligence, and historical content context. This workflow standardizes user inputs, fetch

Memory Buffer Window, Agent, Output Parser Structured +6
AI & RAG

HDW Lead Geländewagen. Uses chatTrigger, lmChatOpenAi, memoryBufferWindow, outputParserStructured. Chat trigger; 92 nodes.

Chat Trigger, OpenAI Chat, Memory Buffer Window +5
AI & RAG

by Varritech Technologies

Chat Trigger, Agent, OpenAI Chat +8
AI & RAG

Who is this workflow for? This workflow is designed for SEO analysts, content creators, marketing agencies, and developers who need to index a website and then interact with its content as if it were

Agent, OpenAI Chat, Memory Buffer Window +10