{
  "name": "Monitor news sentiment trends with GPT-4o-mini, MrScraper, Slack and Notion",
  "nodes": [
    {
      "id": "4eb997f2-e6bc-47ad-82a8-379c37e49b30",
      "name": "Schedule Trigger (Daily 8AM)",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        9552,
        3408
      ]
    },
    {
      "id": "038f79fe-d0eb-4e11-9d7f-7625888eb167",
      "name": "Loop Each News Source",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        10000,
        3408
      ]
    },
    {
      "id": "6c52dfa0-0381-42cb-bf42-1d573228b2d1",
      "name": "MrScraper - Discover Article URLs",
      "type": "n8n-nodes-mrscraper.mrscraper",
      "position": [
        10224,
        3280
      ]
    },
    {
      "id": "be2601e1-2ee2-4024-b31e-12a6a95ce483",
      "name": "Loop Each Article URL",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        10672,
        3392
      ]
    },
    {
      "id": "623e9df1-880e-4775-8793-4822f1551199",
      "name": "MrScraper - Extract Article Content",
      "type": "n8n-nodes-mrscraper.mrscraper",
      "position": [
        10928,
        3280
      ]
    },
    {
      "id": "d125b8df-1d90-4976-a6f2-62b2d631d193",
      "name": "Pick Best Content + Filter Irrelevant",
      "type": "n8n-nodes-base.code",
      "position": [
        11152,
        3280
      ]
    },
    {
      "id": "c7ee7399-a11c-459a-a786-9d4e378b2134",
      "name": "Keep Only Relevant Articles",
      "type": "n8n-nodes-base.if",
      "position": [
        11344,
        3280
      ]
    },
    {
      "id": "3ae96703-6dbb-49e3-a25f-bb841d2275d5",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        11584,
        3424
      ]
    },
    {
      "id": "b217216c-e5c8-49e3-bdbf-ab96aa1641cd",
      "name": "Sentiment & Summary AI Agent",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        11568,
        3264
      ]
    },
    {
      "id": "a7f6a4ec-77fd-468f-a908-cef3041466c1",
      "name": "Parse AI Response & Format Output",
      "type": "n8n-nodes-base.code",
      "position": [
        11920,
        3264
      ]
    },
    {
      "id": "a05e5f63-b8a6-4147-8114-a92962937eec",
      "name": "Needs Urgent Alert?",
      "type": "n8n-nodes-base.if",
      "position": [
        12144,
        3296
      ]
    },
    {
      "id": "420367fa-cdc7-4691-b593-356f4f963bef",
      "name": "Slack - Urgent Alert",
      "type": "n8n-nodes-base.slack",
      "position": [
        12592,
        3248
      ]
    },
    {
      "id": "c6987d4c-dcd0-4b2a-b3e3-fa098ea44206",
      "name": "Notion - Save Article Analysis",
      "type": "n8n-nodes-base.notion",
      "position": [
        12752,
        3360
      ]
    },
    {
      "id": "450b484b-451b-4c7b-8926-6bc91914f62d",
      "name": "Build Daily Digest Summary",
      "type": "n8n-nodes-base.code",
      "position": [
        12288,
        3392
      ]
    },
    {
      "id": "98e87aff-dc32-4d11-b24b-38e6be975ca5",
      "name": "Slack - Daily Digest",
      "type": "n8n-nodes-base.slack",
      "position": [
        12512,
        3392
      ]
    },
    {
      "id": "c1dcafb0-0e37-455b-b676-62c1c306c74e",
      "name": "Sticky Note - Setup",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        8704,
        3232
      ],
      "parameters": {
        "width": 720,
        "height": 1104,
        "content": "## Phase 0 — Setup & Configuration\n\n### Before Running This Workflow\n\n**A) MrScraper Setup (required)**\nCreate TWO scrapers in your MrScraper dashboard:\n\n1. **Map Agent Scraper** — discovers article U"
      }
    },
    {
      "id": "a886e19a-e2cf-4844-bd79-11600c3e7267",
      "name": "Sticky Note - Phase 1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        9504,
        3584
      ],
      "parameters": {
        "width": 432,
        "height": 336,
        "content": "### What To Do\n* Set the workflow to run **daily at 8:00 AM** (or adjust to your preferred time).\n* Configure all global variables:\n  brand name, keywords, scraper IDs,\n  Slack channel, and Notion dat"
      }
    },
    {
      "id": "c3d30579-51ce-43c3-a5ac-d0794fbeb6ed",
      "name": "Sticky Note - Phase 2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        9952,
        3568
      ],
      "parameters": {
        "width": 880,
        "height": 384,
        "content": "### What To Do\n1. Run **Map Agent (Rerun)** using your domain as input (Please enter the maximum depth, maximum pages, and include pattern (includePattern) as needed.)\n2. Extract and clean the URLs:\n "
      }
    },
    {
      "id": "a0749d5e-270f-4144-afbe-f6029968c9a2",
      "name": "Sticky Note - Phase 3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        10864,
        3568
      ],
      "parameters": {
        "width": 640,
        "height": 416,
        "content": "### What To Do\n1. For each URL, call the **General Agent (Rerun)** using the scraperId from the mrscraper platform that was previously created to scrape each article URL\n   and extract the full conten"
      }
    },
    {
      "id": "84e904ab-db14-4dd4-a3f5-7ad09a47afb3",
      "name": "Sticky Note - Phase 4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        11520,
        3568
      ],
      "parameters": {
        "width": 580,
        "height": 544,
        "content": "### What To Do\n1. Send each processed article to **GPT-4o-mini**\n   using a structured analysis prompt.\n2. Define the **system prompt directly inside the OpenAI Chat Model node**\n   to ensure `chainLl"
      }
    },
    {
      "id": "95419708-8e4a-44e1-94b4-d5e31359a755",
      "name": "Sticky Note - Phase 5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        12112,
        3568
      ],
      "parameters": {
        "width": 804,
        "height": 624,
        "content": "### What To Do\n1. Configure **Notion** to save every analyzed article\n   as a new database page with complete metadata.\n   * Ensure all Notion property `textValue` fields are properly mapped and popul"
      }
    },
    {
      "id": "ab9057d6-3a66-4a47-94dd-7fc431a7e4c4",
      "name": "Get Target News Website",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        9776,
        3408
      ]
    },
    {
      "id": "3dff21e9-7d4c-4996-b88a-bdaec891a894",
      "name": "Sticky Note - Phase ",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        9504,
        3312
      ],
      "parameters": {
        "width": 432,
        "height": 256,
        "content": "##  Phase 1 — Trigger & Config"
      }
    },
    {
      "id": "c69f77d7-2eec-45c0-86f8-5f3521d48d26",
      "name": "Sticky Note - Phase 6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        9952,
        3216
      ],
      "parameters": {
        "width": 880,
        "height": 336,
        "content": "##  Phase 2 — URL Discovery"
      }
    },
    {
      "id": "d0c6aa04-718f-485a-b6c6-81236ee2ca35",
      "name": "Sticky Note - Phase 7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        10864,
        3216
      ],
      "parameters": {
        "width": 640,
        "height": 336,
        "content": "##  Phase 3 — Article Extraction"
      }
    },
    {
      "id": "076b8730-b119-4a97-9c4d-4dfb66304df1",
      "name": "Sticky Note - Phase 8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        11520,
        3216
      ],
      "parameters": {
        "width": 580,
        "height": 336,
        "content": "## Phase 4 — AI Sentiment Analysis\n"
      }
    },
    {
      "id": "cb91a350-fff8-4351-af78-c26c8bbddbb8",
      "name": "Sticky Note - Phase 9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        12112,
        3216
      ],
      "parameters": {
        "width": 804,
        "height": 336,
        "content": "## Phase 5 — Storage & Reporting"
      }
    },
    {
      "id": "767918c2-8a6c-44f7-ae3c-bb59b2d06d20",
      "name": "Extract URLs",
      "type": "n8n-nodes-base.code",
      "position": [
        10448,
        3280
      ]
    }
  ],
  "connections": {
    "Extract URLs": {
      "main": [
        [
          {
            "node": "Loop Each Article URL",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Sentiment & Summary AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Needs Urgent Alert?": {
      "main": [
        [
          {
            "node": "Slack - Urgent Alert",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Notion - Save Article Analysis",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Slack - Urgent Alert": {
      "main": [
        [
          {
            "node": "Notion - Save Article Analysis",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Each Article URL": {
      "main": [
        [
          {
            "node": "Loop Each News Source",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "MrScraper - Extract Article Content",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Each News Source": {
      "main": [
        [
          {
            "node": "Build Daily Digest Summary",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "MrScraper - Discover Article URLs",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Target News Website": {
      "main": [
        [
          {
            "node": "Loop Each News Source",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Build Daily Digest Summary": {
      "main": [
        [
          {
            "node": "Slack - Daily Digest",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Keep Only Relevant Articles": {
      "main": [
        [
          {
            "node": "Sentiment & Summary AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger (Daily 8AM)": {
      "main": [
        [
          {
            "node": "Get Target News Website",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Sentiment & Summary AI Agent": {
      "main": [
        [
          {
            "node": "Parse AI Response & Format Output",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Notion - Save Article Analysis": {
      "main": [
        [
          {
            "node": "Loop Each Article URL",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "MrScraper - Discover Article URLs": {
      "main": [
        [
          {
            "node": "Extract URLs",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse AI Response & Format Output": {
      "main": [
        [
          {
            "node": "Needs Urgent Alert?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "MrScraper - Extract Article Content": {
      "main": [
        [
          {
            "node": "Pick Best Content + Filter Irrelevant",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Pick Best Content + Filter Irrelevant": {
      "main": [
        [
          {
            "node": "Keep Only Relevant Articles",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}