8
n8n 中文网amn8n.com

冷邮件触达:Gmail和Google Sheets状态跟踪

中级

这是一个Marketing领域的自动化工作流,包含 6 个节点。主要使用 Gmail, GoogleSheets, SplitInBatches, ScheduleTrigger 等节点。 冷邮件触达:Gmail和Google Sheets状态跟踪

前置要求
  • Google 账号和 Gmail API 凭证
  • Google Sheets API 凭证

分类

工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "meta": {
    "instanceId": "fae057ee2d891478d0c2072cd4fb64f7da69a0dd189c9cf4fd08c30e50dba628",
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "07cbdd82-2df1-41eb-80f3-cfe762ce1d5e",
      "name": "计划触发器",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -40,
        40
      ],
      "parameters": {
        "rule": {
          "interval": [
            {
              "triggerAtHour": 14
            }
          ]
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "bbc2f2fe-8f33-4a92-80ab-408655000baa",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -160,
        -200
      ],
      "parameters": {
        "width": 1220,
        "height": 480,
        "content": "## 使用Gmail和Google Sheets状态跟踪的冷邮件拓展"
      },
      "typeVersion": 1
    },
    {
      "id": "166afe50-aa7b-4e46-8ebc-bd964d670e34",
      "name": "潜在客户批处理",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        400,
        40
      ],
      "parameters": {
        "options": {}
      },
      "typeVersion": 3
    },
    {
      "id": "0284614d-d43e-42a1-85cf-2677e06fc1f4",
      "name": "发送个性化邮件",
      "type": "n8n-nodes-base.gmail",
      "position": [
        680,
        -60
      ],
      "webhookId": "ad8c804e-857d-4a94-b722-65b0776f1d10",
      "parameters": {
        "sendTo": "={{ $json.Email }}",
        "message": "=Hello {{ $json.Name || $json['WF Full Name (metadata)'] }},\n\nI’m a software developer and automation expert. I work with businesses and individuals to build websites, mobile apps, and powerful digital solutions that help save time and grow online.\n\nI offer a range of services including:\n- Website & App Development\n- SEO & Digital Marketing\n- Business Process Automation\n\nIf you’re looking to start a new project or improve your current setup, I’d love to connect and see how I can help.\n\nAre you interested in discussing any of these services?\n\nBest regards,\nSoftware Developer | Automation Expert",
        "options": {
          "senderName": "Developer",
          "appendAttribution": false
        },
        "subject": "Need Help with Your Website, App, or Online Growth?",
        "emailType": "text"
      },
      "credentials": {
        "gmailOAuth2": {
          "id": "REDACTED",
          "name": "REDACTED_GMAIL_CREDENTIAL"
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "ae48ba04-d428-4aa3-9212-fb49af92c7ae",
      "name": "获取潜在客户",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        180,
        40
      ],
      "parameters": {
        "options": {},
        "filtersUI": {
          "values": [
            {
              "lookupColumn": "Is Email Sent"
            }
          ]
        },
        "sheetName": {
          "__rl": true,
          "mode": "list",
          "value": "REDACTED_SHEET_ID"
        },
        "documentId": {
          "__rl": true,
          "mode": "list",
          "value": "REDACTED_DOCUMENT_ID"
        }
      },
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "REDACTED",
          "name": "REDACTED_SHEETS_CREDENTIAL"
        }
      },
      "typeVersion": 4.5
    },
    {
      "id": "62e831c3-c67c-4b0c-a0bd-5e4a8fcb23f6",
      "name": "更新潜在客户状态",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        880,
        40
      ],
      "parameters": {
        "columns": {
          "value": {
            "Email": "={{ $('Batch Processing of Leads').item.json.Email }}",
            "Is Email Sent": "yes"
          },
          "schema": [
            {
              "id": "Email",
              "type": "string",
              "display": true
            },
            {
              "id": "Is Email Sent",
              "type": "string",
              "display": true
            }
          ],
          "mappingMode": "defineBelow",
          "matchingColumns": [
            "Email"
          ]
        },
        "options": {},
        "operation": "update",
        "sheetName": {
          "__rl": true,
          "mode": "list",
          "value": "REDACTED_SHEET_ID"
        },
        "documentId": {
          "__rl": true,
          "mode": "list",
          "value": "REDACTED_DOCUMENT_ID"
        }
      },
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "REDACTED",
          "name": "REDACTED_SHEETS_CREDENTIAL"
        }
      },
      "typeVersion": 4.5
    }
  ],
  "pinData": {},
  "connections": {
    "Fetch Leads": {
      "main": [
        [
          {
            "node": "Batch Processing of Leads",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Fetch Leads",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update Lead Status": {
      "main": [
        [
          {
            "node": "Batch Processing of Leads",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Personalized Email": {
      "main": [
        [
          {
            "node": "Update Lead Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Batch Processing of Leads": {
      "main": [
        [],
        [
          {
            "node": "Send Personalized Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

中级 - 营销

需要付费吗?

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

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

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

作者
Usman Liaqat

Usman Liaqat

@usmanliaqat

Full Stack Website Developer & Automation Expert

外部链接
在 n8n.io 查看

分享此工作流