Squarespace 订单自动履行流程
中级
这是一个Sales, Other, Product领域的自动化工作流,包含 12 个节点。主要使用 Set, Filter, SplitOut, HttpRequest, ManualTrigger 等节点。 Squarespace 订单自动履行流程
前置要求
- •可能需要目标 API 的认证凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"meta": {
"instanceId": "e634e668fe1fc93a75c4f2a7fc0dad807ca318b79654157eadb9578496acbc76"
},
"nodes": [
{
"id": "754006f5-1a7e-4e29-9850-e38b1d0c0d09",
"name": "点击“执行”时",
"type": "n8n-nodes-base.manualTrigger",
"position": [
360,
80
],
"parameters": {},
"typeVersion": 1
},
{
"id": "6b7b0d05-38cc-4c2d-8a71-874ff5ad29d9",
"name": "拆分订单",
"type": "n8n-nodes-base.splitOut",
"position": [
1080,
200
],
"parameters": {
"options": {},
"fieldToSplitOut": "result"
},
"typeVersion": 1
},
{
"id": "1494f1ff-f377-4d56-8da7-274f0c182588",
"name": "全局变量",
"type": "n8n-nodes-base.set",
"position": [
600,
200
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "7411b768-9861-414c-aeaa-2743b3d61a3b",
"name": "api-version",
"type": "string",
"value": "1.0"
},
{
"id": "6cf546c5-5737-4dbd-851b-17d68e0a3780",
"name": "modifiedAfter",
"type": "string",
"value": ""
},
{
"id": "452efa28-2dc6-4ea3-a7a2-c35d100d0382",
"name": "modifiedBefore",
"type": "string",
"value": ""
},
{
"id": "81c4dc54-86bf-4432-a23f-22c7ea831e74",
"name": "cursor",
"type": "string",
"value": ""
},
{
"id": "fa31a552-0d2d-4eb3-8476-44024e1fdc81",
"name": "fulfillmentStatus",
"type": "string",
"value": "PENDING"
},
{
"id": "489ff3e6-7bc3-4940-9312-e4ace8e1db9f",
"name": "maxPage",
"type": "number",
"value": -1
}
]
}
},
"notesInFlow": true,
"typeVersion": 3.4
},
{
"id": "01557e82-9f89-4030-af0f-6663ea945191",
"name": "便签 3",
"type": "n8n-nodes-base.stickyNote",
"position": [
540,
80
],
"parameters": {
"color": 4,
"width": 150,
"height": 80,
"content": "## 编辑此节点 👇"
},
"typeVersion": 1
},
{
"id": "9d9d361a-dd12-4c57-9f76-7c4738b5af1e",
"name": "定时触发器",
"type": "n8n-nodes-base.scheduleTrigger",
"position": [
360,
340
],
"parameters": {
"rule": {
"interval": [
{}
]
}
},
"typeVersion": 1.2
},
{
"id": "a3e41614-ca4e-4730-a4ab-1e9933ef71d5",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
0,
0
],
"parameters": {
"width": 320,
"height": 660,
"content": "## 使用 n8n 实现 Squarespace 履约自动化"
},
"typeVersion": 1
},
{
"id": "bc78dac5-3fa9-4b65-a5c3-2196ed53a81c",
"name": "查询待处理订单",
"type": "n8n-nodes-base.httpRequest",
"position": [
840,
200
],
"parameters": {
"url": "=https://api.squarespace.com/{{ $json[\"api-version\"] }}/commerce/orders",
"options": {
"pagination": {
"pagination": {
"parameters": {
"parameters": [
{
"name": "cursor",
"value": "={{ $response.body.pagination.nextPageCursor }}"
}
]
},
"maxRequests": "={{ $json.maxPage === -1 ? Infinity : $json.maxPage }}",
"limitPagesFetched": true,
"completeExpression": "={{ !$response.body.pagination.nextPageCursor }}",
"paginationCompleteWhen": "other"
}
}
},
"sendQuery": true,
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"queryParameters": {
"parameters": [
{
"name": "modifiedAfter",
"value": "={{ $json.modifiedAfter }}"
},
{
"name": "=modifiedBefore",
"value": "={{ $json.modifiedBefore }}"
},
{
"name": "cursor",
"value": "={{ $json.cursor }}"
},
{
"name": "=fulfillmentStatus",
"value": "={{ $json.fulfillmentStatus }}"
}
]
}
},
"credentials": {
"oAuth2Api": {
"id": "5eAFOixVzslPr99y",
"name": "Squarespace OAuth 2.0"
},
"httpHeaderAuth": {
"id": "iiLmD473RYjGLbCA",
"name": "Squarespace API key - Apps script"
}
},
"typeVersion": 4.2
},
{
"id": "a5723a03-41d1-49a9-9baa-c7482fdf82a3",
"name": "遍历项目",
"type": "n8n-nodes-base.splitInBatches",
"position": [
1640,
200
],
"parameters": {
"options": {}
},
"typeVersion": 3
},
{
"id": "7e656389-ca9c-4ff4-9db1-68f84a13e605",
"name": "履约订单",
"type": "n8n-nodes-base.httpRequest",
"position": [
1940,
200
],
"parameters": {
"url": "=https://api.squarespace.com/{{ $('Globals').item.json[\"api-version\"] }}/commerce/orders/{{ $('Filter Orders').item.json.id }}/fulfillments",
"method": "POST",
"options": {},
"jsonBody": "{\n \"shouldSendNotification\": true\n}",
"sendBody": true,
"specifyBody": "json",
"authentication": "genericCredentialType",
"genericAuthType": "oAuth2Api"
},
"credentials": {
"oAuth2Api": {
"id": "5eAFOixVzslPr99y",
"name": "Squarespace OAuth 2.0"
},
"httpHeaderAuth": {
"id": "iiLmD473RYjGLbCA",
"name": "Squarespace API key - Apps script"
}
},
"typeVersion": 4.2
},
{
"id": "b14b6db8-a027-41c2-a030-aa09b0003d73",
"name": "便签 4",
"type": "n8n-nodes-base.stickyNote",
"position": [
1880,
0
],
"parameters": {
"width": 232,
"height": 346,
"content": "## 创建履约 👇"
},
"typeVersion": 1
},
{
"id": "effd0876-0003-4e3f-ad61-cfe3d4391e67",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
1280,
-80
],
"parameters": {
"height": 440,
"content": "## 筛选待履行的订单 👇"
},
"typeVersion": 1
},
{
"id": "ac8538f5-b93b-43c5-9100-33fe3f6cd70b",
"name": "筛选订单",
"type": "n8n-nodes-base.filter",
"position": [
1340,
200
],
"parameters": {
"options": {},
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "298103c1-a5b4-407e-aba6-bee37463422f",
"operator": {
"type": "number",
"operation": "gt"
},
"leftValue": "={{ (new Date().getTime() - new Date($json.createdOn).getTime()) / (1000 * 60 * 60) }}",
"rightValue": 24
}
]
}
},
"typeVersion": 2.2
}
],
"pinData": {},
"connections": {
"Globals": {
"main": [
[
{
"node": "Query pending Orders",
"type": "main",
"index": 0
}
]
]
},
"Filter Orders": {
"main": [
[
{
"node": "Loop Over Items",
"type": "main",
"index": 0
}
]
]
},
"Fulfill Order": {
"main": [
[
{
"node": "Loop Over Items",
"type": "main",
"index": 0
}
]
]
},
"Loop Over Items": {
"main": [
[],
[
{
"node": "Fulfill Order",
"type": "main",
"index": 0
}
]
]
},
"Schedule Trigger": {
"main": [
[
{
"node": "Globals",
"type": "main",
"index": 0
}
]
]
},
"Split Out Order ": {
"main": [
[
{
"node": "Filter Orders",
"type": "main",
"index": 0
}
]
]
},
"Query pending Orders": {
"main": [
[
{
"node": "Split Out Order ",
"type": "main",
"index": 0
}
]
]
},
"On clicking 'execute'": {
"main": [
[
{
"node": "Globals",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
中级 - 销售, 其他, 产品
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
同步 Shopify 客户到 Google Sheets + Squarespace 兼容 CSV
将 Shopify 客户数据同步到 Google Sheets 并生成 Squarespace 兼容的 CSV
If
Set
Code
+7
13 节点bangank36
销售
将Shopify所有订单获取到Google表格
将Shopify所有订单获取到Google表格
If
Set
Code
+6
11 节点bangank36
其他
获取Squarespace所有订单到Google表格
将Squarespace所有订单获取到Google表格
Set
Split Out
Http Request
+4
8 节点bangank36
销售
实时Notion Todoist双向同步模板
使用Redis的Notion Todoist实时双向同步
If
Set
Code
+26
246 节点Mario
销售
将Trustpilot评论抓取到Google Sheets
抓取Trustpilot评论到Google Sheets + 兼容HelpfulCrowd的CSV格式
Set
Code
Split Out
+5
13 节点bangank36
产品
Zoom AI 会议助手
Zoom AI 会议助手:生成邮件摘要、创建 ClickUp 任务和安排跟进电话
Set
Code
Zoom
+16
24 节点Friedemann Schuetz
销售
工作流信息
难度等级
中级
节点数量12
分类3
节点类型8
作者
bangank36
@bangank36Automation 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 查看 →
分享此工作流