8
n8n 中文网amn8n.com

将 Squarespace 资料转换为 Google Sheets 中的 Shopify 客户

中级

这是一个Sales, Marketing领域的自动化工作流,包含 8 个节点。主要使用 Webhook, GoogleSheets, ManualTrigger, SplitInBatches, ExtractFromFile 等节点。 将Squarespace资料转换为Google Sheets中的Shopify客户

前置要求
  • HTTP Webhook 端点(n8n 会自动生成)
  • Google Sheets API 凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "7Gw4IfHaVMDSj70o",
  "meta": {
    "instanceId": "e634e668fe1fc93a75c4f2a7fc0dad807ca318b79654157eadb9578496acbc76",
    "templateCredsSetupCompleted": true
  },
  "name": "将 Squarespace 资料转换为 Google Sheets 中的 Shopify 客户",
  "tags": [],
  "nodes": [
    {
      "id": "17b7e952-ba9b-4067-9c98-a69ea09f7e69",
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -800,
        -420
      ],
      "webhookId": "e09976b5-7525-422b-9834-3bc6e1c4a1b6",
      "parameters": {
        "path": "submit-profiles",
        "options": {
          "allowedOrigins": "*"
        },
        "httpMethod": "POST"
      },
      "typeVersion": 2
    },
    {
      "id": "7e149be3-19da-4320-8910-40ef0900628a",
      "name": "Shopify 客户",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        420,
        -220
      ],
      "parameters": {
        "columns": {
          "value": {
            "Tags": "=n8n, squarespace, {{ $json['Last Order Date'] ? \"ground-control,\" : \"\" }}",
            "Email": "={{ $json.Email }}",
            "Phone": "={{ $json['Billing Phone Number'] }}",
            "Last Name": "={{ $json['Last Name'] }}",
            "First Name": "={{ $json['First Name'] }}",
            "Default Address Zip": "={{ $json['Billing Zip'] }}",
            "Default Address City": "={{ $json['Billing City'] }}",
            "Default Address Phone": "={{ $json['Billing Phone Number'] }}",
            "Accepts Email Marketing": "yes",
            "Default Address Company": "={{ $json['Billing Name'] }}",
            "Default Address Address1": "={{ $json['Billing Address 1'] }}",
            "Default Address Address2": "={{ $json['Billing Address 2'] }}",
            "Default Address Country Code": "={{ $json['Billing Country'] }}",
            "Default Address Province Code": "={{ $json['Billing Province/State'] }}"
          },
          "schema": [
            {
              "id": "First Name",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "First Name",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Last Name",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Last Name",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Email",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "Email",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Accepts Email Marketing",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Accepts Email Marketing",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Default Address Company",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Default Address Company",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Default Address Address1",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Default Address Address1",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Default Address Address2",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Default Address Address2",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Default Address City",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Default Address City",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Default Address Province Code",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Default Address Province Code",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Default Address Country Code",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Default Address Country Code",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Default Address Zip",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Default Address Zip",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Default Address Phone",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Default Address Phone",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Phone",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Phone",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Accepts SMS Marketing",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Accepts SMS Marketing",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Tags",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Tags",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Note",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Note",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Tax Exempt",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Tax Exempt",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            }
          ],
          "mappingMode": "defineBelow",
          "matchingColumns": [
            "Email"
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {},
        "operation": "appendOrUpdate",
        "sheetName": {
          "__rl": true,
          "mode": "list",
          "value": 15798644,
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1yf_RYZGFHpMyOvD3RKGSvIFY2vumvI4474Qm_1t4-jM/edit#gid=15798644",
          "cachedResultName": "shopify_template"
        },
        "documentId": {
          "__rl": true,
          "mode": "list",
          "value": "1yf_RYZGFHpMyOvD3RKGSvIFY2vumvI4474Qm_1t4-jM",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1yf_RYZGFHpMyOvD3RKGSvIFY2vumvI4474Qm_1t4-jM/edit?usp=drivesdk",
          "cachedResultName": "Make.com template"
        }
      },
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "JgI9maibw5DnBXRP",
          "name": "Google Sheets account"
        }
      },
      "typeVersion": 4.5
    },
    {
      "id": "e04f9a9e-b699-4cf2-aa91-56e6bfa30faa",
      "name": "读取 Squarespace 资料",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -180,
        0
      ],
      "parameters": {
        "options": {},
        "sheetName": {
          "__rl": true,
          "mode": "list",
          "value": 144532755,
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1yf_RYZGFHpMyOvD3RKGSvIFY2vumvI4474Qm_1t4-jM/edit#gid=144532755",
          "cachedResultName": "squarespace_profiles"
        },
        "documentId": {
          "__rl": true,
          "mode": "list",
          "value": "1yf_RYZGFHpMyOvD3RKGSvIFY2vumvI4474Qm_1t4-jM",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1yf_RYZGFHpMyOvD3RKGSvIFY2vumvI4474Qm_1t4-jM/edit?usp=drivesdk",
          "cachedResultName": "Squarespace automation"
        }
      },
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "JgI9maibw5DnBXRP",
          "name": "Google Sheets account"
        }
      },
      "typeVersion": 4.5
    },
    {
      "id": "ffebc458-bd3c-4145-a5ef-1677815f210e",
      "name": "追加 Squarespace 资料",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -200,
        -420
      ],
      "parameters": {
        "columns": {
          "value": {
            "Email": "={{ $json.Email }}",
            "Last Name": "={{ $json['Last Name'] }}",
            "Created On": "={{ $json['Created On'] }}",
            "First Name": "={{ $json['First Name'] }}",
            "Billing Zip": "={{ $json['Billing Zip'] }}",
            "Order Count": "={{ $json['Order Count'] }}",
            "Total Spent": "={{ $json['Total Spent'] }}",
            "Billing City": "={{ $json['Billing City'] }}",
            "Billing Name": "={{ $json['Billing Name'] }}",
            "Shipping Zip": "={{ $json['Billing Zip'] }}",
            "Shipping City": "={{ $json['Billing City'] }}",
            "Shipping Name": "={{ $json['Billing Name'] }}",
            "Billing Country": "={{ $json['Billing Country'] }}",
            "Last Order Date": "={{ $json['Last Order Date'] }}",
            "Shipping Country": "={{ $json['Billing Country'] }}",
            "Subscriber Since": "={{ $json['Subscriber Since'] }}",
            "Billing Address 1": "={{ $json['Billing Address 1'] }}",
            "Billing Address 2": "={{ $json['Billing Address 2'] }}",
            "Subscriber Source": "={{ $json['Subscriber Source'] }}",
            "Shipping Address 1": "={{ $json['Billing Address 1'] }}",
            "Shipping Address 2": "={{ $json['Billing Address 2'] }}",
            "Billing Phone Number": "={{ $json['Billing Phone Number'] }}",
            "Shipping Phone Number": "={{ $json['Billing Phone Number'] }}",
            "Billing Province/State": "={{ $json['Billing Province/State'] }}",
            "Shipping Province/State": "={{ $json['Billing Province/State'] }}"
          },
          "schema": [
            {
              "id": "Email",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "Email",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "First Name",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "First Name",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Last Name",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Last Name",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Created On",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Created On",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Order Count",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Order Count",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Last Order Date",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Last Order Date",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Total Spent",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Total Spent",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Member Since",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Member Since",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Subscriber Since",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Subscriber Since",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Subscriber Source",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Subscriber Source",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Tags",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Tags",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Mailing Lists",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Mailing Lists",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Member Areas",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Member Areas",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Donation Count",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Donation Count",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Last Donation Date",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Last Donation Date",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Total Donation Amount",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Total Donation Amount",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Has Account",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Has Account",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Customer Since",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Customer Since",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Shipping Name",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Shipping Name",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Shipping Address 1",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Shipping Address 1",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Shipping Address 2",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Shipping Address 2",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Shipping City",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Shipping City",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Shipping Zip",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Shipping Zip",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Shipping Province/State",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Shipping Province/State",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Shipping Country",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Shipping Country",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Shipping Phone Number",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Shipping Phone Number",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Billing Name",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Billing Name",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Billing Address 1",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Billing Address 1",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Billing Address 2",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Billing Address 2",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Billing City",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Billing City",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Billing Zip",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Billing Zip",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Billing Province/State",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Billing Province/State",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Billing Country",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Billing Country",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Billing Phone Number",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Billing Phone Number",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Accepts Marketing",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Accepts Marketing",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            }
          ],
          "mappingMode": "defineBelow",
          "matchingColumns": [
            "Email"
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {},
        "operation": "appendOrUpdate",
        "sheetName": {
          "__rl": true,
          "mode": "list",
          "value": 144532755,
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1yf_RYZGFHpMyOvD3RKGSvIFY2vumvI4474Qm_1t4-jM/edit#gid=144532755",
          "cachedResultName": "squarespace_profiles"
        },
        "documentId": {
          "__rl": true,
          "mode": "list",
          "value": "1yf_RYZGFHpMyOvD3RKGSvIFY2vumvI4474Qm_1t4-jM",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1yf_RYZGFHpMyOvD3RKGSvIFY2vumvI4474Qm_1t4-jM/edit?usp=drivesdk",
          "cachedResultName": "Squarespace automation"
        }
      },
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "JgI9maibw5DnBXRP",
          "name": "Google Sheets account"
        }
      },
      "typeVersion": 4.5,
      "alwaysOutputData": true
    },
    {
      "id": "dc5cfb81-0d9b-47fb-a97a-fa20c673283b",
      "name": "遍历项目",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        -360,
        -420
      ],
      "parameters": {
        "options": {},
        "batchSize": 1000
      },
      "typeVersion": 3
    },
    {
      "id": "b319cb05-6b8b-48cb-b7c9-4badee6bbf57",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1240,
        -580
      ],
      "parameters": {
        "width": 340,
        "height": 280,
        "content": "## 转换 Squarespace 资料"
      },
      "typeVersion": 1
    },
    {
      "id": "8b9d6f85-af6e-43b8-a3f1-c63c7893e064",
      "name": "从 Webhook 提交中提取项目",
      "type": "n8n-nodes-base.extractFromFile",
      "position": [
        -580,
        -420
      ],
      "parameters": {
        "options": {},
        "binaryPropertyName": "file"
      },
      "typeVersion": 1
    },
    {
      "id": "ce82f958-081b-4a55-a0d1-8ffb69dee68b",
      "name": "手动触发器",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -580,
        0
      ],
      "parameters": {},
      "typeVersion": 1
    }
  ],
  "active": true,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "05db75a8-16f8-4191-b60b-d515d062bef9",
  "connections": {
    "Webhook": {
      "main": [
        [
          {
            "node": "Extract items from webhook submission",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Manual trigger": {
      "main": [
        [
          {
            "node": "Read Squarespace profiles",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [
          {
            "node": "Shopify Customers",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Append Squarespace profiles",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Read Squarespace profiles": {
      "main": [
        [
          {
            "node": "Shopify Customers",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Append Squarespace profiles": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract items from webhook submission": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

中级 - 销售, 营销

需要付费吗?

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

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

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

作者
bangank36

bangank36

@bangank36

Automation specialist with 10+ years of experience helping SME website owners streamline their workflows—specializing in Squarespace, Shopify, and WordPress. Book an initial consultation for custom n8n automation using my link.

外部链接
在 n8n.io 查看

分享此工作流