{
  "id": "EJkg3fmJep0B94zU",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "name": "Summarized Daily Technology News from Multiple Newspapers with AI",
  "tags": [],
  "nodes": [
    {
      "id": "9ce6590f-db9d-4981-9445-6426690c9d3b",
      "name": "Schedule Daily Tech News Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -900,
        1310
      ],
      "parameters": {
        "rule": {
          "interval": [
            {
              "triggerAtHour": 8
            }
          ]
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "f97e0ede-5341-4d52-a360-b49d6741e828",
      "name": "Fetch Google Tech News",
      "type": "n8n-nodes-base.httpRequest",
      "notes": "Fetches tech news from Google News India",
      "position": [
        -680,
        1310
      ],
      "parameters": {
        "url": "https://news.google.com/search?q=tech%20news&hl=en-IN&gl=IN&ceid=IN%3Aen",
        "options": {
          "timeout": 15000
        }
      },
      "notesInFlow": true,
      "typeVersion": 4.2
    },
    {
      "id": "501e3abb-e82c-4fb1-84aa-458ca3a6d09e",
      "name": "Extract Tech News Articles",
      "type": "n8n-nodes-base.html",
      "notes": "Updated selectors for Google News structure - extracts titles, sources, times and full content",
      "position": [
        -460,
        1310
      ],
      "parameters": {
        "options": {
          "cleanUpText": true
        },
        "operation": "extractHtmlContent",
        "extractionValues": {
          "values": [
            {
              "key": "Article Titles",
              "cssSelector": "article h3 a, article h4 a, .JtKRv",
              "returnArray": true
            },
            {
              "key": "Article Links",
              "cssSelector": "article h3 a, article h4 a, .JtKRv",
              "returnArray": true
            },
            {
              "key": "Article Sources",
              "cssSelector": "article .wEwyrc, .vr1PYe, .CEMjEf",
              "returnArray": true
            },
            {
              "key": "Publication Times",
              "cssSelector": "article time, .WW6dff, .hvbAAd",
              "returnArray": true
            },
            {
              "key": "Article Snippets",
              "cssSelector": "article .GI74Re, .St8ea, .y3G2Ed",
              "returnArray": true
            },
            {
              "key": "All Articles",
              "cssSelector": "article",
              "returnArray": true
            }
          ]
        }
      },
      "notesInFlow": true,
      "typeVersion": 1.2
    },
    {
      "id": "15702e6e-5ee9-470a-ac3f-5c8604e97ced",
      "name": "Format Tech News Data",
      "type": "n8n-nodes-base.set",
      "position": [
        -240,
        1310
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "5412a5ee-dbbe-4fcc-98a5-6fafc37b94d1",
              "name": "Formatted_Tech_News",
              "type": "string",
              "value": "=DAILY TECH NEWS SUMMARY - {{ new Date().toLocaleDateString('en-IN') }}\n========================================================\n\nSource: Google News - Tech Category (India)\nExtracted at: {{ new Date().toLocaleTimeString('en-IN') }}\n\n\ud83d\udcf0 HEADLINES EXTRACTED:\n{{ $json['Article Titles'] && Array.isArray($json['Article Titles']) ? $json['Article Titles'].slice(0, 15).map((title, i) => `${i+1}. ${title}`).join('\\n') : 'No titles found' }}\n\n\u23f0 PUBLICATION TIMES:\n{{ $json['Publication Times'] && Array.isArray($json['Publication Times']) ? $json['Publication Times'].slice(0, 10).join(' | ') : 'No times found' }}\n\n\ud83d\udcc4 ARTICLE CONTENT FOR AI ANALYSIS:\n{{ $json['All Articles'] && Array.isArray($json['All Articles']) ? $json['All Articles'].slice(0, 8).join('\\n\\n=== NEXT ARTICLE ===\\n\\n') : 'No article content found' }}\n\n\ud83d\udcca EXTRACTION SUMMARY:\nTitles found: {{ $json['Article Titles'] ? $json['Article Titles'].length : 0 }}\nSources found: {{ $json['Article Sources'] ? $json['Article Sources'].length : 0 }}\nTimes found: {{ $json['Publication Times'] ? $json['Publication Times'].length : 0 }}"
            },
            {
              "id": "news_count",
              "name": "Article_Count",
              "type": "number",
              "value": "={{ $json['Article Titles'].length }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "be8b1b53-26b7-4713-bbce-f59a7a13e940",
      "name": "AI Tech News Analyzer",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        200,
        1060
      ],
      "parameters": {
        "text": "=Analyze and summarize today's tech news:\n\n{{ $json['Formatted_Tech_News'] }}",
        "options": {
          "systemMessage": "You are a tech industry analyst and news curator. Your role is to analyze the latest technology news and provide a comprehensive yet concise daily summary for tech professionals, entrepreneurs, and enthusiasts.\n\nYour summary should include:\n\n1. **KEY TECH TRENDS** - Identify 2-3 major themes or trends from today's news\n2. **MAJOR ANNOUNCEMENTS** - Highlight significant product launches, acquisitions, or company news\n3. **INDUSTRY IMPACT** - Brief analysis of how these developments might affect the tech ecosystem\n4. **EMERGING TECHNOLOGIES** - Note any mentions of AI, blockchain, cloud computing, cybersecurity, or other cutting-edge tech\n5. **MARKET MOVEMENTS** - Any notable stock movements or funding announcements in tech sector\n6. **OUTLOOK** - Brief prediction or what to watch for tomorrow/this week\n\nKeep the tone professional yet accessible. Focus on actionable insights for tech professionals. Limit the summary to 300-400 words maximum.\n\nFormat your response with clear sections using markdown headers."
        },
        "promptType": "define"
      },
      "typeVersion": 1.6
    },
    {
      "id": "5ea649f0-f389-450b-b128-26add07ff485",
      "name": "Send Tech News Email",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        576,
        1160
      ],
      "parameters": {
        "text": "={{ $json.output }}",
        "options": {},
        "subject": "\ud83d\ude80 Daily Tech News Summary - {{ new Date().toLocaleDateString('en-IN') }}",
        "toEmail": "user@example.com",
        "fromEmail": "user@example.com",
        "emailFormat": "text"
      },
      "credentials": {
        "smtp": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "1941552b-cf75-4b69-bbcc-dfe8978224c9",
      "name": "LLM - Tech News Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOllama",
      "position": [
        288,
        1280
      ],
      "parameters": {
        "model": "llama3.2-16000:latest",
        "options": {
          "temperature": 0.3
        }
      },
      "credentials": {
        "ollamaApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "163f6f7a-e18e-4798-a30d-ae2dda2f2ebb",
      "name": "Workflow Info",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -600,
        780
      ],
      "parameters": {
        "color": 5,
        "width": 420,
        "height": 380,
        "content": "\ud83d\ude80 **Daily Tech News Automation**\n\nThis workflow:\n\u2022 Scrapes Google News tech section daily at 8 AM\n\u2022 Extracts headlines, sources & timestamps\n\u2022 Uses AI to analyze trends and create summary\n\u2022 Sends formatted email report\n\n**Perfect for:**\n\u2705 Tech professionals\n\u2705 Startup founders\n\u2705 Product managers\n\u2705 Tech investors\n\n**Data Sources:**\n\ud83d\udcf1 Google News India - Tech Category\n\ud83e\udd16 AI-powered analysis\n\ud83d\udce7 Automated email delivery"
      },
      "typeVersion": 1
    },
    {
      "id": "98d88b46-aa1d-4d41-931a-c5c280b15844",
      "name": "Check if News Found",
      "type": "n8n-nodes-base.if",
      "position": [
        -20,
        1310
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "condition_1",
              "operator": {
                "type": "number",
                "operation": "gte",
                "rightType": "number"
              },
              "leftValue": "={{ $json['Article_Count'] }}",
              "rightValue": 1
            }
          ]
        }
      },
      "typeVersion": 2
    },
    {
      "id": "7b956366-8c47-4538-adce-9d9916f7a121",
      "name": "Send Error Alert",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        278,
        1460
      ],
      "parameters": {
        "text": "The daily tech news workflow ran but found no articles to process.\n\nThis could be due to:\n- Changes in Google News website structure\n- Network connectivity issues\n- CSS selector updates needed\n\nPlease check the workflow configuration.\n\nTime: {{ new Date().toLocaleString('en-IN') }}",
        "options": {},
        "subject": "\u26a0\ufe0f Tech News Workflow Alert - No Articles Found",
        "toEmail": "user@example.com",
        "fromEmail": "user@example.com",
        "emailFormat": "text"
      },
      "credentials": {
        "smtp": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 2.1
    }
  ],
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "38bf1c7a-6241-4fbf-8002-3870e1654869",
  "connections": {
    "Check if News Found": {
      "main": [
        [
          {
            "node": "AI Tech News Analyzer",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send Error Alert",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Tech News Analyzer": {
      "main": [
        [
          {
            "node": "Send Tech News Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format Tech News Data": {
      "main": [
        [
          {
            "node": "Check if News Found",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "LLM - Tech News Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Tech News Analyzer",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Google Tech News": {
      "main": [
        [
          {
            "node": "Extract Tech News Articles",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Tech News Articles": {
      "main": [
        [
          {
            "node": "Format Tech News Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Daily Tech News Trigger": {
      "main": [
        [
          {
            "node": "Fetch Google Tech News",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}