8
n8n 中文网amn8n.com

双向同步 Google 通讯录与 Notion

高级

这是一个Other领域的自动化工作流,包含 82 个节点。主要使用 If, Set, Merge, Filter, Notion 等节点。 双向同步 Google 通讯录与 Notion

前置要求
  • Notion API Key
  • 可能需要目标 API 的认证凭证

分类

工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "meta": {
    "instanceId": "d6b502dfa4d9dd072cdc5c2bb763558661053f651289291352a84403e01b3d1b",
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "4f0ccf33-b4ac-4c45-b3ec-1344c61c787c",
      "name": "便签4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1600,
        -960
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "ebcc9088-5d7f-4a6c-bad0-c3d6cd42f752",
      "name": "按群组筛选",
      "type": "n8n-nodes-base.filter",
      "position": [
        -1020,
        1560
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "b73f4d1d-90b3-4f92-a790-b7fbfe04201b",
      "name": "获取所有联系人",
      "type": "n8n-nodes-base.googleContacts",
      "position": [
        -1260,
        1560
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "22c2fb46-b78b-44ff-a756-9691c71fdfaa",
      "name": "### 需要帮助?",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1600,
        1300
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "6ead29eb-6584-485a-bc60-af1d934b5765",
      "name": "提取电话和地址1",
      "type": "n8n-nodes-base.set",
      "position": [
        -760,
        1560
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "4d481068-2b8e-4d55-84df-952740dc0c6b",
      "name": "## 试试看!",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1600,
        -540
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "5b907325-59d1-47f1-9580-a3f91423759a",
      "name": "设置最后更新者自动化1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -320,
        1560
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "f7cd0eb0-f816-41bb-b524-3027771e78c6",
      "name": "新建联系人",
      "type": "n8n-nodes-base.if",
      "position": [
        160,
        200
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "da3b911f-4d2b-4b50-a464-6e1ba51516fb",
      "name": "Google | 创建联系人",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        640,
        -180
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "41a8eb6a-83cc-48e0-9abe-5b74f84f03e1",
      "name": "添加 Google ID",
      "type": "n8n-nodes-base.notion",
      "position": [
        880,
        -180
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "7f310d4c-a5dd-42e8-bd97-7c200cf93d60",
      "name": "## 1. 创建新的自定义 OpenAI 凭据",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1040,
        -320
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "fd5eb3cc-b4af-400a-9de2-2e771091f994",
      "name": "查找联系人",
      "type": "n8n-nodes-base.googleContacts",
      "position": [
        640,
        200
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "b0c5ea3a-443f-44bd-a37b-5a229d96174b",
      "name": "Google | 更新联系人",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        880,
        200
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "29153309-e9af-4e14-b5c0-774647746d7a",
      "name": "便签 11",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -80,
        -40
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "9bc70ac3-d693-424a-ae09-d5d95fe2f903",
      "name": "保存 ETag",
      "type": "n8n-nodes-base.notion",
      "position": [
        1120,
        200
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "aa9b7233-8603-4912-9172-6e47f006a7fc",
      "name": "全局变量2",
      "type": "n8n-nodes-base.set",
      "position": [
        -240,
        200
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "7aba02df-5f44-4fb8-b85e-c36a861752f1",
      "name": "保存 ETag1",
      "type": "n8n-nodes-base.notion",
      "position": [
        1340,
        -180
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "55645208-507f-4e00-87dc-77dc3b7ac885",
      "name": "便签 12",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1720,
        -120
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "b4846ec7-30c1-48fd-9d52-dc343c2a90b3",
      "name": "页面已创建",
      "type": "n8n-nodes-base.notionTrigger",
      "position": [
        -720,
        100
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "f87fd1c1-c226-4bac-9b6b-b6aa911a840e",
      "name": "页面已更新",
      "type": "n8n-nodes-base.notionTrigger",
      "position": [
        -720,
        280
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "1d8e357e-ef63-4a52-b35e-86ea7572485c",
      "name": "列出所有群组1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1580,
        40
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "06b4cc24-1c2e-4e13-9f69-ff8e7a2d1b02",
      "name": "便签15",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1600,
        220
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "fc52c841-3c9b-418c-8e37-e1a09e8a356f",
      "name": "Notion1",
      "type": "n8n-nodes-base.notion",
      "position": [
        -1360,
        420
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "8d233336-2f1b-49a8-acb5-af7d4a515f37",
      "name": "便签16",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1600,
        620
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "78fa3949-43b3-4be5-a32e-6bc5b816c5bb",
      "name": "便签17",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1600,
        980
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "c1534060-c259-417d-b12a-8d3b540426bc",
      "name": "便签18",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1600,
        -380
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "c9fb3e1e-1d33-4fca-ae84-33683c1984d7",
      "name": "全局变量",
      "type": "n8n-nodes-base.set",
      "position": [
        -1500,
        1560
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "53dddc03-4f2c-42e1-b549-62e36df24de0",
      "name": "页面已删除",
      "type": "n8n-nodes-base.if",
      "position": [
        380,
        200
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "39374967-7339-49d6-aedf-287326b1d0f2",
      "name": "删除联系人",
      "type": "n8n-nodes-base.googleContacts",
      "position": [
        640,
        20
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "cf0ab94b-e2cc-4776-b483-a6422b9a6db6",
      "name": "页面被用户编辑",
      "type": "n8n-nodes-base.filter",
      "position": [
        -20,
        200
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "e5ae8cb8-c900-47fb-8482-60a39cae9674",
      "name": "合并1",
      "type": "n8n-nodes-base.merge",
      "position": [
        -440,
        200
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "1da368ca-4dc0-47cf-9e04-f1648c4db51d",
      "name": "获取同步令牌",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        480,
        500
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "134db072-eea8-4a75-9633-41721542292e",
      "name": "Google | 获取更新",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        280,
        980
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "27e7e0e0-1997-40b9-8a6f-4c6ec4872d60",
      "name": "保存联系人1",
      "type": "n8n-nodes-base.notion",
      "position": [
        -540,
        1560
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "6ea8a24f-5a29-466b-8005-aa84957856f7",
      "name": "保存 ETag2",
      "type": "n8n-nodes-base.notion",
      "position": [
        -100,
        1560
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "8a57379e-0f64-4b26-a561-c80ed9d1134e",
      "name": "便签19",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1540,
        1480
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "a3e5b28e-c5a2-4a74-88bb-d258a58f1768",
      "name": "检索同步令牌",
      "type": "n8n-nodes-base.notion",
      "position": [
        0,
        980
      ],
      "parameters": {},
      "typeVersion": 2.2,
      "alwaysOutputData": true
    },
    {
      "id": "2a9bf9a2-fb5c-4334-a50f-ffecd943711e",
      "name": "便签21",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -80,
        840
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "a1e46e45-11ee-4f84-8327-d780c1f28112",
      "name": "便利贴22",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1600,
        1120
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "33b890a6-36dc-4454-a7c9-f4e95cda59f8",
      "name": "更新同步令牌",
      "type": "n8n-nodes-base.notion",
      "position": [
        720,
        500
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "2a9d1604-a6f0-4575-a0a7-3074a0c7ed85",
      "name": "拆分联系人",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        480,
        980
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "980ddcb5-b06d-4f1a-a8da-380a2e60124f",
      "name": "提取电话和地址3",
      "type": "n8n-nodes-base.set",
      "position": [
        2200,
        960
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "33492013-b92c-4d37-b109-a07a2b071a96",
      "name": "仅限类型 CONTACT1",
      "type": "n8n-nodes-base.filter",
      "position": [
        980,
        980
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "8a4fe4a3-0658-483b-a68c-245b991ed01d",
      "name": "便利贴23",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        920,
        860
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "37b6f2ce-d9b5-4ae9-8bf7-73c900d879d9",
      "name": "合并2",
      "type": "n8n-nodes-base.merge",
      "position": [
        1540,
        960
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "f9b205e9-d013-4f4c-827a-d1a417066484",
      "name": "存在于 Notion1",
      "type": "n8n-nodes-base.if",
      "position": [
        1760,
        960
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "d9f425b3-cfbc-407b-80d2-5bbadfca9bd7",
      "name": "保存联系人2",
      "type": "n8n-nodes-base.notion",
      "position": [
        2400,
        960
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "ec5cc134-cf73-4643-afd2-dbd0c6d34bb1",
      "name": "Google | 设置最后更新者自动化",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2600,
        960
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "300a6c12-78dc-4090-a4cb-c42b6cbb2d3a",
      "name": "联系人在 Google 中被编辑1",
      "type": "n8n-nodes-base.filter",
      "position": [
        2200,
        500
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "f7ff87be-0720-4af1-9b7d-afc37d51436d",
      "name": "更新 ETag2",
      "type": "n8n-nodes-base.notion",
      "position": [
        2800,
        960
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "584d7bd9-65a2-414a-aa2a-27d20bb6265b",
      "name": "Google | 设置最后更新者自动化3",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        3000,
        500
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "6e2991bf-d27e-4286-8df6-372ffa8b2ffa",
      "name": "更新 ETag3",
      "type": "n8n-nodes-base.notion",
      "position": [
        3200,
        500
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "a4a5924b-ba0f-4ddb-b846-1cbdd6171aa8",
      "name": "更新联系人",
      "type": "n8n-nodes-base.notion",
      "position": [
        2800,
        500
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "f187f041-2404-4b65-b2f0-ae906a1d21fd",
      "name": "提取电话和地址4",
      "type": "n8n-nodes-base.set",
      "position": [
        2400,
        500
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "90965ad8-cecb-4785-9e68-9314cd042c9a",
      "name": "便签24",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2120,
        140
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "6b7e6901-7621-4a56-be4e-280d64bdcf2d",
      "name": "查找联系人1",
      "type": "n8n-nodes-base.notion",
      "position": [
        1260,
        840
      ],
      "parameters": {},
      "retryOnFail": true,
      "typeVersion": 2.2,
      "alwaysOutputData": false
    },
    {
      "id": "5fbebd92-8533-4e70-ac66-d7ed972a3300",
      "name": "按群组筛选2",
      "type": "n8n-nodes-base.filter",
      "position": [
        720,
        980
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "a2e2250d-0aed-4a9e-8944-b54b25ceff9c",
      "name": "全局变量4",
      "type": "n8n-nodes-base.set",
      "position": [
        -240,
        980
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "33d90576-6800-4b17-ae37-d26e1984f877",
      "name": "便签26",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -280,
        120
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "ccae7fe5-96c8-46a5-af2c-f073ea247ed8",
      "name": "每1分钟1",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -720,
        980
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "85c4828a-74ad-4ea9-9a74-6b3f5cfd63ab",
      "name": "联系人仍存在",
      "type": "n8n-nodes-base.if",
      "position": [
        2000,
        740
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "e9c3184f-4c67-43d7-be92-4b17d8176610",
      "name": "删除联系人2",
      "type": "n8n-nodes-base.notion",
      "position": [
        2200,
        740
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "f54c944b-30d5-4e55-8c0a-14b14fe9c9a2",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -280,
        900
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "525df2c0-6a5b-491f-9bb3-f74f3f3cdbb7",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1600,
        1800
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "267fab59-d773-4772-900b-a7da5169a538",
      "name": "仅现有联系人",
      "type": "n8n-nodes-base.filter",
      "position": [
        2000,
        960
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "1f840bd4-555a-4982-b026-298e84837db8",
      "name": "有数据",
      "type": "n8n-nodes-base.filter",
      "position": [
        2600,
        500
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "5e7d021e-2b11-47ce-b885-9f8614bae54f",
      "name": "Google | 将联系人添加到特定群组",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1120,
        -180
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "865cf5f9-4e00-423b-84d6-c1b1f1b614d8",
      "name": "拆分群组",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        -1360,
        40
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "f1792e43-504e-4d0a-8f74-b29f91e6d4c1",
      "name": "整理字段",
      "type": "n8n-nodes-base.set",
      "position": [
        -1140,
        40
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "aa1b536e-225d-47d5-87e9-aa1bdc968d75",
      "name": "GET 模型",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        640,
        700
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "493d65f2-4bb2-4c87-8378-c657eb349e70",
      "name": "便签10",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1100,
        1300
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "883f3c8f-20ae-4704-9e76-1681189e3135",
      "name": "每日凌晨3点",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -460,
        -600
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "a90c6ce5-cb37-40e6-b40f-69345a0c10d5",
      "name": "获取所有联系人2",
      "type": "n8n-nodes-base.googleContacts",
      "position": [
        -40,
        -600
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "d30bc4c8-eb8e-42e7-b6ef-95a04aedcd2e",
      "name": "拆分用户定义字段",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        140,
        -600
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "3622f35d-4242-4643-bdf3-50a385cc7d25",
      "name": "仅自动化处理的联系人",
      "type": "n8n-nodes-base.filter",
      "position": [
        340,
        -600
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "56642f40-5486-43c2-8381-d6541ff161c1",
      "name": "全局变量3",
      "type": "n8n-nodes-base.set",
      "position": [
        -240,
        -600
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "a0b8a70e-5fc6-449e-a32b-1959f3dff61f",
      "name": "便利贴27",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -280,
        -680
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "b63503e3-3fb9-4bc0-91a4-521b1adfabc7",
      "name": "Sticky Note38",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -800,
        -720
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "4c8211b2-f53a-46a3-b3eb-53f8d4fb6a6b",
      "name": "在 Notion 中查找联系人",
      "type": "n8n-nodes-base.notion",
      "maxTries": 5,
      "position": [
        560,
        -600
      ],
      "parameters": {},
      "retryOnFail": true,
      "typeVersion": 2.2,
      "waitBetweenTries": 5000
    },
    {
      "id": "1deee1c9-cb14-4ecc-9b96-47b159cc82f7",
      "name": "已删除页面",
      "type": "n8n-nodes-base.filter",
      "position": [
        760,
        -600
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "4feb3f55-1c1b-4880-b427-84ff96e469d8",
      "name": "删除联系人1",
      "type": "n8n-nodes-base.googleContacts",
      "position": [
        960,
        -600
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "97d12ca8-c717-4c95-9586-d0161c800ebb",
      "name": "当点击\"测试工作流\"时",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -460,
        -780
      ],
      "parameters": {},
      "typeVersion": 1
    }
  ],
  "pinData": {},
  "connections": {
    "Merge1": {
      "main": [
        [
          {
            "node": "Globals2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge2": {
      "main": [
        [
          {
            "node": "Exists in Notion1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Globals": {
      "main": [
        [
          {
            "node": "Get all contacts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Globals2": {
      "main": [
        [
          {
            "node": "Page was edited by user",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Globals3": {
      "main": [
        [
          {
            "node": "Get all contacts2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Globals4": {
      "main": [
        [
          {
            "node": "Retrieve Sync Token",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Has data": {
      "main": [
        [
          {
            "node": "Update contact",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Every 1min1": {
      "main": [
        [
          {
            "node": "Globals4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "new contact": {
      "main": [
        [
          {
            "node": "Google | Create Contact",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Page deleted",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Find contact": {
      "main": [
        [
          {
            "node": "Google | Update Contact",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Page Created": {
      "main": [
        [
          {
            "node": "Merge1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Page deleted": {
      "main": [
        [
          {
            "node": "Delete contact",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Find contact",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Page updated": {
      "main": [
        [
          {
            "node": "Merge1",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Split Groups": {
      "main": [
        [
          {
            "node": "Organize fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Add Google ID": {
      "main": [
        [
          {
            "node": "Google | Add contact to specific group",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Deleted pages": {
      "main": [
        [
          {
            "node": "Delete contact1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get syncToken": {
      "main": [
        [
          {
            "node": "Update Sync Token",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Save contact1": {
      "main": [
        [
          {
            "node": "Set lastUpdatedByAutomation1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Save contact2": {
      "main": [
        [
          {
            "node": "Google | Set lastUpdatedByAutomation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Find contacts1": {
      "main": [
        [
          {
            "node": "Merge2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Contacts": {
      "main": [
        [
          {
            "node": "Filter by Group2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update contact": {
      "main": [
        [
          {
            "node": "Google | Set lastUpdatedByAutomation3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter by Group": {
      "main": [
        [
          {
            "node": "Extract phones and addresses1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Every day at 3am": {
      "main": [
        [
          {
            "node": "Globals3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter by Group2": {
      "main": [
        [
          {
            "node": "Only type CONTACT1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get all contacts": {
      "main": [
        [
          {
            "node": "Filter by Group",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "List all groups1": {
      "main": [
        [
          {
            "node": "Split Groups",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Exists in Notion1": {
      "main": [
        [
          {
            "node": "Contact still exists",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Only existing contacts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get all contacts2": {
      "main": [
        [
          {
            "node": "Split userDefined",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split userDefined": {
      "main": [
        [
          {
            "node": "Only contacts that were automated",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Only type CONTACT1": {
      "main": [
        [
          {
            "node": "Find contacts1",
            "type": "main",
            "index": 0
          },
          {
            "node": "Merge2",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Retrieve Sync Token": {
      "main": [
        [
          {
            "node": "Google | Get updates",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Contact still exists": {
      "main": [
        [
          {
            "node": "Contact was edited in Google1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Delete contact2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google | Get updates": {
      "main": [
        [
          {
            "node": "Get syncToken",
            "type": "main",
            "index": 0
          },
          {
            "node": "Split Contacts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Only existing contacts": {
      "main": [
        [
          {
            "node": "Extract phones and addresses3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Find contacts in Notion": {
      "main": [
        [
          {
            "node": "Deleted pages",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google | Create Contact": {
      "main": [
        [
          {
            "node": "Add Google ID",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google | Update Contact": {
      "main": [
        [
          {
            "node": "Save ETag",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Page was edited by user": {
      "main": [
        [
          {
            "node": "new contact",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set lastUpdatedByAutomation1": {
      "main": [
        [
          {
            "node": "Save ETag2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Contact was edited in Google1": {
      "main": [
        [
          {
            "node": "Extract phones and addresses4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract phones and addresses1": {
      "main": [
        [
          {
            "node": "Save contact1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract phones and addresses3": {
      "main": [
        [
          {
            "node": "Save contact2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract phones and addresses4": {
      "main": [
        [
          {
            "node": "Has data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Only contacts that were automated": {
      "main": [
        [
          {
            "node": "Find contacts in Notion",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Test workflow’": {
      "main": [
        [
          {
            "node": "Globals3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google | Set lastUpdatedByAutomation": {
      "main": [
        [
          {
            "node": "Update ETag2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google | Set lastUpdatedByAutomation3": {
      "main": [
        [
          {
            "node": "Update ETag3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google | Add contact to specific group": {
      "main": [
        [
          {
            "node": "Save ETag1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

高级 - 其他

需要付费吗?

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

工作流信息
难度等级
高级
节点数量82
分类1
节点类型12
难度说明

适合高级用户,包含 16+ 个节点的复杂工作流

作者
Solomon

Solomon

@solomon

Freelance consultant from Brazil, specializing in automations and data analysis. I work with select clients, addressing their toughest projects. For business inquiries, email me at automations.solomon@gmail.com or message me on Telegram for a faster response.

外部链接
在 n8n.io 查看

分享此工作流