{
  "name": "Run AI-powered market research with Groq, OpenAI, Documentero and Gmail",
  "nodes": [
    {
      "id": "3e4b11c7-6650-46e1-8970-26d15548dc1a",
      "name": "When chat message received",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        -1152,
        752
      ]
    },
    {
      "id": "2b71164d-a4ee-4079-8aa4-947328c14100",
      "name": "Simple Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        -800,
        976
      ]
    },
    {
      "id": "b2ac0b6f-032b-4c3a-8876-efbc54d2a3b9",
      "name": "Planner Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -864,
        752
      ]
    },
    {
      "id": "66059613-6dc2-4fff-9263-e32b8adbc7be",
      "name": "Simple Memory1",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        208,
        400
      ]
    },
    {
      "id": "cac43b83-313b-45a5-b8be-7c9546449e9c",
      "name": "Market Scan Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        160,
        640
      ]
    },
    {
      "id": "803b0705-7dbb-4419-9339-dc38d8f7088f",
      "name": "Simple Memory2",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        224,
        864
      ]
    },
    {
      "id": "fcc1b6ca-0aeb-4540-a25a-01d74f308791",
      "name": "Customer Insights Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        144,
        176
      ]
    },
    {
      "id": "724f2544-ee10-40d0-b632-e7ccb9aba41e",
      "name": "Competitor Insights Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        160,
        1136
      ]
    },
    {
      "id": "2e3b3b4b-b2fe-4289-abb0-51f19c73abe3",
      "name": "Simple Memory3",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        224,
        1360
      ]
    },
    {
      "id": "708d91f0-1406-4b47-9781-021a0b438db9",
      "name": "Structured Output Parser1",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -672,
        976
      ]
    },
    {
      "id": "4cc1a210-2218-4330-bc41-d0095312fe08",
      "name": "Structured Output Parser2",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        336,
        400
      ]
    },
    {
      "id": "061c09b5-18f8-46cb-96c5-fe9373427c99",
      "name": "Structured Output Parser3",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        352,
        864
      ]
    },
    {
      "id": "901e3dc5-562c-4ba9-8647-7aa013b1e247",
      "name": "Structured Output Parser4",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        352,
        1360
      ]
    },
    {
      "id": "b5c6f20a-aca2-4cb5-bcc1-eeff708c4db7",
      "name": "Merge",
      "type": "n8n-nodes-base.merge",
      "position": [
        1152,
        720
      ]
    },
    {
      "id": "41a458cf-71ef-46fd-bc4b-56847373ee36",
      "name": "Synthesis Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1376,
        736
      ]
    },
    {
      "id": "af928424-621b-48b5-b264-75ff8b3d1e23",
      "name": "Simple Memory4",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        1504,
        960
      ]
    },
    {
      "id": "c9719da8-9b51-4acf-8347-4a026094a995",
      "name": "Groq Chat Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatGroq",
      "position": [
        -928,
        976
      ]
    },
    {
      "id": "fabbcb78-5d8b-491f-8753-51131f35d9df",
      "name": "Groq Chat Model2",
      "type": "@n8n/n8n-nodes-langchain.lmChatGroq",
      "position": [
        80,
        400
      ]
    },
    {
      "id": "baf89ec4-9304-4e1e-9fed-8813c1c2c42e",
      "name": "Groq Chat Model3",
      "type": "@n8n/n8n-nodes-langchain.lmChatGroq",
      "position": [
        96,
        864
      ]
    },
    {
      "id": "986942bc-eba0-4d2e-a514-884116fb782c",
      "name": "Groq Chat Model4",
      "type": "@n8n/n8n-nodes-langchain.lmChatGroq",
      "position": [
        96,
        1360
      ]
    },
    {
      "id": "d60e37e6-a43c-41f5-abfb-57511dc26695",
      "name": "Documentero",
      "type": "n8n-nodes-preview-documentero.documentero",
      "position": [
        1952,
        736
      ]
    },
    {
      "id": "98180ba8-767a-4a9d-869c-56e7f8bd1fc2",
      "name": "OpenAI Chat Model3",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1376,
        960
      ]
    },
    {
      "id": "68f8df65-f188-4e84-9984-d3adc56f2ac6",
      "name": "Send a message",
      "type": "n8n-nodes-base.gmail",
      "position": [
        2176,
        736
      ]
    },
    {
      "id": "e81f1d0a-4601-42ab-a245-e6cd48255bc5",
      "name": "Format Data for Documentero",
      "type": "n8n-nodes-base.code",
      "position": [
        1728,
        736
      ]
    },
    {
      "id": "e944ade9-440d-4be6-9a77-c70f3584da55",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1968,
        480
      ],
      "parameters": {
        "width": 384,
        "height": 1408,
        "content": "## Description\nThis n8n template demonstrates how to build an AI-powered Market Research Assistant using a multi-agent workflow.\nIt helps you get a 360-degree view of a product idea or research topic "
      }
    },
    {
      "id": "612032cd-a7c4-45d0-88ee-d0c5426945c2",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1248,
        560
      ],
      "parameters": {
        "width": null,
        "height": 384,
        "content": "## User Input & Trigger\n\nThis section captures the research topic or product idea provided by the user.\nThe workflow is triggered manually via a chat message to make it easy to test and iterate during"
      }
    },
    {
      "id": "fd91dd79-35ef-4886-b474-cbcfd257f556",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -960,
        576
      ],
      "parameters": {
        "width": 576,
        "height": 544,
        "content": "## Research Planning (Planner Agent)\n\nThe planner agent defines the scope of market research before any analysis begins.\nIt translates the user’s idea into clear research tasks and assumptions, ensuri"
      }
    },
    {
      "id": "f5177dba-5bda-458d-8d1f-111e85e87e06",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1040,
        512
      ],
      "parameters": {
        "width": 608,
        "height": 592,
        "content": "## Insight Synthesis & Decision Memo\n\nOutputs from all research agents are consolidated and analysed in this section.\nThe synthesis agent focuses on producing a decision-ready discovery memo rather th"
      }
    },
    {
      "id": "ae2d01a2-85b8-4f15-bfcc-130b0017d46f",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1680,
        576
      ],
      "parameters": {
        "width": 688,
        "height": 384,
        "content": "## Document Generation & Delivery\n\nThe final discovery memo is converted into a document and delivered via email.\nThis step demonstrates how AI-generated insights can be operationalised into real PM o"
      }
    },
    {
      "id": "beb9881f-7507-455f-9a13-458151a0ee39",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        0
      ],
      "parameters": {
        "width": 528,
        "height": 1504,
        "content": "## Parallel Market Research Agents\n\nThis section runs specialist research agents in parallel to reduce latency and avoid unnecessary dependencies.\nEach agent focuses on a single dimension of discovery"
      }
    }
  ],
  "connections": {
    "Merge": {
      "main": [
        [
          {
            "node": "Synthesis Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Documentero": {
      "main": [
        [
          {
            "node": "Send a message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Planner Agent": {
      "main": [
        [
          {
            "node": "Market Scan Agent",
            "type": "main",
            "index": 0
          },
          {
            "node": "Competitor Insights Agent",
            "type": "main",
            "index": 0
          },
          {
            "node": "Customer Insights Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "Planner Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory1": {
      "ai_memory": [
        [
          {
            "node": "Customer Insights Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory2": {
      "ai_memory": [
        [
          {
            "node": "Market Scan Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory3": {
      "ai_memory": [
        [
          {
            "node": "Competitor Insights Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory4": {
      "ai_memory": [
        [
          {
            "node": "Synthesis Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Synthesis Agent": {
      "main": [
        [
          {
            "node": "Format Data for Documentero",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Groq Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "Planner Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Groq Chat Model2": {
      "ai_languageModel": [
        [
          {
            "node": "Customer Insights Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Groq Chat Model3": {
      "ai_languageModel": [
        [
          {
            "node": "Market Scan Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Groq Chat Model4": {
      "ai_languageModel": [
        [
          {
            "node": "Competitor Insights Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Market Scan Agent": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "OpenAI Chat Model3": {
      "ai_languageModel": [
        [
          {
            "node": "Synthesis Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Customer Insights Agent": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Competitor Insights Agent": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "Structured Output Parser1": {
      "ai_outputParser": [
        [
          {
            "node": "Planner Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser2": {
      "ai_outputParser": [
        [
          {
            "node": "Customer Insights Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser3": {
      "ai_outputParser": [
        [
          {
            "node": "Market Scan Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser4": {
      "ai_outputParser": [
        [
          {
            "node": "Competitor Insights Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "When chat message received": {
      "main": [
        [
          {
            "node": "Planner Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format Data for Documentero": {
      "main": [
        [
          {
            "node": "Documentero",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}