n8nとAIを使って毎日の金銀市場ニュースを要約する - 自動メールレポート
これはMarket Research, AI Summarization分野の自動化ワークフローで、9個のノードを含みます。主にSet, Html, Wait, EmailSend, HttpRequestなどのノードを使用。 Ollama LLM による毎日の金融ニュースのダイジェスト - 自動電子メールレポート
- •ターゲットAPIの認証情報が必要な場合あり
{
"id": "nPoiePylbYZrH7kn",
"meta": {
"instanceId": "dd69efaf8212c74ad206700d104739d3329588a6f3f8381a46a481f34c9cc281",
"templateCredsSetupCompleted": true
},
"name": "Summarize Daily Financial News Using n8n & AI – Auto Email Report",
"tags": [],
"nodes": [
{
"id": "de6a3f50-13db-4869-96c4-00efb1633b0d",
"name": "毎日スケジュールトリガー",
"type": "n8n-nodes-base.scheduleTrigger",
"position": [
0,
240
],
"parameters": {
"rule": {
"interval": [
{
"triggerAtHour": 7
}
]
}
},
"typeVersion": 1.2
},
{
"id": "7e60e85a-8357-4fcb-a5af-37f47caa23dc",
"name": "金融ニュースWebページ取得",
"type": "n8n-nodes-base.httpRequest",
"notes": "Url : https://www.ft.com/",
"position": [
220,
240
],
"parameters": {
"url": "https://www.ft.com/",
"options": {
"timeout": 10000
}
},
"notesInFlow": true,
"typeVersion": 4.2
},
{
"id": "1e4d85bf-311c-4f61-972b-bfac77d085e0",
"name": "ページ読み込み確保のための遅延",
"type": "n8n-nodes-base.wait",
"position": [
440,
240
],
"webhookId": "adff7750-f9b0-4796-915d-9c28dcc878b0",
"parameters": {},
"typeVersion": 1.1
},
{
"id": "819d8425-cc56-4277-9b7b-c5de0794d2b0",
"name": "ニュース見出しと本文抽出",
"type": "n8n-nodes-base.html",
"notes": "Extract selected headlines, editor's picks, spotlight etc.",
"position": [
660,
240
],
"parameters": {
"options": {
"cleanUpText": true
},
"operation": "extractHtmlContent",
"extractionValues": {
"values": [
{
"key": "Headline #1",
"cssSelector": "#site-content > div:nth-child(1) > section > div > div > div.layout-desktop__grid.layout-desktop__grid--span4.layout-desktop__grid--column-start-1.layout-desktop__grid--row-start-1.layout-desktop__grid--with-border.layout--default > div > div > div > div.story-group-stacked__primary-story > div > div > div > div > div.primary-story__teaser"
},
{
"key": "Headline #2",
"cssSelector": "#site-content > div:nth-child(1) > section > div > div > div.layout-desktop__grid.layout-desktop__grid--span6.layout-desktop__grid--column-start-5.layout-desktop__grid--row-start-1.layout-desktop__grid--with-border.layout--default > div > div > div > div > div > div.story-group__article.story-group__article--featured > div > div.featured-story-content > div.headline.js-teaser-headline.headline--scale-5.headline--color-black > a > span"
},
{
"key": "Editor's Picks",
"cssSelector": "#site-content > div:nth-child(1) > section > div > div > div.layout-desktop__grid.layout-desktop__grid--span2.layout-desktop__grid--column-start-11.layout-desktop__grid--row-start-1.layout--default > div"
},
{
"key": "Top Stories",
"cssSelector": "#site-content > div:nth-child(3) > section > div",
"skipSelectors": "h2"
},
{
"key": "Spotlight",
"cssSelector": "#site-content > div:nth-child(6) > section",
"skipSelectors": "h2"
},
{
"key": "Various News",
"cssSelector": "#site-content > div:nth-child(8) > section",
"skipSelectors": "h2"
},
{
"key": "Europe News",
"cssSelector": "#site-content > div:nth-child(13) > section",
"skipSelectors": "h2"
}
]
}
},
"notesInFlow": true,
"typeVersion": 1.2
},
{
"id": "9e225c3b-1732-4d22-8a43-cab26c816865",
"name": "抽出ニュースデータのクリーニング",
"type": "n8n-nodes-base.set",
"position": [
880,
240
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "5412a5ee-dbbe-4fcc-98a5-6fafc37b94d1",
"name": "All data",
"type": "string",
"value": "=News :\n{{ $json['Headline #1'] }}\n\n\n\nFinancial news :\n\n{{ $('Extract News Headlines & Text\t').item.json['Headline #1'] }};\n\n{{ $('Extract News Headlines & Text\t').item.json['Headline #2'] }};\n\n{{ $('Extract News Headlines & Text\t').item.json['Editor\\'s Picks'] }};\n\n{{ $('Extract News Headlines & Text\t').item.json['Top Stories'] }};\n\n{{ $('Extract News Headlines & Text\t').item.json.Spotlight }};\n\n{{ $('Extract News Headlines & Text\t').item.json['Various News'] }};\n\n{{ $('Extract News Headlines & Text\t').item.json['Europe News'] }};\n\n"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "b6a11f10-2dc4-45b9-a9fd-ba4245fa28ca",
"name": "AI金融ニュース要約ツール",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
1100,
240
],
"parameters": {
"text": "=Summarise this news :\n\n{{ $json['All data'] }}",
"options": {
"systemMessage": "You are an AI financial analyst. Your role is to read, understand, and summarize key financial news from today. The goal is to provide investors with a clear and concise market overview to support better investment decisions.\n\n\nInvestor Outlook\nToday’s news points to [bullish/bearish/neutral] sentiment. Watch for [economic event/earnings report] tomorrow, which could influence market direction.\n"
},
"promptType": "define"
},
"typeVersion": 1.6
},
{
"id": "04f50544-39c1-456c-ba8e-3150ae902adb",
"name": "毎日の金融要約メール送信",
"type": "n8n-nodes-base.emailSend",
"position": [
1476,
240
],
"webhookId": "5ca3faf6-d857-4d58-8676-90e392fa9cc2",
"parameters": {
"text": "={{ $json.output }}",
"options": {},
"subject": "Today's News",
"toEmail": "abc@gmail.com",
"fromEmail": "xyz@gmail.com",
"emailFormat": "text"
},
"credentials": {
"smtp": {
"id": "3QSx1pWoS0BZcK4c",
"name": "SMTP account"
}
},
"typeVersion": 2.1
},
{
"id": "2f4dab06-5786-4ab9-8a54-0b2bc56f6c22",
"name": "LLMチャットモデル",
"type": "@n8n/n8n-nodes-langchain.lmChatOllama",
"position": [
1188,
460
],
"parameters": {
"model": "llama3.2-16000:latest",
"options": {}
},
"credentials": {
"ollamaApi": {
"id": "h9CEBFmYALm3FvZf",
"name": "Ollama account"
}
},
"typeVersion": 1
},
{
"id": "3ac33bfa-1a93-495f-8f72-e10aba74543f",
"name": "付箋ノート",
"type": "n8n-nodes-base.stickyNote",
"position": [
580,
-180
],
"parameters": {
"color": 5,
"width": 320,
"height": 320,
"content": "📌 **Try It Out!**\n\nThis workflow auto-fetches top financial headlines, cleans the content, and uses AI to summarize it into a short investor-friendly email.\n\n🧠 Ideal for: Market analysts, finance teams, or daily newsletters.\n\n**Powered by:** n8n + LLM (e.g., GPT-4 or Gemini) + Email Node.\n"
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "bf9bf774-b70b-4fcf-9265-0ad47885effd",
"connections": {
"2f4dab06-5786-4ab9-8a54-0b2bc56f6c22": {
"ai_languageModel": [
[
{
"node": "b6a11f10-2dc4-45b9-a9fd-ba4245fa28ca",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"de6a3f50-13db-4869-96c4-00efb1633b0d": {
"main": [
[
{
"node": "7e60e85a-8357-4fcb-a5af-37f47caa23dc",
"type": "main",
"index": 0
}
]
]
},
"9e225c3b-1732-4d22-8a43-cab26c816865": {
"main": [
[
{
"node": "b6a11f10-2dc4-45b9-a9fd-ba4245fa28ca",
"type": "main",
"index": 0
}
]
]
},
"1e4d85bf-311c-4f61-972b-bfac77d085e0": {
"main": [
[
{
"node": "819d8425-cc56-4277-9b7b-c5de0794d2b0",
"type": "main",
"index": 0
}
]
]
},
"b6a11f10-2dc4-45b9-a9fd-ba4245fa28ca": {
"main": [
[
{
"node": "04f50544-39c1-456c-ba8e-3150ae902adb",
"type": "main",
"index": 0
}
]
]
},
"7e60e85a-8357-4fcb-a5af-37f47caa23dc": {
"main": [
[
{
"node": "1e4d85bf-311c-4f61-972b-bfac77d085e0",
"type": "main",
"index": 0
}
]
]
},
"819d8425-cc56-4277-9b7b-c5de0794d2b0": {
"main": [
[
{
"node": "9e225c3b-1732-4d22-8a43-cab26c816865",
"type": "main",
"index": 0
}
]
]
}
}
}このワークフローの使い方は?
上記のJSON設定コードをコピーし、n8nインスタンスで新しいワークフローを作成して「JSONからインポート」を選択、設定を貼り付けて認証情報を必要に応じて変更してください。
このワークフローはどんな場面に適していますか?
中級 - 市場調査, AI要約
有料ですか?
このワークフローは完全無料です。ただし、ワークフローで使用するサードパーティサービス(OpenAI APIなど)は別途料金が発生する場合があります。
関連ワークフロー
Oneclick AI Squad
@oneclick-aiThe AI Squad Initiative is a pioneering effort to build, automate and scale AI-powered workflows using n8n.io. Our mission is to help individuals and businesses integrate AI agents seamlessly into their daily operations from automating tasks and enhancing productivity to creating innovative, intelligent solutions. We design modular, reusable AI workflow templates that empower creators, developers and teams to supercharge their automation with minimal effort and maximum impact.
このワークフローを共有