8
n8n 中文网amn8n.com

将 Eventbrite 订单和退款同步至 KlickTipp 实现自动化活动营销

中级

这是一个CRM领域的自动化工作流,包含 14 个节点。主要使用 If, Switch, HttpRequest, Klicktipp, EventbriteTrigger 等节点。 将 Eventbrite 订单和退款同步至 KlickTipp,实现自动化活动营销

前置要求
  • 可能需要目标 API 的认证凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "meta": {
    "instanceId": "95b3ab5a70ab1c8c1906357a367f1b236ef12a1409406fd992f60255f0f95f85",
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "a4cc12f5-2786-4402-9079-966c6f8a81f2",
      "name": "标记联系人退款",
      "type": "n8n-nodes-klicktipp.klicktipp",
      "notes": "This node tags contacts for refunds.",
      "position": [
        896,
        16
      ],
      "parameters": {
        "email": "={{ $('Check for new orders and refunds').item.json.email }}",
        "tagId": [
          "13637325"
        ],
        "resource": "contact-tagging"
      },
      "credentials": {
        "klickTippApi": {
          "id": "K9JyBdCM4SZc1cXl",
          "name": "DEMO KlickTipp account"
        }
      },
      "notesInFlow": true,
      "typeVersion": 3
    },
    {
      "id": "5321884e-bc36-4ad1-be46-3b28414cc8f4",
      "name": "订单还是退款?",
      "type": "n8n-nodes-base.switch",
      "notes": "This node checks if an order or a refund needs to be processed.",
      "position": [
        -16,
        -80
      ],
      "parameters": {
        "rules": {
          "values": [
            {
              "outputKey": "New order",
              "conditions": {
                "options": {
                  "version": 2,
                  "leftValue": "",
                  "caseSensitive": true,
                  "typeValidation": "strict"
                },
                "combinator": "and",
                "conditions": [
                  {
                    "id": "9d5be80a-15b4-4dd8-88a4-bc31ccc7c2ad",
                    "operator": {
                      "type": "string",
                      "operation": "equals"
                    },
                    "leftValue": "={{ $json.status }}",
                    "rightValue": "placed"
                  }
                ]
              },
              "renameOutput": true
            },
            {
              "outputKey": "Refund",
              "conditions": {
                "options": {
                  "version": 2,
                  "leftValue": "",
                  "caseSensitive": true,
                  "typeValidation": "strict"
                },
                "combinator": "and",
                "conditions": [
                  {
                    "id": "3bb81b62-3cb9-4359-b759-44421aac9950",
                    "operator": {
                      "name": "filter.operator.equals",
                      "type": "string",
                      "operation": "equals"
                    },
                    "leftValue": "={{ $json.status }}",
                    "rightValue": "refunded"
                  }
                ]
              },
              "renameOutput": true
            }
          ]
        },
        "options": {}
      },
      "notesInFlow": true,
      "typeVersion": 3.3
    },
    {
      "id": "d63a04d2-1db1-4789-8d19-d06b49e7025f",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -368,
        -336
      ],
      "parameters": {
        "color": 7,
        "width": 704,
        "height": 528,
        "content": "## 1. 数据接收与路由"
      },
      "typeVersion": 1
    },
    {
      "id": "2f0e4612-f179-46eb-9955-fc3b7c309b16",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        352,
        -336
      ],
      "parameters": {
        "color": 7,
        "height": 528,
        "content": "## 2. 保存主要数据"
      },
      "typeVersion": 1
    },
    {
      "id": "953ef4fe-23a5-4ee5-88ff-12c4a2caf06e",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        608,
        -336
      ],
      "parameters": {
        "color": 7,
        "width": 496,
        "height": 528,
        "content": "## 2. 保存用于分段的次要数据"
      },
      "typeVersion": 1
    },
    {
      "id": "f335cc38-9204-457a-b949-debd1a17b334",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -48,
        208
      ],
      "parameters": {
        "width": 816,
        "height": 1296,
        "content": "**社区节点免责声明**"
      },
      "typeVersion": 1
    },
    {
      "id": "0134961c-7958-4494-b887-1b0f08b449d9",
      "name": "检查新订单和退款",
      "type": "n8n-nodes-base.eventbriteTrigger",
      "notes": "This node listens to new orders and refunds.",
      "position": [
        -240,
        -80
      ],
      "webhookId": "396b6aa3-2bd7-4ae7-8cce-a90801f93019",
      "parameters": {
        "event": "1764245398479",
        "actions": [
          "order.placed",
          "order.refunded"
        ],
        "organization": "2927333867811",
        "authentication": "oAuth2"
      },
      "credentials": {
        "eventbriteOAuth2Api": {
          "id": "YuhRI76SN30EeZOY",
          "name": "Integrations Eventbrite account"
        }
      },
      "notesInFlow": true,
      "typeVersion": 1
    },
    {
      "id": "2a02a619-e48a-4cc0-852a-de8fa6f502be",
      "name": "获取事件数据",
      "type": "n8n-nodes-base.httpRequest",
      "notes": "This node fetches the event details.",
      "position": [
        224,
        -176
      ],
      "parameters": {
        "url": "=https://www.eventbriteapi.com/v3/events/{{ $json.event_id }}",
        "options": {},
        "authentication": "predefinedCredentialType",
        "nodeCredentialType": "eventbriteOAuth2Api"
      },
      "credentials": {
        "eventbriteOAuth2Api": {
          "id": "YuhRI76SN30EeZOY",
          "name": "Integrations Eventbrite account"
        }
      },
      "notesInFlow": true,
      "typeVersion": 4.2
    },
    {
      "id": "f3c2eed2-d820-47c4-97d8-7e7663e98319",
      "name": "将事件参与者订阅到 KlickTipp",
      "type": "n8n-nodes-klicktipp.klicktipp",
      "notes": "This node subscribes the order to KlickTipp.",
      "position": [
        448,
        -176
      ],
      "parameters": {
        "email": "={{ $('Check for new orders and refunds').item.json.email }}",
        "tagId": "13634764",
        "fields": {
          "dataFields": [
            {
              "fieldId": "fieldFirstName",
              "fieldValue": "={{ $('Check for new orders and refunds').item.json.first_name }}"
            },
            {
              "fieldId": "fieldLastName",
              "fieldValue": "={{ $('Check for new orders and refunds').item.json.last_name }}"
            },
            {
              "fieldId": "field224369",
              "fieldValue": "={{ $json.name.text }}"
            },
            {
              "fieldId": "field224367",
              "fieldValue": "={{ $json.url }}"
            },
            {
              "fieldId": "field224368",
              "fieldValue": "={{ \n  // Take the ISO 8601 string from your JSON\n  new Date($json.end.utc) \n  \n  // Convert it to milliseconds since 1970-01-01 (Unix Epoch)\n  .getTime() \n  \n  // Divide by 1000 to get seconds instead of milliseconds\n  / 1000 \n}}"
            }
          ]
        },
        "listId": "358895",
        "resource": "subscriber",
        "operation": "subscribe"
      },
      "credentials": {
        "klickTippApi": {
          "id": "K9JyBdCM4SZc1cXl",
          "name": "DEMO KlickTipp account"
        }
      },
      "notesInFlow": true,
      "typeVersion": 3
    },
    {
      "id": "779d2e30-944b-488f-ae3a-347f4d7ddc74",
      "name": "是否购买?",
      "type": "n8n-nodes-base.if",
      "notes": "This node checks if the event was free or subject to a fee.",
      "position": [
        672,
        -176
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "2c02f37d-a3f0-4136-9cc3-d941f2d4cf2c",
              "operator": {
                "type": "number",
                "operation": "gt"
              },
              "leftValue": "={{ \n  parseFloat(\n    // Take the display string (e.g. \"$12.34\", \"€10,50\", \"£99.99\")\n    $('Check for new orders and refunds').item.json.costs.base_price.display\n\n      // Remove everything except digits, dot, or comma\n      .replace(/[^0-9.,]/g, '')\n\n      // Replace comma with dot (handles European formats like \"10,50\")\n      .replace(',', '.')\n  )\n}}",
              "rightValue": 0
            }
          ]
        }
      },
      "notesInFlow": true,
      "typeVersion": 2.2
    },
    {
      "id": "81523d9d-1f50-4e71-b953-42972447ec95",
      "name": "购买时标记参与者",
      "type": "n8n-nodes-klicktipp.klicktipp",
      "position": [
        896,
        -192
      ],
      "parameters": {
        "email": "={{ $('Subscribe event attendee to KlickTipp').item.json.email }}",
        "tagId": [
          "13637318"
        ],
        "resource": "contact-tagging"
      },
      "credentials": {
        "klickTippApi": {
          "id": "K9JyBdCM4SZc1cXl",
          "name": "DEMO KlickTipp account"
        }
      },
      "typeVersion": 3
    },
    {
      "id": "98277075-dcca-418a-a0ff-5d7a3107dbbf",
      "name": "便签4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        320,
        -512
      ],
      "parameters": {
        "width": 288,
        "content": "## 2. 处理订单"
      },
      "typeVersion": 1
    },
    {
      "id": "d78bd9a5-d694-4cc7-a40a-81e77c011ddc",
      "name": "便签5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -224,
        -528
      ],
      "parameters": {
        "width": 320,
        "height": 176,
        "content": "## 1. 数据接收"
      },
      "typeVersion": 1
    },
    {
      "id": "4f6a7b79-8a18-464f-aed2-652df7faade7",
      "name": "便签6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        704,
        -512
      ],
      "parameters": {
        "width": 272,
        "content": "## 3. 退款与分段"
      },
      "typeVersion": 1
    }
  ],
  "pinData": {
    "Check for new orders and refunds": [
      {
        "id": "13443123123",
        "name": "Oleksandr Kovalenko",
        "costs": {
          "tax": {
            "value": 0,
            "display": "$0.00",
            "currency": "USD",
            "major_value": "0.00"
          },
          "gross": {
            "value": 0,
            "display": "$0.00",
            "currency": "USD",
            "major_value": "0.00"
          },
          "base_price": {
            "value": 0,
            "display": "$10.00",
            "currency": "USD",
            "major_value": "0.00"
          },
          "payment_fee": {
            "value": 0,
            "display": "$0.00",
            "currency": "USD",
            "major_value": "0.00"
          },
          "eventbrite_fee": {
            "value": 0,
            "display": "$0.00",
            "currency": "USD",
            "major_value": "0.00"
          }
        },
        "email": "example@gmail.com",
        "status": "placed",
        "changed": "2025-10-08T13:41:12Z",
        "created": "2025-10-08T09:45:51Z",
        "event_id": "1764245398479",
        "last_name": "Kovalenko",
        "first_name": "Oleksandr",
        "resource_uri": "https://www.eventbriteapi.com/v3/orders/13123123123/",
        "time_remaining": null
      }
    ]
  },
  "connections": {
    "Purchase?": {
      "main": [
        [
          {
            "node": "Tag attendee in case of purchase",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get event data": {
      "main": [
        [
          {
            "node": "Subscribe event attendee to KlickTipp",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Order or refund?": {
      "main": [
        [
          {
            "node": "Get event data",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Tag contact for refund",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check for new orders and refunds": {
      "main": [
        [
          {
            "node": "Order or refund?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Subscribe event attendee to KlickTipp": {
      "main": [
        [
          {
            "node": "Purchase?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

中级 - 客户关系管理

需要付费吗?

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

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

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

作者
KlickTipp

KlickTipp

@KlickTipp

Reach more people. 100% GDPR compliant. Quickly create automated email campaigns, SMS and marketing automations. Market your knowledge independently of Google & Co., sell lucrative products and activate your customers.

外部链接
在 n8n.io 查看

分享此工作流