8
n8n 中文网amn8n.com

自动化市场报告生成与分发

中级

这是一个Market Research领域的自动化工作流,包含 9 个节点。主要使用 Cron, Gmail, Function, GoogleDocs, HttpRequest 等节点。 使用Google文档、表格和Gmail生成并分发市场报告

前置要求
  • Google 账号和 Gmail API 凭证
  • 可能需要目标 API 的认证凭证
  • Google Sheets API 凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "GlgUwkuAq48MlxaK",
  "meta": {
    "instanceId": "a287613f1596da776459594685fbf4e2b4a12124f80ab8c8772f5e37bff103ae",
    "templateCredsSetupCompleted": true
  },
  "name": "自动化市场报告生成与分发",
  "tags": [],
  "nodes": [
    {
      "id": "9dfa0ef3-23eb-4b26-a122-b75ef6c94b04",
      "name": "0. Cron(月度计划)",
      "type": "n8n-nodes-base.cron",
      "position": [
        -1648,
        208
      ],
      "parameters": {},
      "description": "Triggers on the 1st day of every month at 8 AM to generate the report.",
      "typeVersion": 1
    },
    {
      "id": "75f56194-4398-477f-a871-9b99e7c11e47",
      "name": "1. HTTP 请求(获取市场数据)",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1424,
        208
      ],
      "parameters": {},
      "description": "Fetches raw market data for a specific region from an external API.",
      "typeVersion": 1
    },
    {
      "id": "b50f4ece-6f82-4fe4-bec6-9bab5eb5c3a9",
      "name": "2. 函数(处理数据)",
      "type": "n8n-nodes-base.function",
      "position": [
        -1200,
        208
      ],
      "parameters": {},
      "description": "Processes and formats the raw API data for the report template.",
      "typeVersion": 1
    },
    {
      "id": "b413874a-4940-4c9c-9979-8a83363c9048",
      "name": "3. Google 文档(创建报告)",
      "type": "n8n-nodes-base.googleDocs",
      "position": [
        -976,
        208
      ],
      "parameters": {},
      "description": "Creates a new report document from a template and fills it with market data.",
      "typeVersion": 1
    },
    {
      "id": "919caceb-0843-4bc7-b728-3cb9ef3f1245",
      "name": "4. Google 表格(获取客户列表)",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -752,
        208
      ],
      "parameters": {},
      "description": "Gets all client emails from your mailing list sheet.",
      "typeVersion": 3
    },
    {
      "id": "2dd3cac5-6073-4877-934d-bb3de4d22a44",
      "name": "5. 分批处理",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        -528,
        208
      ],
      "parameters": {},
      "description": "Processes each client email one by one to send the report.",
      "typeVersion": 1
    },
    {
      "id": "9518ca4b-3085-4510-8fad-d8be6915bb62",
      "name": "6. Gmail(发送报告)",
      "type": "n8n-nodes-base.gmail",
      "position": [
        -304,
        208
      ],
      "parameters": {},
      "description": "Sends the generated report as an attachment to each client.",
      "typeVersion": 1
    },
    {
      "id": "a34de244-453a-406d-8b49-dcc3dac8b143",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1728,
        144
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "e27d8aeb-ac2d-43ad-8668-2ed849d61249",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1728,
        448
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "1e2422b5-3680-49de-a885-eb33fd9f112f",
  "connections": {
    "5. Split In Batches": {
      "main": [
        [
          {
            "node": "6. Gmail (Send Report)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "0. Cron (Monthly Schedule)": {
      "main": [
        [
          {
            "node": "1. HTTP Request (Get Market Data)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "2. Function (Process Data)": {
      "main": [
        [
          {
            "node": "3. Google Docs (Create Report)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "3. Google Docs (Create Report)": {
      "main": [
        [
          {
            "node": "4. Google Sheets (Get Client List)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "1. HTTP Request (Get Market Data)": {
      "main": [
        [
          {
            "node": "2. Function (Process Data)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "4. Google Sheets (Get Client List)": {
      "main": [
        [
          {
            "node": "5. Split In Batches",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

中级 - 市场调研

需要付费吗?

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

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

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

作者
Marth

Marth

@marth

Simplifying Business with Smart Automation. I create and share user-friendly, highly efficient n8n workflow templates for SMEs, focusing on digital marketing, sales, and operational excellence. Get ready to automate, innovate, and elevate your business. Connect me on Linkedin for custom solutions.

外部链接
在 n8n.io 查看

分享此工作流