动态投资组合顾问股市新闻
中级
这是一个Crypto Trading, AI Summarization领域的自动化工作流,包含 11 个节点。主要使用 Telegram, PerplexityTool, Agent, ScheduleTrigger, GoogleSheetsTool 等节点。 使用 Perplexity AI、GPT-4 和 Google Sheets 进行股票投资组合分析
前置要求
- •Telegram Bot Token
- •Google Sheets API 凭证
- •OpenAI API Key
使用的节点 (11)
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"id": "OKWoAjBT0s4uiubA",
"meta": {
"instanceId": "1c7b08fed4406d546caf4a44e8b942ca317e7e207bb9a5701955a1a6e1ce1843",
"templateCredsSetupCompleted": true
},
"name": "Dynamic Portfolio Advisor Stock Market News",
"tags": [],
"nodes": [
{
"id": "75c3c99c-73ee-4545-aeeb-1bd47e0af8b9",
"name": "定时触发器",
"type": "n8n-nodes-base.scheduleTrigger",
"position": [
-1240,
260
],
"parameters": {
"rule": {
"interval": [
{
"triggerAtHour": 10
}
]
}
},
"typeVersion": 1.2
},
{
"id": "5dafae6c-8951-40cd-9633-92c1284a66aa",
"name": "OpenAI Chat Model",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
-980,
480
],
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "gpt-4.1",
"cachedResultName": "gpt-4.1"
},
"options": {}
},
"credentials": {
"openAiApi": {
"id": "",
"name": "YOUR_OPENAIAPI_CREDENTIAL"
}
},
"typeVersion": 1.2
},
{
"id": "09c10f7f-f9a1-4ef6-a1a4-014ffc06e4ed",
"name": "Simple Memory",
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
"position": [
-820,
480
],
"parameters": {
"sessionKey": "={{ $workflow.id }}",
"sessionIdType": "customKey"
},
"typeVersion": 1.3
},
{
"id": "d905d541-fc69-4a2b-b31a-ac62a80f3978",
"name": "Portfolio Holdings",
"type": "n8n-nodes-base.googleSheetsTool",
"position": [
-640,
480
],
"parameters": {
"options": {}
},
"credentials": {
"googleSheetsOAuth2Api": {
"id": "",
"name": "YOUR_GOOGLESHEETSOAUTH2API_CREDENTIAL"
}
},
"typeVersion": 4.6
},
{
"id": "f6e4c996-7c81-4662-aaba-f219cc78971c",
"name": "Stock Market News & Analytics Agent",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
-860,
260
],
"parameters": {
"text": "=Fetch the summary of the stock market news today and how it affected my portolio. Make sure that they are the most recent news, take reference to the date today: {{ $json['Readable date'] }} by using the Perplexity Tool Search. Also give some recommendations. Start the response with \"Today is {{ $json['Readable date'] }}...\"",
"options": {
"systemMessage": "You are a market research assistant responsible for generating a concise yet insightful Daily Stock Market Intelligence Briefing. Your audience is an active investor with assets listed in the Portfolio Holdings Google Sheet\n\n#Tool\nUse Perplexity as the web search tool for your research.\nUse the Portfolio Holdings Google Sheet Tool to refer to current holdings of the user in order to give the most relevant output\n\nEach day, your job is to:\n\n📰 1. Curate Key Market Headlines (Concise Summary Format)\nInclude 5–7 top headlines affecting the U.S. stock market. These can include:\n\nMacroeconomic indicators (CPI, interest rates, job reports, Fed decisions)\n\nMajor geopolitical developments\n\nSignificant corporate earnings\n\nFinancial sector news impacting banks (e.g., regulation, stress tests, default risks)\n\n📈 2. Highlight Noteworthy Investing or Trading Opportunities\nIdentify any:\n\nUndervalued assets based on sentiment/news\n\nBreakouts or technical momentum setups\n\nNew AI or tech developments likely to benefit the assets listed\n\nBanking trends such as earnings strength, credit risk\n\nInclude:\n\nWhat the opportunity is\n\nWhy it matters (news or trend context)\n\nTime sensitivity (short-term/medium-term)\n\n⚠️ 3. Outline Key Risks or Headwinds\nInclude:\n\nMacro risks (e.g., rate hikes, inflationary concerns, China/US tensions)\n\nSector-specific concerns (e.g., chip supply for NVDA, ad spending for GOOGL/AMZN)\n\nBlack swan or tail risks (e.g., systemic banking risk, debt ceiling)\n\n💡 4. Provide Actionable Trade Suggestions\nBased on the analysis above, suggest 1–3 potential trade actions, such as:\n\nBuy/sell/hold recommendations\n\nRebalancing ideas (e.g., shifting from tech to gold if macro risk rises)\n\nThematic ETF ideas (e.g., AI ETFs, inverse financials, S&P sector rotations)\n\nMention if the recommendation is tactical (short-term) or strategic (long-term)\n\nEach suggestion should include:\n\nThe reasoning (based on news/macro)\n\nSuggested time horizon\n\nRisk caveat or alternate view\n\n"
},
"promptType": "define"
},
"typeVersion": 2
},
{
"id": "58f0c883-d2ca-414b-9b37-74557f8154d3",
"name": "Perplexity",
"type": "n8n-nodes-base.perplexityTool",
"position": [
-520,
480
],
"parameters": {
"model": "sonar-pro",
"options": {},
"messages": {
"message": [
{
"content": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('message0_Text', ``, 'string') }}"
}
]
},
"simplify": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Simplify_Output', ``, 'boolean') }}",
"requestOptions": {}
},
"credentials": {
"perplexityApi": {
"id": "",
"name": "YOUR_PERPLEXITYAPI_CREDENTIAL"
}
},
"typeVersion": 1
},
{
"id": "d93db04b-0565-4c13-a1b2-3c27552423f4",
"name": "Telegram",
"type": "n8n-nodes-base.telegram",
"position": [
-280,
260
],
"webhookId": "",
"parameters": {
"text": "={{ $json.output }}",
"chatId": "\"Insert Chat ID\"",
"additionalFields": {}
},
"credentials": {
"telegramApi": {
"id": "",
"name": "YOUR_TELEGRAMAPI_CREDENTIAL"
}
},
"typeVersion": 1.2
},
{
"id": "907ac137-4c28-477f-a5cf-517552ca80ff",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1300,
140
],
"parameters": {
"height": 580,
"content": "Scheduled Trigger"
},
"typeVersion": 1
},
{
"id": "d0ee23a3-6e55-4a10-bf5c-ff0d7a234628",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1040,
140
],
"parameters": {
"color": 4,
"width": 660,
"height": 580,
"content": "Stock Market Fetch & Portfolio Analysis"
},
"typeVersion": 1
},
{
"id": "8baf92d2-c31c-4e06-8845-5a1fe8c655e4",
"name": "便签 2",
"type": "n8n-nodes-base.stickyNote",
"position": [
-360,
140
],
"parameters": {
"color": 5,
"width": 300,
"height": 580,
"content": "Telegram 输出"
},
"typeVersion": 1
},
{
"id": "461b4d07-8f96-44ca-b5e9-3b49eb77e25d",
"name": "便签 3",
"type": "n8n-nodes-base.stickyNote",
"position": [
-2120,
140
],
"parameters": {
"color": 6,
"width": 800,
"height": 1200,
"content": "📊 Dynamic Portfolio Advisor – Daily Stock Market Intelligence with Google Sheets\nDescription:\nThis advanced AI-powered n8n workflow automatically delivers a daily market intelligence briefing tailored to your stock holdings portfolio stored in Google Sheets. It uses real-time data from Perplexity AI, combines it with your portfolio, and generates personalized insights, risk alerts, and trade suggestions — all delivered via Telegram or any messaging app of your choice.\n\nFor step-by-step build of workflows like this, check out:\nhttps://www.youtube.com/@Automatewithmarc\n\n⚙️ How It Works:\n🕒 Daily Trigger\n Starts every day at a scheduled time (default: 10 AM) to fetch the most recent market data.\n\n📈 Holdings Fetch\n Reads your current portfolio dynamically from Google Sheets — no hardcoding required.\n\n🧠 AI Analysis Agent\n Combines:\n\nMarket headlines\n\nCompany-specific developments\n\nMacroeconomic updates\n And analyzes how they might affect your holdings.\n\n🔍 Perplexity Web Research Tool\n Finds and summarizes the most relevant stock market news from the past 24 hours.\n\n💬 Telegram Delivery\n Sends a customized summary of:\n\nMarket highlights\n\nAsset-specific impacts\n\nOpportunities and risks\n\nActionable trade ideas (buy/sell/hold)\n\n🛠️ Tools & Integrations:\nGoogle Sheets (live holdings feed)\n\nPerplexity AI (real-time market research)\n\nOpenAI GPT (financial summarization)\n\nTelegram (output, customizable)\n\n💡 Use Cases:\nPortfolio-aware market intelligence\n\nAutomated investor briefing assistant\n\nRisk alert + opportunity scanner\n\nDaily trade idea generator\n\nFinance bloggers or equity analysts streamlining prep work\n\n📍Note: You can easily replace Telegram with Slack, Email, Notion, or any output tool supported by n8n.\n\nThis template is perfect for active investors, financial advisors, or automation-savvy traders who want to turn AI and data into actionable daily signals."
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "d3b6b8d4-8fae-4f71-a0fb-757fe433b3ab",
"connections": {
"Perplexity": {
"ai_tool": [
[
{
"node": "Stock Market News & Analytics Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Simple Memory": {
"ai_memory": [
[
{
"node": "Stock Market News & Analytics Agent",
"type": "ai_memory",
"index": 0
}
]
]
},
"Schedule Trigger": {
"main": [
[
{
"node": "Stock Market News & Analytics Agent",
"type": "main",
"index": 0
}
]
]
},
"OpenAI Chat Model": {
"ai_languageModel": [
[
{
"node": "Stock Market News & Analytics Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Portfolio Holdings": {
"ai_tool": [
[
{
"node": "Stock Market News & Analytics Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Stock Market News & Analytics Agent": {
"main": [
[
{
"node": "Telegram",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
中级 - 加密货币交易, AI 摘要总结
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
Grok-4 股票投资分析师
使用 Grok-4 和 Perplexity 的个性化股票投资组合分析与推荐
Gmail
Perplexity Tool
Agent
+5
14 节点Automate With Marc
加密货币交易
使用Perplexity Sonar Pro到Gmail的AI新闻研究代理
基于Perplexity Pro、GPT格式和Gmail发送的每日AI新闻摘要
Gmail
Perplexity
Agent
+4
11 节点Automate With Marc
市场调研
组合式图像转视频助手
通过 Telegram、GPT-4.1 和 Seedance/Veo3 集成从图片生成视频
If
Wait
Telegram
+10
22 节点Automate With Marc
内容创作
GPT-5 RAG客户支持代理
使用GPT-5、Telegram和Pinecone构建客户支持RAG代理
Telegram
Agent
Telegram Trigger
+5
11 节点Automate With Marc
客服机器人
我的工作流
使用GPT4-mini和Google Docs知识库创建Telegram客户支持机器人
Telegram
Google Docs Tool
Agent
+4
10 节点Automate With Marc
客户支持
电子邮件新闻MCP模板
邮件草拟与新闻研究助手 - 集成OpenAI、Gmail、Tavily和Perplexity
Gmail Tool
Perplexity Tool
Agent
+7
18 节点Automate With Marc
AI 聊天机器人
工作流信息
难度等级
中级
节点数量11
分类2
节点类型8
作者
Automate With Marc
@marconiAutomating Start-Up and Business processes. Helping non-techies understand and leverage Agentic AI with easy to understand step-by-step tutorials. Check out my educational content: https://www.youtube.com/@Automatewithmarc
外部链接
在 n8n.io 查看 →
分享此工作流