8
n8n 中文网amn8n.com

Gumroad销售触发器

中级

这是一个Other领域的自动化工作流,包含 8 个节点。主要使用 MailerLite, HttpRequest, GoogleSheets, GumroadTrigger 等节点。 捕获Gumroad销售,将买家添加到MailerLite群组,记录到Google Sheets CRM

前置要求
  • 可能需要目标 API 的认证凭证
  • Google Sheets API 凭证

分类

工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "06v55r6E13Wfvo66",
  "meta": {
    "instanceId": "dfec462482c1b16c8ef1928d51584c7f0ae64b3bfaa72e08675b15754b903bd2",
    "templateCredsSetupCompleted": true
  },
  "name": "Gumroad 销售触发器",
  "tags": [],
  "nodes": [
    {
      "id": "789f1dec-d2d2-4e09-9530-719d354d259c",
      "name": "分配至群组",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        140,
        -280
      ],
      "parameters": {
        "url": "=https://connect.mailerlite.com/api/subscribers/{{ $json.id }}/groups/152489030254069581",
        "method": "POST",
        "options": {},
        "authentication": "predefinedCredentialType",
        "nodeCredentialType": "mailerLiteApi"
      },
      "credentials": {
        "mailerLiteApi": {
          "id": "i9V49FSxbwJhAGfI",
          "name": "Mailer Lite account"
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "53c0df02-5571-485c-91ce-6be2f62fd6d6",
      "name": "Gumroad 销售触发器",
      "type": "n8n-nodes-base.gumroadTrigger",
      "position": [
        -520,
        -280
      ],
      "webhookId": "06a01b99-cbf1-4694-8502-94ac51670ba4",
      "parameters": {
        "resource": "sale"
      },
      "credentials": {
        "gumroadApi": {
          "id": "wgjGSvLjsRBJImsQ",
          "name": "Gumroad account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "ee782134-e2d4-4f8b-a9d9-a09a919577ab",
      "name": "在CRM中追加行",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        480,
        -280
      ],
      "parameters": {
        "columns": {
          "value": {
            "date": "={{ $('Gumroad Sale Trigger').item.json.sale_timestamp }}",
            "email": "={{ $('Gumroad Sale Trigger').item.json.email }}",
            "country": "={{ $('Gumroad Sale Trigger').item.json.ip_country }}",
            "product name": "={{ $('Gumroad Sale Trigger').item.json.product_name }}"
          },
          "schema": [
            {
              "id": "date",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "date",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "product name",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "product name",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "email",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "email",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "country",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "country",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            }
          ],
          "mappingMode": "defineBelow",
          "matchingColumns": [],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {},
        "operation": "append",
        "sheetName": {
          "__rl": true,
          "mode": "list",
          "value": "gid=0",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1XYMstoZ4j3O5T-UYz21ky7P5bkUtzYXQGYCQTRVWCI4/edit#gid=0",
          "cachedResultName": "Sheet1"
        },
        "documentId": {
          "__rl": true,
          "mode": "list",
          "value": "1XYMstoZ4j3O5T-UYz21ky7P5bkUtzYXQGYCQTRVWCI4",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1XYMstoZ4j3O5T-UYz21ky7P5bkUtzYXQGYCQTRVWCI4/edit?usp=drivesdk",
          "cachedResultName": "Gumroad sales CRM"
        }
      },
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "Ou2SgvNZctBeYWT5",
          "name": "Google Sheets account"
        }
      },
      "typeVersion": 4.5
    },
    {
      "id": "98ff519b-3065-4c6b-bdeb-2d9095e3f52a",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -680,
        -540
      ],
      "parameters": {
        "width": 460,
        "height": 460,
        "content": "## 触发新的Gumroad销售"
      },
      "typeVersion": 1
    },
    {
      "id": "f5ccfe9f-c56c-4394-bebf-1f7438a0dcdf",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -140,
        -660
      ],
      "parameters": {
        "color": 4,
        "width": 480,
        "height": 580,
        "content": "## 连接 [MailerLite](https://www.mailerlite.com/a/Kr9Yplim6ZhV) 新闻通讯"
      },
      "typeVersion": 1
    },
    {
      "id": "e4cea86a-494f-4c3c-9743-3e8eca461a04",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        420,
        -460
      ],
      "parameters": {
        "color": 4,
        "width": 480,
        "height": 380,
        "content": "## 加载到CRM"
      },
      "typeVersion": 1
    },
    {
      "id": "e81b7ae0-510e-454e-82ff-6d42bde9e81a",
      "name": "添加订阅者到MailerLite",
      "type": "n8n-nodes-base.mailerLite",
      "position": [
        -60,
        -280
      ],
      "parameters": {
        "email": "={{ $json.email }}",
        "additionalFields": {
          "customFieldsUi": {
            "customFieldsValues": [
              {
                "value": "={{ $json.ip_country }}",
                "fieldId": "country"
              }
            ]
          }
        }
      },
      "credentials": {
        "mailerLiteApi": {
          "id": "i9V49FSxbwJhAGfI",
          "name": "Mailer Lite account"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "9cc00d13-81d9-4584-9066-4b00b2ff7a47",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -160,
        -60
      ],
      "parameters": {
        "color": 5,
        "width": 520,
        "height": 180,
        "content": "## 为什么需要将订阅者分配到群组?"
      },
      "typeVersion": 1
    }
  ],
  "active": true,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "3b94b27b-05cc-4996-9f1f-33ba7c3632ae",
  "connections": {
    "Assign to group": {
      "main": [
        [
          {
            "node": "append row in CRM",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Gumroad Sale Trigger": {
      "main": [
        [
          {
            "node": "add subscriber to MailerLite",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "add subscriber to MailerLite": {
      "main": [
        [
          {
            "node": "Assign to group",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

中级 - 其他

需要付费吗?

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

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

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

作者
Aitor | 1node.ai

Aitor | 1node.ai

@aitoralonso

Hi, I’m Aitor, cofounder of 1node.ai. We help businesses integrate full-scale AI solutions and automations to save time and scale faster. Need help building smarter workflows? Visit 1node.ai to get started. Have questions? Join our free Discord community for expert tips, templates, and automation support.

外部链接
在 n8n.io 查看

分享此工作流