ملخص أخبار يومي بالذكاء الاصطناعي

كل صباح، يلخص الذكاء الاصطناعي أحدث المقالات من مصدر أخبار في بريد واحد قصير.

متوسط توفّر ~5 ساعة شهريًا الإنتاجيةبواسطة فريق Flowngn

تعمل مع n8n · Make · Zapier

كيف تعمل

المشغّل: جدول زمني — كل يوم الساعة 7:00
  1. اقرأ أحدث العناصر من خلاصة RSS (أخبار مجالك، مدونات، Google News).
  2. احتفظ بمقالات آخر 24 ساعة.
  3. اطلب من الذكاء الاصطناعي ملخصًا من 5 نقاط مع أهم الروابط.
  4. أرسل الملخص إلى بريدك.

المخطط

Every day 7:00Schedule TriggerRRead news feedRSS Read{ }Last 24 hoursCodeSummarize newsBasic LLM ChainClaude modelAnthropic Chat Mo…GEmail digestGmail
مشغّل تطبيق كود ذكاء اصطناعي

الكود

كود JavaScript المستخدم في خطوات Code، وهو مضمَّن بالفعل في القالب بالأسفل.

Last 24 hours · عقدة Code
// Keeps the last 24 hours of articles (max 15) as one block of text for the AI.
const DAY = 24 * 60 * 60 * 1000;

const articles = $input.all()
  .map((item) => item.json)
  .filter((a) => Date.now() - new Date(a.isoDate || a.pubDate).getTime() < DAY)
  .slice(0, 15)
  .map((a, i) => `${i + 1}. ${a.title}\n${(a.contentSnippet || "").slice(0, 300)}\n${a.link}`);

if (!articles.length) return [];
return [{ json: { articles: articles.join("\n\n") } }];

ابنِها بأداتك

اختر أداتك — نفس الأتمتة، خطوة بخطوة.

انسخه والصقه مباشرة في مساحة عمل n8n (Ctrl+V)، أو حمّله واستخدم Import from File. بعد ذلك اربط حساباتك واستبدل كل قيمة تبدأ بـ YOUR_. خطوات الذكاء الاصطناعي تستخدم نموذج Claude، ويمكنك استبداله بـ OpenAI أو Gemini أو Ollama.

ملف Workflow JSON
عرض الكود (182 سطر)
{
  "name": "ملخص أخبار يومي بالذكاء الاصطناعي (Flowngn)",
  "nodes": [
    {
      "parameters": {
        "content": "## ملخص أخبار يومي بالذكاء الاصطناعي\nكل صباح، يلخص الذكاء الاصطناعي أحدث المقالات من مصدر أخبار في بريد واحد قصير.\n\n**Setup**\n1. Open each node and connect your own credentials.\n2. Replace every YOUR_… placeholder.\n3. Test once, then activate.\n\nFree template from Flowngn",
        "height": 260,
        "width": 340
      },
      "id": "292cf932-28a7-4640-ac3f-63835463a159",
      "name": "Setup notes",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -420,
        -60
      ]
    },
    {
      "parameters": {
        "rule": {
          "interval": [
            {
              "triggerAtHour": 7
            }
          ]
        }
      },
      "id": "292cf932-28a7-4640-ac3f-63835463a159",
      "name": "Every day 7:00",
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.2,
      "position": [
        0,
        0
      ]
    },
    {
      "parameters": {
        "url": "https://news.google.com/rss/search?q=YOUR_TOPIC&hl=en",
        "options": {}
      },
      "id": "292cf932-28a7-4640-ac3f-63835463a159",
      "name": "Read news feed",
      "type": "n8n-nodes-base.rssFeedRead",
      "typeVersion": 1.1,
      "position": [
        300,
        0
      ]
    },
    {
      "parameters": {
        "jsCode": "// Keeps the last 24 hours of articles (max 15) as one block of text for the AI.\nconst DAY = 24 * 60 * 60 * 1000;\n\nconst articles = $input.all()\n  .map((item) => item.json)\n  .filter((a) => Date.now() - new Date(a.isoDate || a.pubDate).getTime() < DAY)\n  .slice(0, 15)\n  .map((a, i) => `${i + 1}. ${a.title}\\n${(a.contentSnippet || \"\").slice(0, 300)}\\n${a.link}`);\n\nif (!articles.length) return [];\nreturn [{ json: { articles: articles.join(\"\\n\\n\") } }];"
      },
      "id": "292cf932-28a7-4640-ac3f-63835463a159",
      "name": "Last 24 hours",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        600,
        0
      ]
    },
    {
      "parameters": {
        "promptType": "define",
        "text": "=Summarize today's most important news for a busy reader in 5 bullet points. Each bullet: one sentence plus the link. Skip duplicates and clickbait.\n\n{{ $json.articles }}"
      },
      "id": "292cf932-28a7-4640-ac3f-63835463a159",
      "name": "Summarize news",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "typeVersion": 1.5,
      "position": [
        900,
        0
      ]
    },
    {
      "parameters": {
        "model": {
          "__rl": true,
          "value": "claude-sonnet-5",
          "mode": "list"
        },
        "options": {}
      },
      "id": "292cf932-28a7-4640-ac3f-63835463a159",
      "name": "Claude model",
      "type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
      "typeVersion": 1.3,
      "position": [
        900,
        220
      ]
    },
    {
      "parameters": {
        "sendTo": "you@yourcompany.com",
        "subject": "=☕ Your news digest — {{ $now.toFormat('d LLL') }}",
        "emailType": "text",
        "message": "={{ $json.text }}",
        "options": {
          "appendAttribution": false
        }
      },
      "id": "292cf932-28a7-4640-ac3f-63835463a159",
      "name": "Email digest",
      "type": "n8n-nodes-base.gmail",
      "typeVersion": 2.1,
      "position": [
        1200,
        0
      ]
    }
  ],
  "connections": {
    "Every day 7:00": {
      "main": [
        [
          {
            "node": "Read news feed",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Read news feed": {
      "main": [
        [
          {
            "node": "Last 24 hours",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Last 24 hours": {
      "main": [
        [
          {
            "node": "Summarize news",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Summarize news": {
      "main": [
        [
          {
            "node": "Email digest",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Claude model": {
      "ai_languageModel": [
        [
          {
            "node": "Summarize news",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    }
  },
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "meta": {
    "templateCredsSetupCompleted": false
  },
  "tags": []
}

← افتحها في ساحة التجربة لتعديلها

نصائح

  • Google News يوفر RSS لأي بحث: news.google.com/rss/search?q=your+topic

أتمتات مشابهة