🚀 自动化Stripe支付恢复:跟踪失败和跟进邮件

中级

这是一个Invoice Processing领域的自动化工作流,包含 13 个节点。主要使用 Set、Switch、SendInBlue、GoogleSheets、StripeTrigger 等节点。 🚀 自动化Stripe支付恢复:跟踪失败和跟进邮件

前置要求
  • Google Sheets API 凭证
  • Stripe API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "meta": {
    "instanceId": "b6731f6e46273cffeac6b5188a5b3bcb0840c00108e73b48ae2b799ac6e8e081",
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "497e2fda-6782-4bc0-b594-11d545667b43",
      "name": "检测失败付款",
      "type": "n8n-nodes-base.stripeTrigger",
      "position": [
        -2500,
        160
      ],
      "webhookId": "c23dd369-5c11-4166-ad55-0af41858c0d6",
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "7e739ab1-372e-45a1-bf66-69376d8615b0",
      "name": "提取用户和付款信息",
      "type": "n8n-nodes-base.set",
      "position": [
        -2280,
        160
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "1b2195ec-be80-401d-a504-498266bfb9a0",
      "name": "在表格中追加或更新行",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -1840,
        160
      ],
      "parameters": {},
      "typeVersion": 4.6
    },
    {
      "id": "7edfaea7-a11f-4335-b17c-f7707049bd2c",
      "name": "移除重复项",
      "type": "n8n-nodes-base.removeDuplicates",
      "position": [
        -2060,
        160
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "e6498365-7e61-4d17-81e6-435776bdd96f",
      "name": "由 Github 模型提供支持",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -1000,
        100
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "572cc980-ab25-4a65-a63b-21633c4b28c3",
      "name": "更新邮件计数",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        0,
        0
      ],
      "parameters": {},
      "typeVersion": 4.6
    },
    {
      "id": "740421e1-2a63-440a-aba2-f6848fa3ab25",
      "name": "获取付款失败线索",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -780,
        100
      ],
      "parameters": {},
      "typeVersion": 4.6
    },
    {
      "id": "ecb53f48-4515-4bad-9a3e-3191bf985d29",
      "name": "检查已发送邮件数量",
      "type": "n8n-nodes-base.switch",
      "position": [
        -560,
        100
      ],
      "parameters": {},
      "typeVersion": 3.2
    },
    {
      "id": "1fcea8aa-f547-48bc-92d5-2b3cd954a216",
      "name": "发送第一封邮件",
      "type": "n8n-nodes-base.sendInBlue",
      "position": [
        -220,
        0
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "ec8849dc-47e0-4a47-acf7-15bbdc0905bf",
      "name": "发送第二封邮件",
      "type": "n8n-nodes-base.sendInBlue",
      "position": [
        -220,
        200
      ],
      "parameters": {},
      "executeOnce": false,
      "typeVersion": 1
    },
    {
      "id": "07d8a522-cd9b-451c-a45e-3b2074746b51",
      "name": "停止向这些线索发送邮件",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        0,
        200
      ],
      "parameters": {},
      "typeVersion": 4.6
    },
    {
      "id": "a6591c76-c5de-468c-b36e-23d867a5d1cb",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2840,
        -220
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "81c80cf6-b0ed-4dc5-8cd1-4e8b7d7f3409",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1560,
        -220
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    }
  ],
  "pinData": {},
  "connections": {
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Get Payment Failure Leads",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send First Email": {
      "main": [
        [
          {
            "node": "Update Email Count",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Remove Duplicates": {
      "main": [
        [
          {
            "node": "Append or update row in sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Second Email": {
      "main": [
        [
          {
            "node": "Quit Sending Emails to these Leads",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Detect Failed Payments": {
      "main": [
        [
          {
            "node": "Extract User and Payment Info",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Payment Failure Leads": {
      "main": [
        [
          {
            "node": "Check for no. of emails sent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check for no. of emails sent": {
      "main": [
        [
          {
            "node": "Send First Email",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send Second Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract User and Payment Info": {
      "main": [
        [
          {
            "node": "Remove Duplicates",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

这是一个中级难度的工作流,适用于Invoice Processing等场景。适合有一定经验的用户,包含 6-15 个节点的中等复杂度工作流

需要付费吗?

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

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

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

外部链接
在 n8n.io 上查看 →

分享此工作流