Grok-4 股票投资分析师
中级
这是一个Crypto Trading, AI RAG领域的自动化工作流,包含 14 个节点。主要使用 Gmail, PerplexityTool, Agent, ScheduleTrigger, GoogleSheetsTool 等节点。 使用 Grok-4 和 Perplexity 的个性化股票投资组合分析与推荐
前置要求
- •Google 账号和 Gmail API 凭证
- •Google Sheets API 凭证
使用的节点 (14)
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"id": "",
"meta": {},
"name": "Grok-4 股票投资分析师",
"tags": [],
"nodes": [
{
"id": "0b2f04c2-967e-4ca1-bfd8-10f7e36c2acd",
"name": "计划触发器",
"type": "n8n-nodes-base.scheduleTrigger",
"position": [
-120,
20
],
"parameters": {
"rule": {
"interval": [
{
"triggerAtHour": 10
}
]
}
},
"typeVersion": 1.2
},
{
"id": "a46fcb0f-d668-4203-aa8b-b76ffd731ef6",
"name": "Grok-4 股票分析师智能体",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
120,
20
],
"parameters": {
"text": "As a stock analyst agent:\n1. Please use the Google Sheet tool titled \"Stock Holdings Portfolio\" for my current stock holdings information\n\n2. Please research the latest stock market news in the last 24 hours using the Perplexity tool, and tell me how the latest stock market news affected my portfolio\n\n3. Give some analyst insights + buy/sell recommendations based on the news\n",
"options": {},
"promptType": "define"
},
"retryOnFail": false,
"typeVersion": 2
},
{
"id": "027b6215-647a-40a0-9341-0a199c61ffc8",
"name": "xAI Grok Chat Model",
"type": "@n8n/n8n-nodes-langchain.lmChatXAiGrok",
"position": [
80,
240
],
"parameters": {
"model": "grok-4-0709",
"options": {}
},
"credentials": {
"xAiApi": {
"id": "",
"name": "YOUR_XAIAPI_CREDENTIAL"
}
},
"typeVersion": 1
},
{
"id": "43e3bbc7-7f17-4755-902d-c6ab122845ab",
"name": "简单记忆",
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
"position": [
220,
240
],
"parameters": {
"sessionKey": "={{ $workflow.id }}",
"sessionIdType": "customKey"
},
"typeVersion": 1.3
},
{
"id": "a779c609-3c10-48f9-b06d-6989bc42c40d",
"name": "Perplexity",
"type": "n8n-nodes-base.perplexityTool",
"position": [
380,
240
],
"parameters": {
"options": {
"searchRecency": "day"
},
"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": "e46bf600-7e37-4eb5-b438-775626f310c9",
"name": "股票持仓组合",
"type": "n8n-nodes-base.googleSheetsTool",
"position": [
500,
240
],
"parameters": {
"options": {},
"sheetName": {
"__rl": true,
"mode": "list",
"value": "",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/YOUR_SHEET_ID/edit#gid=0",
"cachedResultName": "Sheet1"
},
"documentId": {
"__rl": true,
"mode": "list",
"value": "",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/YOUR_SHEET_ID/edit",
"cachedResultName": "Your Google Sheet"
}
},
"credentials": {
"googleSheetsOAuth2Api": {
"id": "",
"name": "YOUR_GOOGLESHEETSOAUTH2API_CREDENTIAL"
}
},
"typeVersion": 4.6
},
{
"id": "5eb16e68-fe5a-41a5-9ea2-5957b13c9f31",
"name": "Gmail",
"type": "n8n-nodes-base.gmail",
"position": [
1000,
20
],
"webhookId": "e09fb831-ef69-465e-be84-b7ef204ccdc5",
"parameters": {
"sendTo": "youremail@example.com",
"message": "={{ $json.output }}",
"options": {},
"subject": "Stock Updates",
"emailType": "text"
},
"credentials": {
"gmailOAuth2": {
"id": "",
"name": "YOUR_GMAILOAUTH2_CREDENTIAL"
}
},
"typeVersion": 2.1
},
{
"id": "acbc233d-91bb-40f6-9431-4c589c797043",
"name": "xAI Grok Chat Model1",
"type": "@n8n/n8n-nodes-langchain.lmChatXAiGrok",
"position": [
680,
240
],
"parameters": {
"model": "grok-4-0709",
"options": {}
},
"credentials": {
"xAiApi": {
"id": "",
"name": "YOUR_XAIAPI_CREDENTIAL"
}
},
"typeVersion": 1
},
{
"id": "1987513e-da25-47d0-8ef6-5181be09f907",
"name": "摘要智能体",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
660,
20
],
"parameters": {
"text": "={{ $json.output }}",
"options": {
"systemMessage": "You are a helpful summary assistant, summarize the information received from user and output easily readable email format of the summary."
},
"promptType": "define"
},
"typeVersion": 2
},
{
"id": "d07a6f28-00a3-41e5-855e-ebf6a88d03b2",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
-220,
-120
],
"parameters": {
"height": 580,
"content": "按计划触发时"
},
"typeVersion": 1
},
{
"id": "a029bfb4-21bb-4639-9ea4-2d9d159f3832",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
40,
-120
],
"parameters": {
"color": 4,
"width": 580,
"height": 580,
"content": "Grok-4 股票分析师智能体"
},
"typeVersion": 1
},
{
"id": "1a7d0e1d-bd98-43fc-bf45-8353f45401b2",
"name": "便签2",
"type": "n8n-nodes-base.stickyNote",
"position": [
640,
-120
],
"parameters": {
"color": 5,
"width": 300,
"height": 580,
"content": "Grok-4 摘要智能体"
},
"typeVersion": 1
},
{
"id": "ac347c55-7834-4a61-9967-513472c89b2b",
"name": "便签3",
"type": "n8n-nodes-base.stickyNote",
"position": [
960,
-120
],
"parameters": {
"color": 6,
"width": 300,
"height": 580,
"content": "邮件输出"
},
"typeVersion": 1
},
{
"id": "7553afe2-a0f8-4ee1-adec-5d94fd6f0b6a",
"name": "便签4",
"type": "n8n-nodes-base.stickyNote",
"position": [
-880,
-120
],
"parameters": {
"color": 4,
"width": 560,
"height": 840,
"content": "📊 Grok-4 与 Perplexity 股票投资分析师 - 个性化每日市场洞察"
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "",
"connections": {
"Perplexity": {
"ai_tool": [
[
{
"node": "Grok-4 Stock Analyst Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Simple Memory": {
"ai_memory": [
[
{
"node": "Grok-4 Stock Analyst Agent",
"type": "ai_memory",
"index": 0
}
]
]
},
"Summary Agent": {
"main": [
[
{
"node": "Gmail",
"type": "main",
"index": 0
}
]
]
},
"Schedule Trigger": {
"main": [
[
{
"node": "Grok-4 Stock Analyst Agent",
"type": "main",
"index": 0
}
]
]
},
"xAI Grok Chat Model": {
"ai_languageModel": [
[
{
"node": "Grok-4 Stock Analyst Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"xAI Grok Chat Model1": {
"ai_languageModel": [
[
{
"node": "Summary Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Stock Holdings Portfolio": {
"ai_tool": [
[
{
"node": "Grok-4 Stock Analyst Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Grok-4 Stock Analyst Agent": {
"main": [
[
{
"node": "Summary Agent",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
中级 - 加密货币交易, AI RAG 检索增强
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
动态投资组合顾问股市新闻
使用 Perplexity AI、GPT-4 和 Google Sheets 进行股票投资组合分析
Telegram
Perplexity Tool
Agent
+5
11 节点Automate With Marc
加密货币交易
自动入站销售跟进
使用 GPT-5、Pinecone 和 Tavily 研究实现个性化销售自动跟进
Gmail
Form Trigger
Agent
+6
12 节点Automate With Marc
客户培育
Grok-4客户支持代理[RAG]
使用Grok-4、Google Docs和Telegram构建客户支持代理[RAG]
Telegram
Google Docs Tool
Agent
+4
10 节点Automate With Marc
客服机器人
AI行业趋势24/7监控(X、Gmail和网站)
基于GPT-5的AI行业趋势24/7监控(X、Gmail和网站)
Set
Gmail
Airtop
+13
35 节点LeeWei
市场调研
使用Perplexity Sonar Pro到Gmail的AI新闻研究代理
基于Perplexity Pro、GPT格式和Gmail发送的每日AI新闻摘要
Gmail
Perplexity
Agent
+4
11 节点Automate With Marc
市场调研
AI驱动的博客文章生成器
🧠 AI博客文章记者(使用Perplexity进行研究,Anthropic Claude撰写博客)
Google Docs
Perplexity
Perplexity Tool
+5
12 节点Automate With Marc
人工智能
工作流信息
难度等级
中级
节点数量14
分类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 查看 →
分享此工作流