房地产项目竞品价格与功能追踪器
这是一个Market Research领域的自动化工作流,包含 8 个节点。主要使用 If, Cron, Wait, Function, EmailSend 等节点。 使用Google Sheets和邮件提醒跟踪房地产竞品价格与功能
- •可能需要目标 API 的认证凭证
- •Google Sheets API 凭证
分类
{
"id": "azsNX19ORoakJxeu",
"meta": {
"instanceId": "dd69efaf8212c74ad206700d104739d3329588a6f3f8381a46a481f34c9cc281",
"templateCredsSetupCompleted": true
},
"name": "房地产项目竞品价格与功能追踪器",
"tags": [],
"nodes": [
{
"id": "8ac2caf3-a568-499c-b19c-c8bda3aec69c",
"name": "Cron",
"type": "n8n-nodes-base.cron",
"position": [
-1100,
0
],
"parameters": {},
"typeVersion": 1
},
{
"id": "6c9875ce-1e1a-4720-ae4b-18d9f0b8f8c0",
"name": "获取竞品数据",
"type": "n8n-nodes-base.httpRequest",
"position": [
-880,
0
],
"parameters": {
"url": "={{$node['Cron'].parameter['cronExpression'] === '0 0 * * *' ? 'https://api.competitor1.com/projects' : 'https://api.competitor2.com/projects'}}",
"options": {
"timeout": 10000
}
},
"typeVersion": 1
},
{
"id": "4ca2aabd-5816-42bc-a3e3-4d584031c4fe",
"name": "解析数据",
"type": "n8n-nodes-base.function",
"position": [
-440,
0
],
"parameters": {
"functionCode": "return items.map(item => {\n const project = item.json;\n return {\n json: {\n projectName: project.name,\n price: project.price,\n features: project.features || [],\n location: project.location,\n timestamp: new Date().toISOString()\n }\n };\n});"
},
"typeVersion": 1
},
{
"id": "d4fa57e7-ffe7-43f9-aa13-b9e1dbb1d981",
"name": "记录到 Google Sheets",
"type": "n8n-nodes-base.googleSheets",
"position": [
-220,
0
],
"parameters": {
"range": "CompetitorData!A:E",
"options": {},
"sheetId": "your-google-sheet-id",
"operation": "append"
},
"credentials": {
"googleApi": {
"id": "ScSS2KxGQULuPtdy",
"name": "Google Sheets- test"
}
},
"typeVersion": 1
},
{
"id": "88731364-e054-42cb-96e8-8bc4b9a016cf",
"name": "检查价格变动",
"type": "n8n-nodes-base.if",
"position": [
0,
0
],
"parameters": {
"conditions": {
"number": [
{
"value1": "={{$node['Parse Data'].json['price']}}",
"value2": "={{$node['Parse Data'].json['previousPrice'] || $node['Parse Data'].json['price']}}",
"operation": "changed"
}
]
}
},
"typeVersion": 1
},
{
"id": "a1bd7b91-8b15-4d6c-9050-b76e0de6360d",
"name": "等待数据",
"type": "n8n-nodes-base.wait",
"position": [
-660,
0
],
"webhookId": "a2be8134-31cb-4389-b64c-196407193c48",
"parameters": {},
"typeVersion": 1.1
},
{
"id": "8a366005-3e4f-4133-9607-4b3a47d85632",
"name": "发送警报邮件",
"type": "n8n-nodes-base.emailSend",
"position": [
220,
0
],
"webhookId": "958ddeb2-39ed-435f-b78e-aea27092b475",
"parameters": {
"text": "=🏠 Price Change Alert: {{$node['Parse Data'].json['projectName']}} at {{$node['Parse Data'].json['location']}} changed from {{$node['Parse Data'].json['previousPrice'] || 'N/A'}} to {{$node['Parse Data'].json['price']}}. Features: {{$node['Parse Data'].json['features'].join(', ')}}",
"options": {},
"subject": "Price Change Alert",
"toEmail": "xyz@gmaiil.com",
"fromEmail": "abc@gmaiil.com",
"emailFormat": "text"
},
"credentials": {
"smtp": {
"id": "G1kyF8cSWTZ4vouN",
"name": "SMTP -test"
}
},
"typeVersion": 2.1
},
{
"id": "32be80e1-6174-4860-98be-a350162405c2",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
-880,
-520
],
"parameters": {
"color": 4,
"width": 960,
"height": 420,
"content": "## 操作流程"
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "113728ef-35f9-4b06-8ef3-9c95ca42aeb2",
"connections": {
"Cron": {
"main": [
[
{
"node": "Fetch Competitor Data",
"type": "main",
"index": 0
}
]
]
},
"Parse Data": {
"main": [
[
{
"node": "Log to Google Sheets",
"type": "main",
"index": 0
}
]
]
},
"Wait For Data": {
"main": [
[
{
"node": "Parse Data",
"type": "main",
"index": 0
}
]
]
},
"Check Price Change": {
"main": [
[
{
"node": "Send Alert Email",
"type": "main",
"index": 0
}
]
]
},
"Log to Google Sheets": {
"main": [
[
{
"node": "Check Price Change",
"type": "main",
"index": 0
}
]
]
},
"Fetch Competitor Data": {
"main": [
[
{
"node": "Wait For Data",
"type": "main",
"index": 0
}
]
]
}
}
}如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
中级 - 市场调研
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 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.
分享此工作流