{
  "name": "Analyze market demand using GPT-4o, XPOZ MCP, Notion and email reports",
  "nodes": [
    {
      "id": "ba71fddd-0f4b-40d4-9fb7-066b81310771",
      "name": "Workflow Error Handler",
      "type": "n8n-nodes-base.errorTrigger",
      "position": [
        -640,
        848
      ]
    },
    {
      "id": "c2894b99-27d7-4b68-9ca6-161e862687cc",
      "name": "Send a message1",
      "type": "n8n-nodes-base.gmail",
      "position": [
        -288,
        848
      ]
    },
    {
      "id": "ac5dfa8c-e898-47e7-aba5-b6874ea1e30f",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -720,
        688
      ],
      "parameters": {
        "width": 672,
        "height": 336,
        "content": "## Error Handling\nSends alerts when the workflow fails\n"
      }
    },
    {
      "id": "b09a495c-095a-49d0-b9cf-05a864b6e89b",
      "name": "Scheduled Market Research Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -480,
        16
      ]
    },
    {
      "id": "25189cbd-6271-436b-bc39-44d43387fbd1",
      "name": "Inject Niche, Query, and Research Notes",
      "type": "n8n-nodes-base.set",
      "position": [
        -208,
        16
      ]
    },
    {
      "id": "e0789a80-86b3-4b67-8c7e-3be9491d236b",
      "name": "Analyze Public Discussions for Market Demand Signals (AI)",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        112,
        16
      ]
    },
    {
      "id": "dbe246d9-0eeb-4e80-adb9-5c374f6f77a1",
      "name": "Public Search & Social Intelligence Connector (MCP Client)",
      "type": "@n8n/n8n-nodes-langchain.mcpClientTool",
      "position": [
        272,
        288
      ]
    },
    {
      "id": "810c6014-efa3-48eb-b06e-0c04f26a1068",
      "name": "OpenAI Reasoning Engine for Market Signal Extraction",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        80,
        272
      ]
    },
    {
      "id": "92012dd0-85bb-4510-97c9-c15b81a7b961",
      "name": "Convert Market Signals into Notion Summary and Customer Email (AI)",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        576,
        16
      ]
    },
    {
      "id": "0328136b-1139-4053-8f4d-dcc8d65d9170",
      "name": "OpenAI Reasoning Engine for Insight Formatting",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        576,
        272
      ]
    },
    {
      "id": "e794d9fc-bbca-451e-8667-da23b383f3a0",
      "name": "Parse Structured Insight Output from AI",
      "type": "n8n-nodes-base.code",
      "position": [
        1040,
        16
      ]
    },
    {
      "id": "2eb4ed33-015f-45f7-ba81-c3b5fa211b99",
      "name": "Send Market Insight Email to Stakeholder",
      "type": "n8n-nodes-base.gmail",
      "position": [
        1408,
        208
      ]
    },
    {
      "id": "b5a4fd96-9a7e-44aa-a534-4e310dafd863",
      "name": "Save Market Research Insight to Notion Database",
      "type": "n8n-nodes-base.notion",
      "position": [
        1408,
        -160
      ]
    },
    {
      "id": "78a65ae9-6282-4cba-aee6-0bbc52cf8e59",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1648,
        -848
      ],
      "parameters": {
        "width": 816,
        "height": 608,
        "content": "## 🔎 Analyze Market Demand using GPT-4o and XPOZ MCP with Notion & Email Reports\n\n### How it works\nThis workflow runs on a scheduled trigger to perform automated market research for a defined niche an"
      }
    },
    {
      "id": "5e1e7b67-ea9c-4e65-ac96-090fb75608ed",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -560,
        -208
      ],
      "parameters": {
        "width": 496,
        "height": 512,
        "content": "## Scheduling & Research Context\nControls when research runs and defines the niche, keywords, and analyst focus.\n"
      }
    },
    {
      "id": "733783ee-22ec-4716-8869-66067ecfe200",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        32,
        -176
      ],
      "parameters": {
        "width": 400,
        "height": 640,
        "content": "## Market Demand Signal Discovery\nAnalyzes public discussions to identify real problems, demand, and buying intent.\n"
      }
    },
    {
      "id": "c0448194-bf23-42fb-8003-2966f6e53e20",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        528,
        -128
      ],
      "parameters": {
        "width": 336,
        "height": 560,
        "content": "## Insight Conversion & Formatting\nTransforms raw insights into Notion summaries and customer-ready emails.\n"
      }
    },
    {
      "id": "8901c706-5abf-4251-a8ef-387c4b43f6cf",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        912,
        -128
      ],
      "parameters": {
        "width": 336,
        "height": 336,
        "content": "## Output Parsing & Validation\nParses and validates structured AI output for safe downstream use.\n"
      }
    },
    {
      "id": "cae5f79a-89c2-4980-9e53-52a8d494259f",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1280,
        -352
      ],
      "parameters": {
        "width": 368,
        "height": 816,
        "content": "## Distribution & Knowledge Storage\nStores insights in Notion and sends summaries to stakeholders.\n"
      }
    },
    {
      "id": "8ec07943-b901-42b4-a0ff-973c50ab1c4a",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1056,
        -992
      ],
      "parameters": {
        "width": 624,
        "height": 576,
        "content": "## 🎥 Workflow Demo Video\n\nWatch a short walkthrough explaining:\n• What this automation does  \n• How the data flows  \n• How to set up credentials  \n• Common mistakes to avoid  \n\n@[youtube](QnpauEj5Ck8)"
      }
    }
  ],
  "connections": {
    "Workflow Error Handler": {
      "main": [
        [
          {
            "node": "Send a message1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Scheduled Market Research Trigger": {
      "main": [
        [
          {
            "node": "Inject Niche, Query, and Research Notes",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Inject Niche, Query, and Research Notes": {
      "main": [
        [
          {
            "node": "Analyze Public Discussions for Market Demand Signals (AI)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse Structured Insight Output from AI": {
      "main": [
        [
          {
            "node": "Save Market Research Insight to Notion Database",
            "type": "main",
            "index": 0
          },
          {
            "node": "Send Market Insight Email to Stakeholder",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Reasoning Engine for Insight Formatting": {
      "ai_languageModel": [
        [
          {
            "node": "Convert Market Signals into Notion Summary and Customer Email (AI)",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Save Market Research Insight to Notion Database": {
      "main": [
        []
      ]
    },
    "OpenAI Reasoning Engine for Market Signal Extraction": {
      "ai_languageModel": [
        [
          {
            "node": "Analyze Public Discussions for Market Demand Signals (AI)",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Analyze Public Discussions for Market Demand Signals (AI)": {
      "main": [
        [
          {
            "node": "Convert Market Signals into Notion Summary and Customer Email (AI)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Public Search & Social Intelligence Connector (MCP Client)": {
      "ai_tool": [
        [
          {
            "node": "Analyze Public Discussions for Market Demand Signals (AI)",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Convert Market Signals into Notion Summary and Customer Email (AI)": {
      "main": [
        [
          {
            "node": "Parse Structured Insight Output from AI",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}