Google_Sheets_to_MailChimp_Subscriber_Sync
中级
这是一个Social Media领域的自动化工作流,包含 7 个节点。主要使用 Set, Code, Mailchimp, GoogleSheets, ManualTrigger 等节点。 从Google Sheets自动导入联系人到MailChimp订阅列表
前置要求
- •Google Sheets API 凭证
分类
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"id": "google-sheets-to-mailchimp",
"meta": {
"instanceId": "template",
"templateCredsSetupCompleted": false
},
"name": "Google_Sheets_to_MailChimp_Subscriber_Sync",
"tags": [
"email-marketing",
"mailchimp",
"google-sheets",
"automation"
],
"nodes": [
{
"id": "597e03c8-f634-4b1c-add0-e98c39019603",
"name": "工作流文档",
"type": "n8n-nodes-base.stickyNote",
"position": [
-2200,
-340
],
"parameters": {
"color": 4,
"width": 400,
"height": 800,
"content": "# Google Sheets 到 MailChimp 同步工作流"
},
"typeVersion": 1
},
{
"id": "1bef150a-fd2b-4615-9252-81b094ef99f2",
"name": "编辑字段",
"type": "n8n-nodes-base.set",
"position": [
-1020,
-340
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "bf70886e-befb-4d2e-914c-01645a18d80c",
"name": "Names",
"type": "string",
"value": "={{ $json.Names }}"
},
{
"id": "abea01b7-4a8f-4a57-aa9b-773a56a43bd6",
"name": "Email address",
"type": "string",
"value": "={{ $json['Email address'] }}"
},
{
"id": "443f7274-b0ac-46cd-8e0f-f65e21fe0dbb",
"name": "Phone Number",
"type": "string",
"value": "={{ $json['Phone Number'] }}"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "d5d6c985-cb23-4919-9267-e57c4138fe61",
"name": "点击\"执行工作流\"时",
"type": "n8n-nodes-base.manualTrigger",
"position": [
-1460,
-340
],
"parameters": {},
"typeVersion": 1
},
{
"id": "2b86344d-a425-43f0-82f9-e441279ce653",
"name": "格式化订阅者数据",
"type": "n8n-nodes-base.code",
"position": [
-800,
-340
],
"parameters": {
"jsCode": "const subscribers = [];\n\nfor (const item of $input.all()) {\n subscribers.push({\n json: {\n email_address: item.json[\"Email address\"],\n status: \"subscribed\",\n merge_fields: {\n FNAME: item.json.Names.split(' ')[0] || '',\n LNAME: item.json.Names.split(' ').slice(1).join(' ') || '',\n PHONE: item.json[\"Phone Number\"] || ''\n }\n }\n });\n}\n\nreturn subscribers;\n"
},
"typeVersion": 2
},
{
"id": "f83a85d7-5411-48a6-9f43-b16ea14d3ea9",
"name": "添加到 MailChimp",
"type": "n8n-nodes-base.mailchimp",
"onError": "continueRegularOutput",
"position": [
-540,
-340
],
"parameters": {
"list": "YOUR_MAILCHIMP_LIST_ID",
"email": "={{ $node['Format Subscriber Data'].json.email_address }}",
"status": "subscribed",
"options": {},
"mergeFieldsUi": {
"mergeFieldsValues": [
{
"name": "FNAME",
"value": "={{ $json.merge_fields.FNAME }}"
},
{
"name": "LNAME",
"value": "={{ $json.merge_fields.LNAME }}"
},
{
"name": "PHONE",
"value": "={{ $json.merge_fields.PHONE }}"
}
]
}
},
"typeVersion": 1
},
{
"id": "1d40a00a-17f1-4ad3-9ea8-e31534f9ebae",
"name": "创建导入摘要",
"type": "n8n-nodes-base.set",
"position": [
-240,
-340
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "summary-report",
"name": "importSummary",
"type": "string",
"value": "📊 **MailChimp Import Summary**\n\n**Import Date:** {{ DateTime.now().toFormat('yyyy-MM-dd HH:mm:ss') }}\n**Total Processed:** {{ $items().length }} contacts\n\n**Email:** {{ $json.email_address }}\n**Status:** {{ $json.status || 'Processed' }}\n\n**Source:** Google Sheets Import"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "c33257fa-1fd0-4547-8113-0eccf826319d",
"name": "获取 Google 表格数据",
"type": "n8n-nodes-base.googleSheets",
"position": [
-1240,
-340
],
"parameters": {
"options": {},
"sheetName": {
"__rl": true,
"mode": "name",
"value": "YOUR_SHEET_NAME"
},
"documentId": {
"__rl": true,
"mode": "id",
"value": "YOUR_GOOGLE_SHEET_ID"
}
},
"typeVersion": 4.6
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "1.0.0",
"connections": {
"Edit Fields": {
"main": [
[
{
"node": "Format Subscriber Data",
"type": "main",
"index": 0
}
]
]
},
"Add to MailChimp": {
"main": [
[
{
"node": "Create Import Summary",
"type": "main",
"index": 0
}
]
]
},
"Get Google Sheet Data": {
"main": [
[
{
"node": "Edit Fields",
"type": "main",
"index": 0
}
]
]
},
"Format Subscriber Data": {
"main": [
[
{
"node": "Add to MailChimp",
"type": "main",
"index": 0
}
]
]
},
"When clicking 'Execute workflow'": {
"main": [
[
{
"node": "Get Google Sheet Data",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
中级 - 社交媒体
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
Facebook页面评论管理机器人:回复、删除、封禁和通知
AI驱动的Facebook评论管理:自动回复、删除、封禁和通知
If
Set
Code
+18
59 节点SpaGreen Creative
社交媒体
MailChimp自动化
基于AI的餐厅通讯生成器,集成Mailchimp和Telegram审批
If
Set
Code
+16
43 节点Femi Ad
人工智能
基于Supabase、Google表格和Gmail的自动化用户重新激活系统
使用Supabase、Google表格和Gmail的自动化用户重新激活系统
Set
Code
Gmail
+9
14 节点iamvaar
社交媒体
Twitter品牌自动推广
使用Anthropic Claude AI和Google Sheets报告自动进行Twitter品牌推广
Set
Code
Wait
+10
26 节点Pavlo Hurhu
社交媒体
在Google表格中标记来自Gmail投递错误信息的退回邮件
基于Gmail投递错误信息在Google表格中标记退回邮件
If
Set
Code
+4
18 节点Stéphane Heckel
社交媒体
LinkedIn内容工厂(含OpenAI研究与品牌图像生成)
LinkedIn内容工厂,集成OpenAI研究与Replicate品牌图像生成
If
Set
Code
+10
23 节点Onur
社交媒体
工作流信息
难度等级
中级
节点数量7
分类1
节点类型6
作者
Femi Ad
@hgrayAI automation specialist with over 1 year of experience empowering entrepreneurs and business owners to scale their operations through intelligent workflow solutions. Leveraging my background in project management and IT, I help transform manual processes into streamlined automated systems. Book a discovery call to explore how custom AI solutions can accelerate your business growth
外部链接
在 n8n.io 查看 →
分享此工作流