أفكار محتوى لأسبوع كامل من أخبار مجالك

كل أحد، يقرأ الذكاء الاصطناعي أخبار مجالك خلال الأسبوع وينشر 7 أفكار محتوى في قناة Slack.

سهل توفّر ~3 ساعة شهريًا المحتوى والتواصل الاجتماعيبواسطة فريق Flowngn

تعمل مع n8n · Make · Zapier

كيف تعمل

المشغّل: جدول زمني — كل أحد الساعة 9:00
  1. اقرأ خلاصة أخبار مجالك.
  2. احتفظ بعناوين آخر 7 أيام.
  3. يقترح الذكاء الاصطناعي 7 منشورات بجملة افتتاحية وشكل لكل منها.
  4. انشر الأفكار في قناة المحتوى.

المخطط

Sundays 9:00Schedule TriggerRRead industry newsRSS Read{ }This week's headlin…CodeSuggest post ideasBasic LLM ChainClaude modelAnthropic Chat Mo…SPost to content cha…Slack
مشغّل تطبيق كود ذكاء اصطناعي

الكود

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

This week's headlines · عقدة Code
// Keeps the last 7 days of articles (max 25) as one block of text for the AI.
const WEEK = 7 * 24 * 60 * 60 * 1000;

const articles = $input.all()
  .map((item) => item.json)
  .filter((a) => Date.now() - new Date(a.isoDate || a.pubDate).getTime() < WEEK)
  .slice(0, 25)
  .map((a, i) => `${i + 1}. ${a.title}\n${(a.contentSnippet || "").slice(0, 200)}\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
عرض الكود (184 سطر)
{
  "name": "أفكار محتوى لأسبوع كامل من أخبار مجالك (Flowngn)",
  "nodes": [
    {
      "parameters": {
        "content": "## أفكار محتوى لأسبوع كامل من أخبار مجالك\nكل أحد، يقرأ الذكاء الاصطناعي أخبار مجالك خلال الأسبوع وينشر 7 أفكار محتوى في قناة Slack.\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-43e7-a88a-78a03103d350",
      "name": "Setup notes",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -420,
        -60
      ]
    },
    {
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "cronExpression",
              "expression": "0 9 * * 0"
            }
          ]
        }
      },
      "id": "292cf932-28a7-43e7-a88a-78a03103d350",
      "name": "Sundays 9:00",
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.2,
      "position": [
        0,
        0
      ]
    },
    {
      "parameters": {
        "url": "https://news.google.com/rss/search?q=YOUR_INDUSTRY&hl=en",
        "options": {}
      },
      "id": "292cf932-28a7-43e7-a88a-78a03103d350",
      "name": "Read industry news",
      "type": "n8n-nodes-base.rssFeedRead",
      "typeVersion": 1.1,
      "position": [
        300,
        0
      ]
    },
    {
      "parameters": {
        "jsCode": "// Keeps the last 7 days of articles (max 25) as one block of text for the AI.\nconst WEEK = 7 * 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() < WEEK)\n  .slice(0, 25)\n  .map((a, i) => `${i + 1}. ${a.title}\\n${(a.contentSnippet || \"\").slice(0, 200)}\\n${a.link}`);\n\nif (!articles.length) return [];\nreturn [{ json: { articles: articles.join(\"\\n\\n\") } }];"
      },
      "id": "292cf932-28a7-43e7-a88a-78a03103d350",
      "name": "This week's headlines",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        600,
        0
      ]
    },
    {
      "parameters": {
        "promptType": "define",
        "text": "=You plan content for YOUR_BRAND. Audience: YOUR_AUDIENCE. Platforms: YOUR_PLATFORMS.\n\nFrom this week's industry news, suggest 7 post ideas, one per day. For each: the hook (first line), the format (carousel, reel, short post, poll), and which headline inspired it with its link. Mix educational, opinion and practical posts. Skip tragedies and politics.\n\n{{ $json.articles }}"
      },
      "id": "292cf932-28a7-43e7-a88a-78a03103d350",
      "name": "Suggest post ideas",
      "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-43e7-a88a-78a03103d350",
      "name": "Claude model",
      "type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
      "typeVersion": 1.3,
      "position": [
        900,
        220
      ]
    },
    {
      "parameters": {
        "select": "channel",
        "channelId": {
          "__rl": true,
          "value": "#content",
          "mode": "name"
        },
        "text": "=💡 Content ideas for this week\n\n{{ $json.text }}",
        "otherOptions": {}
      },
      "id": "292cf932-28a7-43e7-a88a-78a03103d350",
      "name": "Post to content channel",
      "type": "n8n-nodes-base.slack",
      "typeVersion": 2.2,
      "position": [
        1200,
        0
      ]
    }
  ],
  "connections": {
    "Sundays 9:00": {
      "main": [
        [
          {
            "node": "Read industry news",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Read industry news": {
      "main": [
        [
          {
            "node": "This week's headlines",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "This week's headlines": {
      "main": [
        [
          {
            "node": "Suggest post ideas",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Suggest post ideas": {
      "main": [
        [
          {
            "node": "Post to content channel",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Claude model": {
      "ai_languageModel": [
        [
          {
            "node": "Suggest post ideas",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    }
  },
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "meta": {
    "templateCredsSetupCompleted": false
  },
  "tags": []
}

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

نصائح

  • استخدم RSS أخبار Google بكلمة مجالك، أو RSS أي مدونة.

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