8
n8n 中文网amn8n.com

将新的CentralStationCRM联系人同步到Rapidmail并经过Slack批准

高级

这是一个Social Media领域的自动化工作流,包含 17 个节点。主要使用 If, Slack, HttpRequest, ScheduleTrigger 等节点。 通过CentralStationCRM、Rapidmail和Slack同步联系人

前置要求
  • Slack Bot Token 或 Webhook URL
  • 可能需要目标 API 的认证凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "Gb148LV3fQumTIib",
  "meta": {
    "instanceId": "68ab8a7bd891eafb85f915471f38591da0135936f93fdf7e27d0ebea24fea950"
  },
  "name": "将新的 CentralStationCRM 联系人同步到 Rapidmail 并经过 Slack 批准",
  "tags": [],
  "nodes": [
    {
      "id": "2554daa2-472b-4b11-a085-f41099a04c44",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        0
      ],
      "parameters": {
        "width": 460,
        "height": 600,
        "content": "![CSCRM 徽标](https://s3.42he.com/cscrm-marketing-page-production/Logo_Central_Station_CRM_0dd02e23d2.jpeg)"
      },
      "typeVersion": 1
    },
    {
      "id": "1656ee49-2fff-4546-b6d7-beae921fb1df",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        500,
        0
      ],
      "parameters": {
        "color": 7,
        "width": 420,
        "height": 900,
        "content": "## 1. 设置 CentralStationCRM API 密钥"
      },
      "typeVersion": 1
    },
    {
      "id": "82d0791a-06e9-4290-8761-41843b1baf9c",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1460,
        280
      ],
      "parameters": {
        "color": 7,
        "width": 220,
        "height": 620,
        "content": "## 3. 设置计划触发器"
      },
      "typeVersion": 1
    },
    {
      "id": "a784ef35-0049-4b45-9bbc-74782f63dce7",
      "name": "便签8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        940,
        0
      ],
      "parameters": {
        "color": 7,
        "width": 440,
        "height": 900,
        "content": "## 2. 设置 CentralStationCRM n8n 凭据"
      },
      "typeVersion": 1
    },
    {
      "id": "e97f9fc6-aea9-4338-8fff-8808c6da845d",
      "name": "便签9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        640
      ],
      "parameters": {
        "width": 460,
        "height": 260,
        "content": "## 此工作流中的工具"
      },
      "typeVersion": 1
    },
    {
      "id": "7d0a24d7-ec4c-4ef6-bbc9-0ef06e9df75d",
      "name": "便签10",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1740,
        280
      ],
      "parameters": {
        "color": 7,
        "height": 620,
        "content": "## 4. 设置新人员/天"
      },
      "typeVersion": 1
    },
    {
      "id": "73f5ec89-44ef-4a66-95ae-db8b7132a5c2",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2240,
        280
      ],
      "parameters": {
        "color": 7,
        "width": 260,
        "height": 620,
        "content": "## 5. 设置 Slack"
      },
      "typeVersion": 1
    },
    {
      "id": "d7532ad9-3d99-46d0-92bd-b72954fc52bd",
      "name": "便签4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2720,
        280
      ],
      "parameters": {
        "color": 7,
        "width": 300,
        "height": 620,
        "content": "## 6. 设置“新闻通讯”标签节点"
      },
      "typeVersion": 1
    },
    {
      "id": "6a8f6aae-20e4-42a7-a48c-065786a761f2",
      "name": "便签5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3080,
        -40
      ],
      "parameters": {
        "color": 7,
        "width": 420,
        "height": 940,
        "content": "## 7. 设置 Rapidmail"
      },
      "typeVersion": 1
    },
    {
      "id": "6a448ff0-4471-4518-a65f-77793c113d5e",
      "name": "工作流每天下午 5 点触发",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        1520,
        660
      ],
      "parameters": {
        "rule": {
          "interval": [
            {
              "triggerAtHour": 17
            }
          ]
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "06c21060-8716-4ad3-8322-a266921d6266",
      "name": "人员是否有“新闻通讯”标签?",
      "type": "n8n-nodes-base.if",
      "position": [
        2060,
        660
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "loose"
          },
          "combinator": "or",
          "conditions": [
            {
              "id": "4b075c94-c553-4dee-a4f0-d0f501982c53",
              "operator": {
                "type": "string",
                "operation": "contains"
              },
              "leftValue": "={{ $json.person.tags }}",
              "rightValue": "\"Newsletter\""
            }
          ]
        },
        "looseTypeValidation": true
      },
      "typeVersion": 2.2
    },
    {
      "id": "26b86935-fdf9-408e-9bc5-21d90b288f2a",
      "name": "从 CentralStationCRM 获取每天的新人员",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1800,
        660
      ],
      "parameters": {
        "url": "https://api.centralstationcrm.net/api/people",
        "options": {},
        "jsonQuery": "={\"filter\" : {\"created_at\": {\"larger_than\": \"{{ new Date().beginningOf('day') }}\"}},\n\"includes\" : \"tags addrs companies emails\"}",
        "sendQuery": true,
        "sendHeaders": true,
        "specifyQuery": "json",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "headerParameters": {
          "parameters": [
            {
              "name": "accept",
              "value": "application/json"
            }
          ]
        }
      },
      "credentials": {
        "httpHeaderAuth": {
          "id": "pqUNcvQBnqpxmMAD",
          "name": "Header Auth CSCRM test16"
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "dfa74ddb-d737-4aaa-85f7-057feae4b7c2",
      "name": "在 Slack 中询问:添加“新闻通讯”标签?",
      "type": "n8n-nodes-base.slack",
      "position": [
        2320,
        720
      ],
      "webhookId": "b3074b49-edc1-4fc4-95a8-ad3b44dc06f2",
      "parameters": {
        "user": {
          "__rl": true,
          "mode": "username",
          "value": "@Christian"
        },
        "message": "=Hey! \n\nWould you like to add\n\n{{ $('Get new people per day from CentralStationCRM').item.json.person.first_name }} {{ $('Get new people per day from CentralStationCRM').item.json.person.name }}\n\nto your Newsletter?",
        "options": {},
        "operation": "sendAndWait",
        "authentication": "oAuth2",
        "approvalOptions": {
          "values": {
            "approvalType": "double",
            "approveLabel": "Ja",
            "disapproveLabel": "Nein"
          }
        }
      },
      "credentials": {
        "slackOAuth2Api": {
          "id": "5zdDeP9mj00DoND3",
          "name": "Slack account 2"
        }
      },
      "typeVersion": 2.3
    },
    {
      "id": "b538acb5-0aec-466a-8628-15cd426931e6",
      "name": "用户是否点击了“是”按钮?",
      "type": "n8n-nodes-base.if",
      "position": [
        2560,
        720
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "loose"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "46a4026a-17ef-4db0-92c5-3e2d9b333565",
              "operator": {
                "name": "filter.operator.equals",
                "type": "string",
                "operation": "equals"
              },
              "leftValue": "={{ $json.data.approved }}",
              "rightValue": "true"
            }
          ]
        },
        "looseTypeValidation": true
      },
      "typeVersion": 2.2
    },
    {
      "id": "a7eb00a7-2b13-48cd-af60-4d3261c28c8b",
      "name": "结束工作流",
      "type": "n8n-nodes-base.noOp",
      "position": [
        2820,
        940
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "c8ebeafa-0a8d-483c-b1d2-f961e412487a",
      "name": "给人员添加“新闻通讯”标签",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2820,
        760
      ],
      "parameters": {
        "url": "=https://api.centralstationcrm.net/api/people/{{ $('Does a person have a \"Newsletter\" tag?').item.json.person.id }}/tags",
        "method": "POST",
        "options": {
          "response": {
            "response": {
              "responseFormat": "text"
            }
          }
        },
        "jsonBody": "{\n  \"tag\": {\n    \"name\": \"Newsletter\"}\n}",
        "sendBody": true,
        "sendHeaders": true,
        "specifyBody": "=json",
        "authentication": "genericCredentialType",
        "bodyParameters": {
          "parameters": [
            {}
          ]
        },
        "genericAuthType": "httpHeaderAuth",
        "headerParameters": {
          "parameters": [
            {
              "name": "accept",
              "value": "application/json"
            },
            {
              "name": "Content-Type",
              "value": "application/json"
            }
          ]
        }
      },
      "credentials": {
        "httpHeaderAuth": {
          "id": "pqUNcvQBnqpxmMAD",
          "name": "Header Auth CSCRM test16"
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "1247d9f4-5524-4333-acce-1404fb336966",
      "name": "将人员写入 Rapidmail 列表",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        3240,
        640
      ],
      "parameters": {
        "url": "https://apiv3.emailsys.net/v1/recipients",
        "method": "POST",
        "options": {},
        "jsonBody": "={\n\"status\": \"active\",\n\"recipientlist_id\": ENTER-RAPIDMAIL-LIST-ID,\n\"email\": \"{{ $json.person.emails[0].name }}\",\n\"firstname\": \"{{ $json.person.first_name }}\",\n  \"lastname\": \"{{ $json.person.name }}\"\n}",
        "sendBody": true,
        "sendHeaders": true,
        "specifyBody": "json",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpBasicAuth",
        "headerParameters": {
          "parameters": [
            {
              "name": "Content-Type",
              "value": "application/json"
            },
            {
              "name": "Accept",
              "value": "application/json"
            }
          ]
        }
      },
      "credentials": {
        "httpBasicAuth": {
          "id": "KQ2iia1wATkcAOK6",
          "name": "Christian Rapidmail"
        },
        "httpHeaderAuth": {
          "id": "pqUNcvQBnqpxmMAD",
          "name": "Header Auth CSCRM test16"
        }
      },
      "typeVersion": 4.2
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "9e0ee432-5ede-429f-9b08-3bbee620c6c9",
  "connections": {
    "Workflow triggers daily at 5AM": {
      "main": [
        [
          {
            "node": "Get new people per day from CentralStationCRM",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "give person a \"Newsletter\" tag": {
      "main": [
        [
          {
            "node": "Write person to Rapidmail list",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "ask in Slack: add \"Newsletter\" tag?": {
      "main": [
        [
          {
            "node": "Did the user click the \"Yes\" button?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Did the user click the \"Yes\" button?": {
      "main": [
        [
          {
            "node": "give person a \"Newsletter\" tag",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "end Workflow",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Does a person have a \"Newsletter\" tag?": {
      "main": [
        [
          {
            "node": "Write person to Rapidmail list",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "ask in Slack: add \"Newsletter\" tag?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get new people per day from CentralStationCRM": {
      "main": [
        [
          {
            "node": "Does a person have a \"Newsletter\" tag?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

高级 - 社交媒体

需要付费吗?

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

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

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

作者
CentralStationCRM

CentralStationCRM

@centralstationcrm

CentralStationCRM ist das einfache und intuitive CRM für kleine Teams. Auf n8n teilen wir unsere Workflow-Ideen: für schnellere Abläufe und einen besseren Arbeitsalltag. CentralStationCRM is the simple and intuitive CRM for small businesses. On n8, we share CRM-workflow ideas to speed up your working life!

外部链接
在 n8n.io 查看

分享此工作流