{
  "name": "Automate competitor research with Exa.ai, Notion and AI agents",
  "nodes": [
    {
      "id": "d26b0190-c683-45fc-ac5b-0654af78f080",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1000,
        -620
      ],
      "parameters": {
        "width": 377.7154173079816,
        "height": 511.2813260861502,
        "content": "## Try It Out!\n\n### This workflow builds a competitor research agent using Exa.ai as a starting point. The HTTP Request tool is used to demonstrate how you can build powerful agents with minimal effor"
      }
    },
    {
      "id": "747d2f04-1e9c-45bb-b2ad-68da81524f4f",
      "name": "When clicking ‘Test workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -520,
        -420
      ]
    },
    {
      "id": "5cb5f5a1-bc2d-4557-aff4-1993d8dcb99b",
      "name": "OpenAI Chat Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1020,
        20
      ]
    },
    {
      "id": "eafe20ab-0385-42e6-abbf-e15126bbb6fa",
      "name": "Search Crunchbase",
      "type": "@n8n/n8n-nodes-langchain.toolHttpRequest",
      "position": [
        1320,
        20
      ]
    },
    {
      "id": "71729e21-a820-41a3-9cde-a52a63d1366d",
      "name": "Search WellFound",
      "type": "@n8n/n8n-nodes-langchain.toolHttpRequest",
      "position": [
        1180,
        180
      ]
    },
    {
      "id": "ad5be9e0-14dc-40b2-b080-b079fb4c1d4b",
      "name": "Search LinkedIn",
      "type": "@n8n/n8n-nodes-langchain.toolHttpRequest",
      "position": [
        1320,
        180
      ]
    },
    {
      "id": "405fa211-436d-4601-bc3e-ad6e6d99886d",
      "name": "Structured Output Parser1",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1600,
        20
      ]
    },
    {
      "id": "e4955f40-6e8c-42d9-bb1e-d134485717f2",
      "name": "Webscraper Tool1",
      "type": "@n8n/n8n-nodes-langchain.toolHttpRequest",
      "position": [
        1460,
        180
      ]
    },
    {
      "id": "4ddf8829-e11d-4002-ad96-1b3fcddebef7",
      "name": "Remove Duplicates",
      "type": "n8n-nodes-base.removeDuplicates",
      "position": [
        320,
        -380
      ]
    },
    {
      "id": "06d7e6fb-9fe8-4c31-9042-fa375b63dd63",
      "name": "Extract Domain",
      "type": "n8n-nodes-base.set",
      "position": [
        140,
        -240
      ]
    },
    {
      "id": "991fbb7f-9ba5-4672-8573-6a28e77ed5fc",
      "name": "Results to List",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        140,
        -380
      ]
    },
    {
      "id": "f09112bc-65b5-4b6d-b568-eef95d064d45",
      "name": "Check Company Profiles Exist",
      "type": "@n8n/n8n-nodes-langchain.toolHttpRequest",
      "position": [
        1180,
        20
      ]
    },
    {
      "id": "5ac6eb04-7c94-443f-bdd3-52e5fc1f72ff",
      "name": "Webscraper Tool",
      "type": "@n8n/n8n-nodes-langchain.toolHttpRequest",
      "position": [
        2180,
        -40
      ]
    },
    {
      "id": "082b8e76-30b8-48f2-a581-a04a6f05c20d",
      "name": "Search Company Website",
      "type": "@n8n/n8n-nodes-langchain.toolHttpRequest",
      "position": [
        2040,
        -40
      ]
    },
    {
      "id": "ca3140c5-b4ff-41d5-b0a1-b2595e1fc789",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        2320,
        -40
      ]
    },
    {
      "id": "3c5493eb-6ca9-4909-997d-ddf3f3c88e2d",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1900,
        -40
      ]
    },
    {
      "id": "299920bb-194b-4a95-8822-c0f6d559dd15",
      "name": "Search Product Review Sites",
      "type": "@n8n/n8n-nodes-langchain.toolHttpRequest",
      "position": [
        2757,
        20
      ]
    },
    {
      "id": "216bc875-365c-4536-b3b4-90de29265cb5",
      "name": "Webscraper Tool2",
      "type": "@n8n/n8n-nodes-langchain.toolHttpRequest",
      "position": [
        2897,
        20
      ]
    },
    {
      "id": "c13f23fd-77b9-4f4c-bdc6-50120ed84cbd",
      "name": "Structured Output Parser2",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        3037,
        20
      ]
    },
    {
      "id": "784202a0-4022-4941-8fcc-f1c05c9820a6",
      "name": "OpenAI Chat Model2",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        2617,
        20
      ]
    },
    {
      "id": "fbc2e1c1-7851-4fbb-b46c-9fa35eacd810",
      "name": "Insert Into Notion",
      "type": "n8n-nodes-base.notion",
      "position": [
        3520,
        -240
      ]
    },
    {
      "id": "ec6b578d-4808-4613-881b-67dbcf30f641",
      "name": "Limit",
      "type": "n8n-nodes-base.limit",
      "position": [
        320,
        -240
      ]
    },
    {
      "id": "2f25cf2e-86c6-4d23-a1ae-cc35134f0d8a",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        680,
        -280
      ]
    },
    {
      "id": "360000e3-bc07-4be9-91cf-169b85ed7ad5",
      "name": "Competitor Search via Exa.ai",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -80,
        -420
      ]
    },
    {
      "id": "dae53670-bafb-4dff-95e7-cc94adf5f344",
      "name": "Get Company News",
      "type": "@n8n/n8n-nodes-langchain.toolHttpRequest",
      "position": [
        1460,
        20
      ]
    },
    {
      "id": "84809359-06c8-41d9-8269-571cac716d17",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -589.9031441651332,
        -613.6533489294407
      ],
      "parameters": {
        "width": 1128.870960716006,
        "height": 582.8537144476434,
        "content": "## Step 1. Get Competitors\n[Read more about using the HTTP Request node](https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.httprequest)\n\nExa.ai is a relatively new AI search engine st"
      }
    },
    {
      "id": "d43e8b2a-53dd-41db-aacd-f3fdd29d8fe9",
      "name": "Set Source Company",
      "type": "n8n-nodes-base.set",
      "position": [
        -300,
        -420
      ]
    },
    {
      "id": "1c28b108-dc18-4304-aed9-275e719c4edd",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -340,
        -440
      ],
      "parameters": {
        "width": 181.85939799093455,
        "height": 308.12010511833364,
        "content": "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n### 🚨Required!\nRemember to set your company here."
      }
    },
    {
      "id": "5cb54393-795b-4738-aac2-cc9395456420",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        560,
        -525.6986144265638
      ],
      "parameters": {
        "width": 332.87733508600377,
        "height": 492.4668447935363,
        "content": "## Step 2. Feed into Agent Pipeline\n[Learn more about loops](https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.splitinbatches)\n\nA loop is used to ensure competitors are processed one "
      }
    },
    {
      "id": "4cdddfd1-8631-4d88-a65d-10a53daeaf78",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1800,
        -420
      ],
      "parameters": {
        "width": 687.9856526661888,
        "height": 600.1548730999224,
        "content": "## Step 4. Research Competitor Product Offering\n[Learn more about using AI Agents](https://docs.n8n.io/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.agent)\n\nThis agent uses SERPAPI"
      }
    },
    {
      "id": "3a374ce6-0ae0-4f8e-ad6a-35ab2c8da211",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        920,
        -400
      ],
      "parameters": {
        "width": 849.3810544357925,
        "height": 775.191233831828,
        "content": "## Step 3. Discover Competitor Company and Funding Overview\n[Learn more about using AI Agents](https://docs.n8n.io/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.agent)\n\nThis agent "
      }
    },
    {
      "id": "fa580430-d6c6-4d41-b0f9-c86ad89dc6ab",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2520,
        -400
      ],
      "parameters": {
        "width": 683.8444841203574,
        "height": 633.9023021841829,
        "content": "## Step 5. Capture Competitor Product Reviews\n[Learn more about using AI Agents](https://docs.n8n.io/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.agent)\n\nThis agent uses SERPAPI t"
      }
    },
    {
      "id": "b050b11f-9b4f-4ed1-94b9-3ec69a1ceba7",
      "name": "Collect Results",
      "type": "n8n-nodes-base.set",
      "position": [
        3340,
        -240
      ]
    },
    {
      "id": "1fc6468e-8a89-4a37-a8d6-1fe94c274b3a",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3220,
        -481.22655186925294
      ],
      "parameters": {
        "width": 529.1065295866968,
        "height": 572.5257167828777,
        "content": "## Step 6. Collect Results and Send to Notion\n[Read more about using Notion](https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.notion)\n\nFinally, once the agent's have completed their t"
      }
    },
    {
      "id": "863c40c7-e56d-464f-8105-0cb151654715",
      "name": "2sec",
      "type": "n8n-nodes-base.wait",
      "position": [
        3680,
        280
      ]
    },
    {
      "id": "c1a4b720-f56b-4c3a-aeca-a89f473132f4",
      "name": "Company Overview Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1020,
        -200
      ]
    },
    {
      "id": "1070c7f0-544a-478b-bd97-df8f2c0d79fa",
      "name": "Company Product Offering Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1900,
        -240
      ]
    },
    {
      "id": "5dec7033-5057-483f-930d-e950b6eabe05",
      "name": "Company Product Reviews Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        2617,
        -200
      ]
    },
    {
      "id": "787bb405-1744-43b7-8c47-1a2c23331e05",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3480,
        -260
      ],
      "parameters": {
        "width": 181.85939799093455,
        "height": 308.12010511833364,
        "content": "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n### 🚨Required!\nRemember to set your Notion Database here."
      }
    }
  ],
  "connections": {
    "2sec": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Limit": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Domain": {
      "main": [
        [
          {
            "node": "Remove Duplicates",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Collect Results": {
      "main": [
        [
          {
            "node": "Insert Into Notion",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        null,
        [
          {
            "node": "Company Overview Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Results to List": {
      "main": [
        [
          {
            "node": "Extract Domain",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Search LinkedIn": {
      "ai_tool": [
        [
          {
            "node": "Company Overview Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Webscraper Tool": {
      "ai_tool": [
        [
          {
            "node": "Company Product Offering Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Get Company News": {
      "ai_tool": [
        [
          {
            "node": "Company Overview Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Search WellFound": {
      "ai_tool": [
        [
          {
            "node": "Company Overview Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Webscraper Tool1": {
      "ai_tool": [
        [
          {
            "node": "Company Overview Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Webscraper Tool2": {
      "ai_tool": [
        [
          {
            "node": "Company Product Reviews Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Company Product Offering Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Remove Duplicates": {
      "main": [
        [
          {
            "node": "Limit",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Search Crunchbase": {
      "ai_tool": [
        [
          {
            "node": "Company Overview Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Insert Into Notion": {
      "main": [
        [
          {
            "node": "2sec",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "Company Overview Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model2": {
      "ai_languageModel": [
        [
          {
            "node": "Company Product Reviews Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Set Source Company": {
      "main": [
        [
          {
            "node": "Competitor Search via Exa.ai",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Company Overview Agent": {
      "main": [
        [
          {
            "node": "Company Product Offering Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Search Company Website": {
      "ai_tool": [
        [
          {
            "node": "Company Product Offering Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Company Product Offering Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser1": {
      "ai_outputParser": [
        [
          {
            "node": "Company Overview Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser2": {
      "ai_outputParser": [
        [
          {
            "node": "Company Product Reviews Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Search Product Review Sites": {
      "ai_tool": [
        [
          {
            "node": "Company Product Reviews Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Check Company Profiles Exist": {
      "ai_tool": [
        [
          {
            "node": "Company Overview Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Competitor Search via Exa.ai": {
      "main": [
        [
          {
            "node": "Results to List",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Company Product Reviews Agent": {
      "main": [
        [
          {
            "node": "Collect Results",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Company Product Offering Agent": {
      "main": [
        [
          {
            "node": "Company Product Reviews Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Test workflow’": {
      "main": [
        [
          {
            "node": "Set Source Company",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}