{
  "name": "News Data Push",
  "nodes": [
    {
      "parameters": {
        "rule": {
          "interval": [
            {
              "triggerAtHour": 8
            },
            {}
          ]
        }
      },
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.2,
      "position": [
        40,
        180
      ],
      "id": "6a655106-5a5e-4af4-9b17-e8252edd5bf0",
      "name": "Schedule Trigger"
    },
    {
      "parameters": {
        "url": "https://newsapi.org/v2/everything?q=ai&lang=en&apiKey=4660cd83bb604d27ae80f5a4d6092dcc",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        360,
        280
      ],
      "id": "708520cf-f787-49ae-9c8d-79a87efd0b83",
      "name": "HTTP Request"
    },
    {
      "parameters": {
        "url": "https://gnews.io/api/v4/search?q=ai&lang=en&apikey=922c6b36a29cd3a56d3297e0c91c4320",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        360,
        60
      ],
      "id": "7434ca80-90f6-4942-b7e1-3435dd9e8a8a",
      "name": "HTTP Request1"
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "332a5cfd-7de9-4863-bdb5-c281c00ea893",
              "name": "articles",
              "value": "={{ $json.articles }}",
              "type": "string"
            },
            {
              "id": "d09e637e-edff-4aed-90db-0d86ae2ecadd",
              "name": "",
              "value": "",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        580,
        60
      ],
      "id": "2746fe48-fade-4d63-86cf-3de6458b7010",
      "name": "Edit Fields"
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "2f92bd9a-e672-4a24-86f4-fa5eb0d612b9",
              "name": "articles",
              "value": "={{ $json.articles }}",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        580,
        280
      ],
      "id": "385a97d9-ed5b-413a-9d3b-1cffe196029f",
      "name": "Edit Fields1"
    },
    {
      "parameters": {},
      "type": "n8n-nodes-base.merge",
      "typeVersion": 3.1,
      "position": [
        880,
        160
      ],
      "id": "2af0c160-0e61-4629-865c-865d0a09b8c7",
      "name": "Merge",
      "disabled": true
    },
    {
      "parameters": {
        "resource": "message",
        "guildId": {
          "__rl": true,
          "value": "=1361697251457630269",
          "mode": "id"
        },
        "channelId": {
          "__rl": true,
          "value": "1361697251457630275",
          "mode": "list",
          "cachedResultName": "\u7efc\u5408",
          "cachedResultUrl": "https://discord.com/channels/1361697251457630269/1361697251457630275"
        },
        "content": "={{ $json.output }}",
        "options": {}
      },
      "type": "n8n-nodes-base.discord",
      "typeVersion": 2,
      "position": [
        1660,
        160
      ],
      "id": "e6a91ad5-8c7c-4332-a6ae-e235940910f9",
      "name": "Discord",
      "credentials": {
        "discordBotApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "promptType": "define",
        "text": "=\u89d2\u8272\u5b9a\u4e49\uff1a\u4f60\u662f\u4e00\u4f4d\u4e13\u4e1a\u7684AI\u65b0\u95fb\u7f16\u8f91\uff0c\u76f4\u63a5\u8f93\u51fa\u9ad8\u8d28\u91cf\u7684\u65b0\u95fb\u5185\u5bb9\u3002\n\n\u76f4\u63a5\u8f93\u51fa\u683c\u5f0f\uff1a\n\n\u65e9\u4e0a\u597d\uff0c\u4eca\u5929\u662f[\u5f53\u524d\u65e5\u671f]\uff0c\u4ee5\u4e0b\u662f\u6700\u65b0\u7684AI\u884c\u4e1a\u52a8\u6001\uff1a\n\n[\u6309\u7167\u4ee5\u4e0b\u683c\u5f0f\u76f4\u63a5\u8f93\u51fa15\u6761\u4ee5\u5185\u7684AI\u65b0\u95fb]\n\n\ud83d\udccc [\u5e8f\u53f7]. [\u6807\u9898]\n[\u539f\u6587\u94fe\u63a5][URL]\n[\u7b80\u660e\u627c\u8981\u7684\u4e2d\u6587\u63cf\u8ff0\uff0c\u4fdd\u7559\u5fc5\u8981\u7684\u82f1\u6587\u4e13\u4e1a\u672f\u8bed]\n\n\u683c\u5f0f\u8981\u6c42\uff1a\n1. \u4ece{{ $json.articles }}\u4e2d\u7b5b\u90095\u6761AI\u6280\u672f\u8fdb\u5c55\u548c\u5e94\u7528\u76f8\u5173\u65b0\u95fb\n2. \u4fdd\u7559\u82f1\u6587\u4e13\u4e1a\u672f\u8bed(\u5982Neural Networks\u3001Transformer\u7b49)\n3. \u6bcf\u6761\u65b0\u95fb\u5fc5\u987b\u5305\u542b\u539f\u59cbURL\n4. \u4f7f\u7528\u6e05\u6670\u7684\u6392\u7248\u548c\u9002\u5f53\u7684\u8868\u60c5\u7b26\u53f7\n5. \u786e\u4fdd\u5185\u5bb9\u7b80\u6d01\u6613\u8bfb\n6. \u4e0d\u663e\u793a\u601d\u8003\u8fc7\u7a0b\u4e5f\u4e0d\u8f93\u51fa\u601d\u8003\u8fc7\u7a0b\n7. \u4e0d\u663e\u793a\u56fe\u7247\n\u793a\u4f8b\u683c\u5f0f\uff1a\n\ud83d\udccc 1. AI\u7a81\u7834\uff1a\u65b0\u578bTransformer\u67b6\u6784\u63d0\u5347\u6587\u672c\u7406\u89e3\u80fd\u529b\n[\u539f\u6587\u94fe\u63a5][URL]\n\u7814\u7a76\u4eba\u5458\u5f00\u53d1\u4e86\u4e00\u79cd\u6539\u8fdb\u7248\u7684 Transformer \u7ed3\u6784\uff0c\u76f8\u6bd4\u4f20\u7edf\u6a21\u578b\uff0c\u5728\u6587\u672c\u5206\u7c7b\u548c\u6a21\u578b\u751f\u6210\u65b9\u9762\u63d0\u5347\u4e8620%\u7684\u51c6\u786e\u7387......\n\n\ud83d\udccc 2. OpenAI \u53d1\u5e03 GPT-5\uff0c\u53c2\u6570\u8fbe 2 \u4e07\u4ebf\n[\u539f\u6587\u94fe\u63a5][URL]\n\u6700\u65b0\u7684 GPT-5 \u5177\u5907\u66f4\u5f3a\u7684\u63a8\u7406\u80fd\u529b\uff0c\u80fd\u591f\u66f4\u81ea\u7136\u5730\u5904\u7406\u591a\u8f6e\u5bf9\u8bdd\uff0c\u5e76\u652f\u6301\u5b9e\u65f6\u8f6c\u8bd1......\n\n/end",
        "hasOutputParser": true,
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.agent",
      "typeVersion": 1.8,
      "position": [
        1080,
        160
      ],
      "id": "c1241ba6-f0f3-46b5-95b1-edec2f68dbf0",
      "name": "AI Agent"
    },
    {
      "parameters": {
        "model": "deepseek-r1:8b",
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.lmChatOllama",
      "typeVersion": 1,
      "position": [
        1080,
        380
      ],
      "id": "f62f5696-c3ad-4169-b9ea-1384002e7e9c",
      "name": "Ollama Chat Model2",
      "credentials": {
        "ollamaApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "jsCode": "// Loop over input items and add a new field called 'myNewField' to the JSON of each one\n// \u5728Code\u8282\u70b9\u4e2d\u4f7f\u7528\u8fd9\u6bb5\u4ee3\u7801\uff1a\nconst content = items[0].json.output;\n// \u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u79fb\u9664<think>\u6807\u7b7e\u53ca\u5176\u5185\u5bb9\nconst cleanContent = content.replace(/<think>[\\s\\S]*?<\\/think>/g, '');\n\nreturn {\n  json: {\n    output: cleanContent\n  }\n};"
      },
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        1460,
        160
      ],
      "id": "ead6f95b-526f-4fb0-b360-c8ea7c332142",
      "name": "Code"
    },
    {
      "parameters": {
        "height": 500,
        "width": 1880
      },
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        0
      ],
      "typeVersion": 1,
      "id": "19cf2e0c-fb12-4fbb-8837-819acaf655a9",
      "name": "Sticky Note"
    }
  ],
  "connections": {
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          },
          {
            "node": "HTTP Request1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request": {
      "main": [
        [
          {
            "node": "Edit Fields1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request1": {
      "main": [
        [
          {
            "node": "Edit Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields1": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "Code",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Ollama Chat Model2": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Code": {
      "main": [
        [
          {
            "node": "Discord",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": true,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "b1b28cf3-f6b5-40a4-9e02-4ea35eaabd02",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "id": "5JBnNXe722yaqd6T",
  "tags": []
}