Telegram へ複数の RSS ソースからデータを取得
中級
これはBuilding Blocks分野の自動化ワークフローで、11個のノードを含みます。主にIf, Cron, Function, Telegram, RssFeedReadなどのノードを使用。 複数の RSS ソースからデータを Telegram に取得
前提条件
- •Telegram Bot Token
カテゴリー
ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
"nodes": [
{
"name": "RSSフィード読み取り",
"type": "n8n-nodes-base.rssFeedRead",
"position": [
420,
-20
],
"parameters": {
"url": "={{$node[\"SplitInBatches\"].json[\"url\"]}}"
},
"typeVersion": 1,
"id": "RSS--0"
},
{
"name": "バッチ分割",
"type": "n8n-nodes-base.splitInBatches",
"position": [
200,
-20
],
"parameters": {
"options": {},
"batchSize": 1
},
"typeVersion": 1,
"id": "--1"
},
{
"name": "Cron",
"type": "n8n-nodes-base.cron",
"position": [
-240,
-20
],
"parameters": {
"triggerTimes": {
"item": [
{
"mode": "everyX",
"unit": "minutes",
"value": 10
}
]
}
},
"typeVersion": 1,
"id": "Cron-2"
},
{
"name": "新規RSSのみ取得",
"type": "n8n-nodes-base.function",
"position": [
640,
-20
],
"parameters": {
"functionCode": "const staticData = getWorkflowStaticData('global');\nconst newRSSIds = items.map(item => item.json[\"isoDate\"]);\nconst oldRSSIds = staticData.oldRSSIds; \n\nif (!oldRSSIds) {\n staticData.oldRSSIds = newRSSIds;\n return items;\n}\n\n\nconst actualNewRSSIds = newRSSIds.filter((id) => !oldRSSIds.includes(id));\nconst actualNewRSS = items.filter((data) => actualNewRSSIds.includes(data.json['isoDate']));\nstaticData.oldRSSIds = [...actualNewRSSIds, ...oldRSSIds];\n\nreturn actualNewRSS;\n"
},
"typeVersion": 1,
"id": "-RSS--3"
},
{
"name": "Telegram_IT",
"type": "n8n-nodes-base.telegram",
"position": [
1220,
460
],
"parameters": {
"text": "={{$json[\"title\"]}}\n{{$json[\"link\"]}}",
"chatId": "TelegramID",
"additionalFields": {}
},
"credentials": {
"telegramApi": {
"id": "2",
"name": "IT_RSS"
}
},
"typeVersion": 1,
"id": "Telegram_IT-4"
},
{
"name": "Telegram_Security",
"type": "n8n-nodes-base.telegram",
"position": [
1220,
220
],
"parameters": {
"text": "={{$json[\"title\"]}}\n{{$json[\"link\"]}}",
"chatId": "TelegramID",
"additionalFields": {}
},
"credentials": {
"telegramApi": {
"id": "4",
"name": "Security_RSS"
}
},
"typeVersion": 1,
"id": "Telegram_Security-5"
},
{
"name": "RSSソース",
"type": "n8n-nodes-base.function",
"position": [
-20,
-20
],
"parameters": {
"functionCode": "return [\n {\n json: {\n url: 'https://feeds.feedburner.com/UnikosHardware',\n }\n },\n {\n json: {\n url: 'http://www.ithome.com.tw/rss.php',\n }\n },\n {\n json: {\n url: 'http://feeds.feedburner.com/playpc',\n }\n },\n {\n json: {\n url: 'https://lab.ocf.tw/feed/',\n }\n },\n {\n json: {\n url: 'https://techcommunity.microsoft.com/plugins/custom/microsoft/o365/custom-blog-rss?tid=3754543230341459569&board=microsoft_365blog',\n }\n }\n];"
},
"typeVersion": 1,
"id": "RSS--6"
},
{
"name": "Telegram_M365",
"type": "n8n-nodes-base.telegram",
"position": [
1220,
-40
],
"parameters": {
"text": "={{$json[\"title\"]}}\n{{$json[\"link\"]}}",
"chatId": "TelegramID",
"additionalFields": {}
},
"credentials": {
"telegramApi": {
"id": "5",
"name": "M365_RSS"
}
},
"typeVersion": 1,
"id": "Telegram_M365-7"
},
{
"name": "IF-2",
"type": "n8n-nodes-base.if",
"position": [
880,
240
],
"parameters": {
"conditions": {
"string": [
{
"value1": "={{$json[\"title\"]}}",
"value2": "資安|資訊安全|安全|外洩|監控|威脅|漏洞|封鎖|修補|攻擊|入侵|個資|隱私|私密|騙|社交工程|釣魚|駭|Security|security|Secure|secure",
"operation": "regex"
}
]
},
"combineOperation": "any"
},
"typeVersion": 1,
"id": "IF-2-8"
},
{
"name": "IF-1",
"type": "n8n-nodes-base.if",
"position": [
880,
-20
],
"parameters": {
"conditions": {
"string": [
{
"value1": "={{$json[\"link\"]}}",
"value2": "techcommunity.microsoft.com",
"operation": "contains"
}
]
}
},
"typeVersion": 1,
"id": "IF-1-9"
},
{
"name": "クリア関数",
"type": "n8n-nodes-base.function",
"position": [
-20,
-180
],
"parameters": {
"functionCode": "// Get the global workflow static data\nconst staticData = getWorkflowStaticData('global');\n// Update its data\nstaticData.oldRSSIds = new Date().getTime();\n// Delete data\ndelete staticData.oldRSSIds;\n\nreturn [\n {\n json: {}\n }\n]"
},
"typeVersion": 1,
"id": "--10"
}
],
"connections": {
"Cron-2": {
"main": [
[
{
"node": "RSS--6",
"type": "main",
"index": 0
}
]
]
},
"IF-1-9": {
"main": [
[
{
"node": "Telegram_M365-7",
"type": "main",
"index": 0
}
],
[
{
"node": "IF-2-8",
"type": "main",
"index": 0
}
]
]
},
"IF-2-8": {
"main": [
[
{
"node": "Telegram_Security-5",
"type": "main",
"index": 0
}
],
[
{
"node": "Telegram_IT-4",
"type": "main",
"index": 0
}
]
]
},
"RSS--6": {
"main": [
[
{
"node": "--1",
"type": "main",
"index": 0
}
]
]
},
"RSS--0": {
"main": [
[
{
"node": "--1",
"type": "main",
"index": 0
},
{
"node": "-RSS--3",
"type": "main",
"index": 0
}
]
]
},
"--1": {
"main": [
[
{
"node": "RSS--0",
"type": "main",
"index": 0
}
]
]
},
"-RSS--3": {
"main": [
[
{
"node": "IF-1-9",
"type": "main",
"index": 0
}
]
]
}
}
}よくある質問
このワークフローの使い方は?
上記のJSON設定コードをコピーし、n8nインスタンスで新しいワークフローを作成して「JSONからインポート」を選択、設定を貼り付けて認証情報を必要に応じて変更してください。
このワークフローはどんな場面に適していますか?
中級 - ビルディングブロック
有料ですか?
このワークフローは完全無料です。ただし、ワークフローで使用するサードパーティサービス(OpenAI APIなど)は別途料金が発生する場合があります。
関連ワークフロー
Notion データベースに空白ページをアーカイブ
Notion データベース内の空のページをアーカイブ
If
Cron
Notion
+
If
Cron
Notion
10 ノードJonathan
ビルディングブロック
n8n_check
RSS、メール、アンケートを使ってn8nの新版がリリースされたら自動通知
If
Cron
Aws Ses
+
If
Cron
Aws Ses
7 ノードMiquel Colomer
エンジニアリング
GPT-4o、WordPress、LinkedInを使ってRSSから自動でブログ記事を投稿
GPT-4o、WordPress、LinkedInを使ってRSSコンテンツを自動のにブログ記事へ公開
If
Set
Code
+
If
Set
Code
40 ノードImmanuel
人工知能
エレガントなコンテンツ起動 — RSS → Notion(n8n)
RSS フィードを日次のコンテンツアイデアへ整理し、メールで送信。Notion および Telegram オプションも対応
If
Set
Cron
+
If
Set
Cron
20 ノードShelly-Ann Davy
コンテンツ作成
Telegram フォーマット済みテキスト出力
LLM出力を豊富なテキストTelegramメッセージに変換――自動のなメディア処理とスマートチャンキング
If
Code
Limit
+
If
Code
Limit
19 ノードDmitry Mikheev
その他
[テンプレート] AIペットショップ v8
AIペットショップアシスタント - GPT-4o、Googleカレンダー、WhatsApp/Instagram/Facebookを統合
If
N8n
Set
+
If
N8n
Set
244 ノードAmanda Benks
営業