特定のキーワードについてニュース記事を要約して Slack に投稿する

中級

これは自動化ワークフローで、12個のノードを含みます。主にSet, Slack, HackerNews, Agent, ScheduleTriggerなどのノードを使用。 OpenRouter を使って Hacker News から AI 要約を生成して Slack へ送信

前提条件
  • Slack Bot Token または Webhook URL

カテゴリー

-
ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
  "id": "HLup1R1WiyVLVn5s",
  "meta": {
    "instanceId": "7036f994fcf077f382ea0edc134b49e1ce0556fa914b12051651961e7fbc3600"
  },
  "name": "Summarize news articles for specific keywords and post to Slack",
  "tags": [
    {
      "id": "PDXCRJntY9S84S1b",
      "name": "News",
      "createdAt": "2025-10-16T10:59:57.579Z",
      "updatedAt": "2025-10-16T10:59:57.579Z"
    },
    {
      "id": "OhBk3bnGEbNlHLVm",
      "name": "AI",
      "createdAt": "2025-10-16T10:59:57.640Z",
      "updatedAt": "2025-10-16T10:59:57.640Z"
    },
    {
      "id": "K2HrF2UlgnMFO8mJ",
      "name": "Slack",
      "createdAt": "2025-10-16T10:59:57.618Z",
      "updatedAt": "2025-10-16T10:59:57.618Z"
    },
    {
      "id": "cL27z0iZWgjKzz3B",
      "name": "Automation",
      "createdAt": "2025-10-16T10:59:57.660Z",
      "updatedAt": "2025-10-16T10:59:57.660Z"
    }
  ],
  "nodes": [
    {
      "id": "9fe57470-dc45-4e2c-9777-27d9b7bf0db5",
      "name": "毎日9時にトリガー",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        0,
        0
      ],
      "parameters": {
        "rule": {
          "interval": [
            {}
          ]
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "c97876de-b1f6-4b7c-a4af-506bd01c5936",
      "name": "Slack に要約を送信",
      "type": "n8n-nodes-base.slack",
      "position": [
        1248,
        0
      ],
      "webhookId": "12acd924-f67f-4f60-902b-c627eea29b2c",
      "parameters": {
        "text": "={{ $('Format Message for Slack').item.json.slackMessage }}",
        "select": "channel",
        "channelId": {
          "__rl": true,
          "mode": "list",
          "value": "C09L12N8F45",
          "cachedResultName": "test"
        },
        "otherOptions": {},
        "authentication": "oAuth2"
      },
      "typeVersion": 2
    },
    {
      "id": "31b5c5b7-4f78-4d5a-98fd-ea125f7ee365",
      "name": "Slack 向けメッセージフォーマット",
      "type": "n8n-nodes-base.set",
      "position": [
        1024,
        0
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "e9b2a1c3-4d5e-4f6a-8b7c-9d8e1a2b3c4d",
              "name": "slackMessage",
              "type": "string",
              "value": "={{ `*${$json.title}*\\n\\n*AI Summary:*\\n${$json.output}` }}"
            }
          ]
        },
        "includeOtherFields": true
      },
      "typeVersion": 3.4
    },
    {
      "id": "e527a3f7-5adf-4a71-a59b-afce5aaf3ba9",
      "name": "AIで記事を要約",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        672,
        0
      ],
      "parameters": {
        "text": "={{ $('Get many items').item.json.url }}",
        "options": {
          "systemMessage": "You are a highly skilled news summarization AI. Your task is to analyze the provided news article snippet and create a concise, easy-to-understand summary. The summary must be in Japanese, presented as 3 bullet points. Focus on the key information and maintain a neutral, professional tone. Do not add any introductory phrases.",
          "passthroughBinaryImages": true
        },
        "promptType": "define"
      },
      "typeVersion": 2.2
    },
    {
      "id": "1f106c8c-0e3d-4baf-aba5-d19c0f37926a",
      "name": "OpenRouter Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        672,
        224
      ],
      "parameters": {
        "options": {}
      },
      "typeVersion": 1
    },
    {
      "id": "3cd48b0f-cfdc-47bc-8b80-7df2922792a1",
      "name": "複数アイテムを取得",
      "type": "n8n-nodes-base.hackerNews",
      "position": [
        448,
        0
      ],
      "parameters": {
        "limit": "={{ 3 }}",
        "resource": "all",
        "additionalFields": {
          "keyword": "={{ $json.keywords[0] }}"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "db0d771c-eaf5-4845-8168-50b02d3fc1bc",
      "name": "設定を構成",
      "type": "n8n-nodes-base.set",
      "position": [
        224,
        0
      ],
      "parameters": {
        "options": {
          "dotNotation": true
        },
        "assignments": {
          "assignments": [
            {
              "id": "f1a2b3c4-d5e6-4f7a-8b9c-0d1e2f3a4b5c",
              "name": "keywords",
              "type": "json",
              "value": "={{ ['AI'] }}"
            },
            {
              "id": "a2b3c4d5-e6f7-4a8b-9c0d-1e2f3a4b5c6d",
              "name": "slack_channel",
              "type": "string",
              "value": "news-updates"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "65bf5c33-71d4-481f-9cef-d55ad33e46ba",
      "name": "付箋",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -400,
        -128
      ],
      "parameters": {
        "height": 384,
        "content": "## Summarize news articles for specific keywords and post to Slack\n\nThis workflow automatically fetches the latest news articles from Hacker News based on your specified keywords, uses an AI model to generate a concise summary for each, and then posts these summaries to a designated Slack channel."
      },
      "typeVersion": 1
    },
    {
      "id": "efe5b1d7-de72-4783-b111-52f4d900941a",
      "name": "付箋1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -64,
        -256
      ],
      "parameters": {
        "color": 7,
        "height": 224,
        "content": "## Set Your Schedule \n\n### Content: \nThis workflow is set to run daily at 9 AM by default. Click on the 'Trigger Daily at 9 AM' node to adjust the schedule to your preference."
      },
      "typeVersion": 1
    },
    {
      "id": "1f8a5f0c-20e3-4fe1-aa90-98d0ed90758a",
      "name": "付箋2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        144,
        208
      ],
      "parameters": {
        "color": 7,
        "height": 352,
        "content": " ## Configure Keywords & Slack Channel\n\n - keywords: Change 'AI' to any topic you want to track. To track multiple topics, change it to ['keyword1', 'keyword2'].\n\n - slack_channel: Replace 'news-updates' with the name of the Slack channel where you want the summaries posted."
      },
      "typeVersion": 1
    },
    {
      "id": "a51a48bd-9788-4204-8c67-d5e4acbab4da",
      "name": "付箋3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        800,
        288
      ],
      "parameters": {
        "color": 7,
        "width": 304,
        "height": 256,
        "content": "## Connect Your AI Model\n\n - In the 'Credential' field, select or create your OpenRouter API key credential.\n\n - You can easily swap this for a different provider by deleting the OpenRouter node and adding your preferred chat model."
      },
      "typeVersion": 1
    },
    {
      "id": "351403d1-7240-41da-bb60-0b3f2bc348c6",
      "name": "付箋4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1168,
        -208
      ],
      "parameters": {
        "color": 7,
        "content": "## Connect Slack\n\n - Create new credentials using OAuth2 and connect your Slack account."
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "639bdd62-3525-472c-9458-7897f99033cf",
  "connections": {
    "3cd48b0f-cfdc-47bc-8b80-7df2922792a1": {
      "main": [
        [
          {
            "node": "e527a3f7-5adf-4a71-a59b-afce5aaf3ba9",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "1f106c8c-0e3d-4baf-aba5-d19c0f37926a": {
      "ai_languageModel": [
        [
          {
            "node": "e527a3f7-5adf-4a71-a59b-afce5aaf3ba9",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "9fe57470-dc45-4e2c-9777-27d9b7bf0db5": {
      "main": [
        [
          {
            "node": "db0d771c-eaf5-4845-8168-50b02d3fc1bc",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "db0d771c-eaf5-4845-8168-50b02d3fc1bc": {
      "main": [
        [
          {
            "node": "3cd48b0f-cfdc-47bc-8b80-7df2922792a1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "31b5c5b7-4f78-4d5a-98fd-ea125f7ee365": {
      "main": [
        [
          {
            "node": "c97876de-b1f6-4b7c-a4af-506bd01c5936",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "e527a3f7-5adf-4a71-a59b-afce5aaf3ba9": {
      "main": [
        [
          {
            "node": "31b5c5b7-4f78-4d5a-98fd-ea125f7ee365",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
よくある質問

このワークフローの使い方は?

上記のJSON設定コードをコピーし、n8nインスタンスで新しいワークフローを作成して「JSONからインポート」を選択、設定を貼り付けて認証情報を必要に応じて変更してください。

このワークフローはどんな場面に適していますか?

中級

有料ですか?

このワークフローは完全無料です。ただし、ワークフローで使用するサードパーティサービス(OpenAI APIなど)は別途料金が発生する場合があります。

ワークフロー情報
難易度
中級
ノード数12
カテゴリー-
ノードタイプ7
難易度説明

経験者向け、6-15ノードの中程度の複雑さのワークフロー

外部リンク
n8n.ioで表示

このワークフローを共有

カテゴリー

カテゴリー: 34