{
  "name": "Analyze Reddit posts with AI to identify business opportunities",
  "nodes": [
    {
      "id": "52bdf7eb-ee1a-43c5-a0ad-199283003892",
      "name": "When clicking ‘Test workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -1400,
        -640
      ]
    },
    {
      "id": "e9a000b6-2f35-4928-a8d8-aa2d8cc27513",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -360,
        -760
      ]
    },
    {
      "id": "cd38a8b6-1369-4209-a80e-9e9949df49c0",
      "name": "OpenAI Chat Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        680,
        -1080
      ]
    },
    {
      "id": "4749ca62-6061-4dc0-8f1a-b0e995bb3d0f",
      "name": "OpenAI Chat Model2",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        640,
        -220
      ]
    },
    {
      "id": "ed68c267-9716-4930-b210-d1f1ae89d8c8",
      "name": "Post Sentiment Analysis",
      "type": "@n8n/n8n-nodes-langchain.sentimentAnalysis",
      "position": [
        740,
        -400
      ]
    },
    {
      "id": "2e651e62-00dd-4f0d-a8bc-ce4d8b9fa1d7",
      "name": "Positive Posts Draft",
      "type": "n8n-nodes-base.gmail",
      "position": [
        1260,
        -560
      ]
    },
    {
      "id": "29d478d2-43d4-467a-89c2-8c97ea6e245c",
      "name": "Neutral  Posts Draft",
      "type": "n8n-nodes-base.gmail",
      "position": [
        1280,
        -380
      ]
    },
    {
      "id": "c289805f-5246-4f3a-9052-48c426da8ce0",
      "name": "Negative  Posts Draft",
      "type": "n8n-nodes-base.gmail",
      "position": [
        1280,
        -160
      ]
    },
    {
      "id": "00d17970-3195-4290-bb02-9956f31ecc8f",
      "name": "Find Proper Solutions",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        840,
        -1040
      ]
    },
    {
      "id": "9bcbd874-5eed-47ce-9714-1aec71537fe2",
      "name": "Post Summarization",
      "type": "@n8n/n8n-nodes-langchain.chainSummarization",
      "position": [
        760,
        -1280
      ]
    },
    {
      "id": "60991de9-ad29-484c-9233-966cc1980a03",
      "name": "Merge Input",
      "type": "n8n-nodes-base.merge",
      "position": [
        -80,
        -700
      ]
    },
    {
      "id": "f78fbea9-5f7f-4a88-bde1-7c3f01613892",
      "name": "Output The Results",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1520,
        -1260
      ]
    },
    {
      "id": "a0259ed2-0615-4e92-9e7e-cbff8c5bc0ce",
      "name": "Merge 3 Inputs",
      "type": "n8n-nodes-base.merge",
      "position": [
        1340,
        -1040
      ]
    },
    {
      "id": "b7326fd0-5379-42ac-b355-ef6c3c1790f9",
      "name": "Filter Posts By Features",
      "type": "n8n-nodes-base.if",
      "position": [
        -980,
        -640
      ]
    },
    {
      "id": "11c45f28-97c0-4087-975c-651f27438956",
      "name": "Filter Posts By Content",
      "type": "n8n-nodes-base.if",
      "position": [
        180,
        -680
      ]
    },
    {
      "id": "efede239-eff5-4e38-b40d-3cefea040644",
      "name": "Select Key Fields",
      "type": "n8n-nodes-base.set",
      "position": [
        -740,
        -660
      ]
    },
    {
      "id": "1a99fdaa-6857-4210-a695-71ce531c1fa0",
      "name": "Analysis Content  By AI",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -460,
        -940
      ]
    },
    {
      "id": "72b30080-e1f2-48b4-b816-ff43542cc6f1",
      "name": "Get Posts",
      "type": "n8n-nodes-base.reddit",
      "position": [
        -1180,
        -640
      ]
    },
    {
      "id": "c4ecb9ec-4895-4b41-ba7e-185e3769ce41",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1500,
        -880
      ],
      "parameters": {
        "width": 880,
        "height": 440,
        "content": "# Data Collection\n## Retrieves recent popular posts from specified Reddit communities\n## Filters content by engagement metrics and keywords"
      }
    },
    {
      "id": "49735ff9-7f15-4050-9c46-6c13666479bd",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        560,
        -620
      ],
      "parameters": {
        "width": 1020,
        "height": 660,
        "content": "# Post Sentiment Analysis\n## "
      }
    },
    {
      "id": "17048a9e-6080-406e-a4e7-5d57406576e1",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -500,
        -1160
      ],
      "parameters": {
        "width": 820,
        "height": 680,
        "content": "# Analysis Content\n## Emerging market needs\n## Underserved customer demands"
      }
    },
    {
      "id": "5a412abc-3866-44ba-9ab0-8cc0a3e012f2",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        520,
        -1480
      ],
      "parameters": {
        "width": 1220,
        "height": 640,
        "content": "# Insight Generation And Output \n## Generates executive summaries of key opportunities\n## Consolidates findings in Google Sheets"
      }
    }
  ],
  "connections": {
    "Get Posts": {
      "main": [
        [
          {
            "node": "Filter Posts By Features",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge Input": {
      "main": [
        [
          {
            "node": "Filter Posts By Content",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge 3 Inputs": {
      "main": [
        [
          {
            "node": "Output The Results",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Analysis Content  By AI",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Select Key Fields": {
      "main": [
        [
          {
            "node": "Merge Input",
            "type": "main",
            "index": 1
          },
          {
            "node": "Analysis Content  By AI",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "Post Summarization",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model2": {
      "ai_languageModel": [
        [
          {
            "node": "Post Sentiment Analysis",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Output The Results": {
      "main": [
        []
      ]
    },
    "Post Summarization": {
      "main": [
        [
          {
            "node": "Merge 3 Inputs",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Find Proper Solutions": {
      "main": [
        [
          {
            "node": "Merge 3 Inputs",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Analysis Content  By AI": {
      "main": [
        [
          {
            "node": "Merge Input",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter Posts By Content": {
      "main": [
        [
          {
            "node": "Post Summarization",
            "type": "main",
            "index": 0
          },
          {
            "node": "Find Proper Solutions",
            "type": "main",
            "index": 0
          },
          {
            "node": "Merge 3 Inputs",
            "type": "main",
            "index": 2
          },
          {
            "node": "Post Sentiment Analysis",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Post Sentiment Analysis": {
      "main": [
        [
          {
            "node": "Positive Posts Draft",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Neutral  Posts Draft",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Negative  Posts Draft",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter Posts By Features": {
      "main": [
        [
          {
            "node": "Select Key Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Test workflow’": {
      "main": [
        [
          {
            "node": "Get Posts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}