{
  "name": "Daily business news briefings with NewsAPI & GPT-4 insights to Slack",
  "nodes": [
    {
      "id": "4ed04f56-1cd8-47d5-b4c1-34cfdb496583",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        128,
        192
      ]
    },
    {
      "id": "e658f392-e1b6-4f14-ad02-414eb3b03f99",
      "name": "Post to Slack",
      "type": "n8n-nodes-base.slack",
      "position": [
        2896,
        176
      ]
    },
    {
      "id": "06b21744-df60-4a78-b804-21223b628fcc",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -528,
        -288
      ],
      "parameters": {
        "width": 448,
        "height": 1008,
        "content": "## 📰 Summarize trending news into Slack with business insights\n\nThis workflow fetches the latest news based on your selected **country, category, and keyword query**, runs it through GPT for **summari"
      }
    },
    {
      "id": "ac6308fa-d25c-4b24-bcec-aa4208870571",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        16,
        -384
      ],
      "parameters": {
        "width": 624,
        "height": 304,
        "content": "## ⚙️ Workflow Breakdown\n1. **Schedule Trigger:** Set frequency (daily, weekly, etc.)\n2. **Set News Config:** Configure country, category, and query.\n3. **Fetch News Articles:** Pulls from NewsAPI.\n4."
      }
    },
    {
      "id": "8b926d52-75a4-4dce-9f80-5ff22f256bb7",
      "name": "Set User Config (Country, Category, Query)",
      "type": "n8n-nodes-base.set",
      "position": [
        624,
        192
      ]
    },
    {
      "id": "444c5afa-9052-4e07-8881-7a0a86ac8a78",
      "name": "Fetch News Articles",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1104,
        192
      ]
    },
    {
      "id": "0ed04c61-e4dd-4e3f-8735-3cff4aedc9cb",
      "name": "Merge Config with Articles",
      "type": "n8n-nodes-base.merge",
      "position": [
        2032,
        176
      ]
    },
    {
      "id": "85ce6b97-0549-4ff8-9334-e9daf7fceed2",
      "name": "Generate Business Insights (GPT)",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        2352,
        176
      ]
    },
    {
      "id": "67a3fc4b-4c91-4856-810f-0f39b121a729",
      "name": "Inject Config Data",
      "type": "n8n-nodes-base.set",
      "position": [
        1824,
        64
      ]
    },
    {
      "id": "c9730e23-e365-4964-8ed3-7184dfe13d69",
      "name": "Limit to Top 10 Trends",
      "type": "n8n-nodes-base.code",
      "position": [
        1584,
        64
      ]
    },
    {
      "id": "a96f8610-32c6-4410-8b87-a7bb43ece32d",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        464,
        0
      ],
      "parameters": {
        "width": 416,
        "height": 416,
        "content": "## Inject Config Settings\n\nSet your **country, category, and query** (keyword) here.\n\n✅ This controls the NewsAPI request and instructs GPT on which industry focus to prioritize in its analysis.\n"
      }
    },
    {
      "id": "900b9b6a-cff5-4438-bf49-3919c9b179d0",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        960,
        0
      ],
      "parameters": {
        "width": 416,
        "height": 416,
        "content": "## Fetch Latest News Headlines\n[Read more about HTTP Request node](https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.httprequest/)\n\nThis step pulls up to 100 top headlines from NewsAP"
      }
    },
    {
      "id": "d0747cf1-d1db-4728-869b-b39d86320958",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1472,
        -80
      ],
      "parameters": {
        "width": 720,
        "height": 496,
        "content": "## Prepare Articles & Merge with Config\n\nFormats the articles into plain text and merges them with your country, category, and query setting - providing GPT with clean data and context for accurate an"
      }
    },
    {
      "id": "5942c7d8-4853-47cd-b529-c91e7427a7e2",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2272,
        -80
      ],
      "parameters": {
        "width": 416,
        "height": 496,
        "content": "## GPT Business Summary\n[Read more about OpenAI Chat Model node](https://docs.n8n.io/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.lmchatopenai/)\n\nGPT analyzes the news, summarizes "
      }
    },
    {
      "id": "e2bc105f-82e8-414b-a2ef-1556ab99934c",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2752,
        -80
      ],
      "parameters": {
        "width": 416,
        "height": 496,
        "content": "## Post to Slack\n[Read more about Slack node](https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.slack/)\n\nSends the GPT insights directly to your Slack channel.\nYou can customize the me"
      }
    },
    {
      "id": "bc891826-edfd-4f45-b986-c9bfb86baa44",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -32,
        0
      ],
      "parameters": {
        "width": 416,
        "height": 416,
        "content": "## Schedule Trigger\n\nThis controls how often the workflow runs — set it to daily, weekly, or any custom interval you need.\n\nAdjust the schedule settings to match how frequently you want news updates s"
      }
    },
    {
      "id": "13e633f5-02ac-46d0-b878-f8736746beb3",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        704,
        -320
      ],
      "parameters": {
        "width": 480,
        "height": 192,
        "content": "## 🎥 Demo Video  \n👉 **[Click here to watch the setup guide](https://www.loom.com/share/970a3fba1ed44352a2194f1ef6a8dc45?sid=6750eb3e-9eb9-4400-a6ec-83d2c9de55e4)**  "
      }
    }
  ],
  "connections": {
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Set User Config (Country, Category, Query)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Inject Config Data": {
      "main": [
        [
          {
            "node": "Merge Config with Articles",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch News Articles": {
      "main": [
        [
          {
            "node": "Merge Config with Articles",
            "type": "main",
            "index": 1
          },
          {
            "node": "Limit to Top 10 Trends",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Limit to Top 10 Trends": {
      "main": [
        [
          {
            "node": "Inject Config Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge Config with Articles": {
      "main": [
        [
          {
            "node": "Generate Business Insights (GPT)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Business Insights (GPT)": {
      "main": [
        [
          {
            "node": "Post to Slack",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set User Config (Country, Category, Query)": {
      "main": [
        [
          {
            "node": "Fetch News Articles",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}