{
  "name": "Track daily brand mentions from Hacker News to Slack with GPT-4o-mini sentiment analysis",
  "nodes": [
    {
      "id": "2a7612de-ca5d-4f4d-b0d2-8cd75ab96323",
      "name": "Every Day at 09:00",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -1312,
        464
      ]
    },
    {
      "id": "f0061436-e3cf-4516-abbf-35c3e6413505",
      "name": "Brand Config",
      "type": "n8n-nodes-base.set",
      "position": [
        -1088,
        464
      ]
    },
    {
      "id": "81966f20-5f1c-4e58-b9b2-8cc6f7726a3a",
      "name": "Fetch Reddit Mentions",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -864,
        464
      ]
    },
    {
      "id": "0e9f423c-3298-4524-a5cf-7a6d799a3d87",
      "name": "Normalize Mentions",
      "type": "n8n-nodes-base.code",
      "position": [
        -640,
        464
      ]
    },
    {
      "id": "cd01b4a3-fc61-43fb-8d32-b78ccaadd62f",
      "name": "Mentions Exist?",
      "type": "n8n-nodes-base.if",
      "position": [
        -192,
        464
      ]
    },
    {
      "id": "bbb9eddd-8d0f-48d1-b5a8-f794e1462f7c",
      "name": "Build Daily Summary",
      "type": "n8n-nodes-base.code",
      "position": [
        720,
        320
      ]
    },
    {
      "id": "bfea6659-b7e3-4adf-b01c-72062f040af5",
      "name": "Send Daily Report to Slack",
      "type": "n8n-nodes-base.slack",
      "position": [
        944,
        320
      ]
    },
    {
      "id": "6207ae42-847f-4f24-8497-4adddf98d690",
      "name": "No Mentions Message",
      "type": "n8n-nodes-base.set",
      "position": [
        160,
        608
      ]
    },
    {
      "id": "bcad6160-5453-456d-b264-fc991c42b7ac",
      "name": "Send No Mentions to Slack",
      "type": "n8n-nodes-base.slack",
      "position": [
        496,
        608
      ]
    },
    {
      "id": "8ce97211-b4e1-4e1d-9e15-fd6ebd320247",
      "name": "Checking Score",
      "type": "n8n-nodes-base.if",
      "position": [
        -416,
        464
      ]
    },
    {
      "id": "def75b6a-d57f-44f2-8a1c-64d0552e6baa",
      "name": "OpenAI Chat Model - GPT-4o-mini",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        32,
        432
      ]
    },
    {
      "id": "b49bd7bc-b0ed-4bb2-a495-3eb9dbd83428",
      "name": "Memory - Conversation Buffer",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        160,
        432
      ]
    },
    {
      "id": "6b4a610e-a656-45a3-87e5-9d564efc88f2",
      "name": "Output Parser - Structured JSON",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        288,
        432
      ]
    },
    {
      "id": "9428daf8-21da-47cc-9d7d-88c05404ad20",
      "name": "AI Agent - Classify Mention Sentiments",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        96,
        208
      ]
    },
    {
      "id": "485ed40a-9751-4ba2-aad7-28b8f9f8f6af",
      "name": "Format Sentiment Data",
      "type": "n8n-nodes-base.set",
      "position": [
        496,
        320
      ]
    },
    {
      "id": "cf1fb0da-f564-4230-8b8e-b4d811b04cc5",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1408,
        -384
      ],
      "parameters": {
        "width": 448,
        "height": 704,
        "content": "## Daily AI Engine Mentions Tracker – Overview\n\nThis workflow tracks daily online mentions of a selected brand and sends a summary to Slack. It checks Hacker News each morning, processes the results, "
      }
    },
    {
      "id": "c71bebc3-69e1-4b2f-b3b5-9316e69d5f5a",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1392,
        352
      ],
      "parameters": {
        "width": 448,
        "height": 304,
        "content": "## Trigger & Brand Setup\nRuns daily at 09:00 and loads the brand name + keyword filters.\n"
      }
    },
    {
      "id": "0e11af5a-7d41-4fbc-bf13-1a974922145b",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -928,
        352
      ],
      "parameters": {
        "width": 224,
        "height": 304,
        "content": "## Fetch Mentions\nQueries Hacker News for new stories matching the brand keyword.\n"
      }
    },
    {
      "id": "4ee80f6b-2907-4068-9295-8f324a5865b9",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -688,
        320
      ],
      "parameters": {
        "width": 614,
        "height": 336,
        "content": "## Normalize Mentions\nConverts raw API results into a clean structure for AI classification.\n"
      }
    },
    {
      "id": "371de316-878a-48c4-a492-394605e7504b",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -16,
        112
      ],
      "parameters": {
        "width": 448,
        "height": 464,
        "content": "## AI Classification\nAI evaluates sentiment, stance, topic, and urgency for each mention.\n"
      }
    },
    {
      "id": "d15ba049-379e-4f68-a17c-51f614aee438",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        448,
        112
      ],
      "parameters": {
        "width": 400,
        "height": 464,
        "content": "## Format Sentiment Output and Summary\nMaps AI-generated sentiment fields into clean JSON for reporting.Builds a daily Slack-friendly summary including top trending mentions.\n"
      }
    },
    {
      "id": "84710f35-de7d-4b58-8c4b-5f043d4573a9",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        864,
        112
      ],
      "parameters": {
        "width": null,
        "height": 464,
        "content": "## Slack Notifications\nSends either a full daily report or a “no mentions today” message.\n"
      }
    },
    {
      "id": "fac8347b-4957-4dee-b866-4955bf268dd7",
      "name": "Error Handling",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1376,
        1040
      ],
      "parameters": {
        "width": 584,
        "height": 276,
        "content": "## Error Handling\nCaptures workflow failures and sends details to Slack for quick debugging.\n"
      }
    },
    {
      "id": "15ea6ce7-3a12-4b28-aa15-691fbc6e1f83",
      "name": "Error Handler Trigger",
      "type": "n8n-nodes-base.errorTrigger",
      "position": [
        -1232,
        1152
      ]
    },
    {
      "id": "7e3a85d0-6586-4a32-b5b3-99aca1fe5f4d",
      "name": "Slack: Send Error Alert",
      "type": "n8n-nodes-base.slack",
      "position": [
        -1024,
        1152
      ]
    }
  ],
  "connections": {
    "Brand Config": {
      "main": [
        [
          {
            "node": "Fetch Reddit Mentions",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Checking Score": {
      "main": [
        [
          {
            "node": "Mentions Exist?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Mentions Exist?": {
      "main": [
        [
          {
            "node": "AI Agent - Classify Mention Sentiments",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "No Mentions Message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Every Day at 09:00": {
      "main": [
        [
          {
            "node": "Brand Config",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Normalize Mentions": {
      "main": [
        [
          {
            "node": "Checking Score",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Build Daily Summary": {
      "main": [
        [
          {
            "node": "Send Daily Report to Slack",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "No Mentions Message": {
      "main": [
        [
          {
            "node": "Send No Mentions to Slack",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Error Handler Trigger": {
      "main": [
        [
          {
            "node": "Slack: Send Error Alert",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Reddit Mentions": {
      "main": [
        [
          {
            "node": "Normalize Mentions",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format Sentiment Data": {
      "main": [
        [
          {
            "node": "Build Daily Summary",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Memory - Conversation Buffer": {
      "ai_memory": [
        [
          {
            "node": "AI Agent - Classify Mention Sentiments",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model - GPT-4o-mini": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent - Classify Mention Sentiments",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Output Parser - Structured JSON": {
      "ai_outputParser": [
        [
          {
            "node": "AI Agent - Classify Mention Sentiments",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent - Classify Mention Sentiments": {
      "main": [
        [
          {
            "node": "Format Sentiment Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}