8
n8n 中文网amn8n.com

Firecrawl AI驱动的市场情报机器人:自动化新闻洞察交付

中级

这是一个Market Research, Multimodal AI领域的自动化工作流,包含 12 个节点。主要使用 Code, Wait, Slack, HttpRequest, Agent 等节点。 使用OpenAI过滤和总结TechCrunch的AI新闻到Slack

前置要求
  • Slack Bot Token 或 Webhook URL
  • 可能需要目标 API 的认证凭证
  • OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "Ut6jbfsK7IvhGJVL",
  "meta": {
    "instanceId": "87e85f497d2a9f18665002b06f3ba96bde7b80557a792319a7373c9549c8959f",
    "templateId": "4588",
    "templateCredsSetupCompleted": true
  },
  "name": "Firecrawl AI驱动的市场情报机器人:自动化新闻洞察交付",
  "tags": [],
  "nodes": [
    {
      "id": "471044c1-cafd-4810-973d-b40c74ef6999",
      "name": "每日市场研究触发器",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        2512,
        784
      ],
      "parameters": {
        "rule": {
          "interval": [
            {
              "triggerAtHour": 8
            }
          ]
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "8f6e97b6-6910-4c6b-8c9a-29a0cf95ac09",
      "name": "爬取TechCrunch(FireCrawl)",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2704,
        784
      ],
      "parameters": {
        "url": "https://api.firecrawl.dev/v1/crawl",
        "method": "POST",
        "options": {},
        "jsonBody": "{\n  \"url\": \"https://techcrunch.com\",\n  \"limit\": 20,\n  \"includePaths\": [\"2025/\"],\n  \"scrapeOptions\": {\n    \"formats\": [\"markdown\"],\n    \"onlyMainContent\": true,\n    \"parsePDF\": true,\n    \"maxAge\": 14400000\n  }\n}",
        "sendBody": true,
        "specifyBody": "json",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpBearerAuth"
      },
      "typeVersion": 4.2
    },
    {
      "id": "a326e8fd-bfc8-4380-9c66-20481aaa8a6c",
      "name": "摘要生成智能体",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        3328,
        784
      ],
      "parameters": {
        "text": "=You are an AI research assistant. First, determine if this article is related to artificial intelligence, machine learning, AI companies, or AI technology.\n\nIf the article IS AI-related, provide a summary in 3 bullet points.\nIf the article is NOT AI-related, respond with exactly: \"NOT_AI_RELATED\"\n\nArticle details:\nTitle: {{ $json.title }}\nDescription: {{ $json.description }}\nContent: {{ $json.content }}\n\nFormat for AI articles:\n{{ $json.title }}\n\nSummary:\n- [Bullet point 1]\n- [Bullet point 2] \n- [Bullet point 3]\n\nLink: {{ $json.url }}",
        "options": {},
        "promptType": "define"
      },
      "typeVersion": 1.9
    },
    {
      "id": "d8576228-6261-4654-84de-0864e398c22d",
      "name": "OpenAI摘要生成器",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        3328,
        1008
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4o-mini"
        },
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "id": "byfe88CyXUHFOXUZ",
          "name": "OpenAi account"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "f5965b4a-4ab1-4e5f-868c-2dc11c59fc28",
      "name": "发送摘要到Slack",
      "type": "n8n-nodes-base.slack",
      "position": [
        3792,
        784
      ],
      "webhookId": "c2e00b18-42bd-49b7-bc4c-05d60633a7c8",
      "parameters": {
        "text": "=🔍 AI Research Summary:\n{{ $json.output }}",
        "select": "channel",
        "channelId": {
          "__rl": true,
          "mode": "name",
          "value": "#general"
        },
        "otherOptions": {},
        "authentication": "oAuth2"
      },
      "executeOnce": false,
      "typeVersion": 2.3
    },
    {
      "id": "fb908a45-0faf-4068-9420-8046ab4a8d36",
      "name": "等待",
      "type": "n8n-nodes-base.wait",
      "position": [
        2880,
        784
      ],
      "webhookId": "b210f38a-da89-4bc5-a1e6-c80f9b89a426",
      "parameters": {
        "amount": 60
      },
      "typeVersion": 1.1
    },
    {
      "id": "a89a5bc1-5f76-40b5-aca3-adc380fd4c0d",
      "name": "接收Firecrawl结果",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        3024,
        784
      ],
      "parameters": {
        "url": "=https://api.firecrawl.dev/v1/crawl/{{$json.id}}",
        "options": {},
        "authentication": "genericCredentialType",
        "genericAuthType": "httpBearerAuth"
      },
      "credentials": {
        "httpBearerAuth": {
          "id": "U4MsswmPveLVhYYR",
          "name": "Bearer Auth account 4"
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "5ddeaef9-cd9d-4f55-b82d-1edfce6429df",
      "name": "拆分输出",
      "type": "n8n-nodes-base.code",
      "position": [
        3184,
        784
      ],
      "parameters": {
        "jsCode": "// Split crawled articles into individual items for processing\nif (!$json.data || $json.data.length === 0) {\n  console.log(\"No data available\");\n  return [];\n}\n\nconsole.log(`Processing ${$json.data.length} articles individually`);\n\n// Return each article as a separate n8n item\nreturn $json.data.map(article => ({\n  json: {\n    title: article.metadata?.title || 'No title',\n    url: article.sourceURL || '',\n    content: (article.markdown || article.content || '').substring(0, 1000),\n    description: article.metadata?.description || '',\n    publishDate: article.metadata?.publishDate || ''\n  }\n}));"
      },
      "typeVersion": 2
    },
    {
      "id": "c8cc970e-313e-45c9-bad5-9dd32ccbfee3",
      "name": "过滤消息",
      "type": "n8n-nodes-base.code",
      "position": [
        3616,
        784
      ],
      "parameters": {
        "jsCode": "// Process all items at once and filter out NOT_AI_RELATED\nconst filteredItems = [];\n\n$input.all().forEach(item => {\n  if (item.json.output && item.json.output.trim() !== 'NOT_AI_RELATED') {\n    filteredItems.push(item);\n  } else {\n    console.log('Filtered out non-AI article');\n  }\n});\n\nconsole.log(`Passing ${filteredItems.length} AI articles to Slack`);\nreturn filteredItems;"
      },
      "typeVersion": 2
    },
    {
      "id": "51e047ef-791d-46cd-abcd-98c2b55104cd",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2512,
        -384
      ],
      "parameters": {
        "width": 944,
        "height": 1056,
        "content": "# AI驱动的市场情报机器人"
      },
      "typeVersion": 1
    },
    {
      "id": "92923278-85b3-4def-a7e2-8967e55f9004",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        4384,
        -352
      ],
      "parameters": {
        "color": 4,
        "width": 1200,
        "height": 1184,
        "content": "## 🔧 配置与自定义"
      },
      "typeVersion": 1
    },
    {
      "id": "52f22863-78b7-4f12-9d92-5cfe81b4c8c9",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3600,
        -352
      ],
      "parameters": {
        "color": 5,
        "width": 736,
        "height": 1056,
        "content": "## 🤖 4. AI驱动分析与摘要生成"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {},
  "versionId": "1a74e487-1f09-4046-8c1c-149d0c748911",
  "connections": {
    "Wait": {
      "main": [
        [
          {
            "node": "Receive Firecrawl Results",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Output": {
      "main": [
        [
          {
            "node": "Summarizer Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter Messages": {
      "main": [
        [
          {
            "node": "Send Summary to Slack",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Summarizer Agent": {
      "main": [
        [
          {
            "node": "Filter Messages",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Summarizer": {
      "ai_languageModel": [
        [
          {
            "node": "Summarizer Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Receive Firecrawl Results": {
      "main": [
        [
          {
            "node": "Split Output",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Crawl TechCrunch (FireCrawl)": {
      "main": [
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Daily Market Research Trigger": {
      "main": [
        [
          {
            "node": "Crawl TechCrunch (FireCrawl)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。

这个工作流适合什么场景?

中级 - 市场调研, 多模态 AI

需要付费吗?

本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。

工作流信息
难度等级
中级
节点数量12
分类2
节点类型8
难度说明

适合有一定经验的用户,包含 6-15 个节点的中等复杂度工作流

作者
Colton Randolph

Colton Randolph

@crandolph

Technical/B2B content writer & SEO specialist. I love helping people learn and implement technical concepts.

外部链接
在 n8n.io 查看

分享此工作流