通过Mailchimp和Gmail自动化欢迎邮件及折扣码发送
中级
这是一个Social Media, Multimodal AI领域的自动化工作流,包含 7 个节点。主要使用 Gmail, Webhook, Mailchimp 等节点。 通过Mailchimp和Gmail自动化欢迎邮件及折扣码发送
前置要求
- •Google 账号和 Gmail API 凭证
- •HTTP Webhook 端点(n8n 会自动生成)
使用的节点 (7)
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"meta": {
"instanceId": "cbbe3d07d282d90d2165a7ab7800571be416166e6eb660e7a28cfe9b84473f49",
"templateCredsSetupCompleted": true
},
"nodes": [
{
"id": "1363ffcf-aa23-436a-8c53-0a3fbc096cfa",
"name": "Webhook",
"type": "n8n-nodes-base.webhook",
"position": [
-352,
-32
],
"webhookId": "b3d366be-bffc-4d2d-a465-db487976ada0",
"parameters": {
"path": "b3d366be-bffc-4d2d-a465-db487976ada0",
"options": {},
"httpMethod": "POST",
"responseMode": "lastNode"
},
"typeVersion": 2.1
},
{
"id": "36da0cb5-4135-4289-bfd9-2ceb81aea84a",
"name": "创建成员",
"type": "n8n-nodes-base.mailchimp",
"onError": "continueRegularOutput",
"position": [
-128,
-32
],
"parameters": {
"list": "YOUR_MAILCHIMP_LIST_ID ",
"email": "={{ $json.body.email }}",
"status": "subscribed",
"options": {},
"mergeFieldsUi": {
"mergeFieldsValues": [
{
"name": "FNAME",
"value": "={{ $json.body.name }}"
}
]
}
},
"credentials": {
"mailchimpApi": {
"id": "t9AnVp15cqDkacCi",
"name": "Mailchimp account"
}
},
"retryOnFail": false,
"typeVersion": 1,
"alwaysOutputData": false
},
{
"id": "6370189c-3288-4e4a-8c91-cfe831fc96b1",
"name": "发送消息",
"type": "n8n-nodes-base.gmail",
"position": [
96,
-32
],
"webhookId": "c28c4c93-f099-407e-aec7-dcb7ca5c7fb7",
"parameters": {
"sendTo": "={{ $('Webhook').item.json.body.email }}",
"message": "=<!DOCTYPE html> <html> <body style=\"font-family: Arial, sans-serif; max-width: 600px; margin: 0 auto;\"> <div style=\"background-color: #f8f9fa; padding: 20px; text-align: center;\"> <h1 style=\"color: #333;\">Welcome to [Your Business Name]!</h1> <p style=\"font-size: 18px; color: #666;\"> Hi {{ $node[\"Webhook\"].json[\"name\"] || \"there\" }}, </p> <p style=\"font-size: 16px; color: #666; line-height: 1.6;\"> Thank you for joining our community! We're excited to have you on board. </p> <div style=\"background-color: #007bff; color: white; padding: 20px; margin: 20px 0; border-radius: 8px;\"> <h2 style=\"margin: 0;\">Your Welcome Gift!</h2> <p style=\"font-size: 24px; font-weight: bold; margin: 10px 0;\"> WELCOME15 </p> <p style=\"margin: 0;\">Use this code for 15% off your first order</p> </div> <a href=\"https://your-website.com/shop\" style=\"background-color: #28a745; color: white; padding: 15px 30px; text-decoration: none; border-radius: 5px; display: inline-block; margin: 20px 0;\"> Start Shopping </a> <p style=\"font-size: 14px; color: #999; margin-top: 30px;\"> Follow us on social media for the latest updates and offers! </p> <div style=\"margin-top: 20px;\"> <a href=\"https://facebook.com/yourpage\" style=\"margin: 0 10px;\">Facebook</a> <a href=\"https://instagram.com/yourpage\" style=\"margin: 0 10px;\">Instagram</a> <a href=\"https://twitter.com/yourpage\" style=\"margin: 0 10px;\">Twitter</a> </div> </div> </body> </html>",
"options": {},
"subject": "Welcome to Berley! Here's your 15% discount 🎉"
},
"credentials": {
"gmailOAuth2": {
"id": "VI8hpbWunRMMvR6a",
"name": "Gmail account"
}
},
"typeVersion": 2.1
},
{
"id": "36131d9d-d138-4955-ae74-40b765851aef",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
-864,
-240
],
"parameters": {
"width": 304,
"height": 1136,
"content": "## 📧 自动发送含折扣码的欢迎邮件"
},
"typeVersion": 1
},
{
"id": "244bd91b-1dc0-4b0c-8771-4c7da2ebf0f9",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-448,
-192
],
"parameters": {
"color": 6,
"height": 336,
"content": "#### 步骤1:接收注册数据"
},
"typeVersion": 1
},
{
"id": "6768e505-ed3e-4462-8fc3-2825580d9cbc",
"name": "便签2",
"type": "n8n-nodes-base.stickyNote",
"position": [
-192,
-192
],
"parameters": {
"color": 3,
"height": 336,
"content": "#### 步骤2:添加到邮件列表"
},
"typeVersion": 1
},
{
"id": "de85be05-732e-4ab9-b12f-5c35dee75a96",
"name": "便签3",
"type": "n8n-nodes-base.stickyNote",
"position": [
64,
-192
],
"parameters": {
"color": 4,
"height": 336,
"content": "#### 步骤3:发送欢迎邮件"
},
"typeVersion": 1
}
],
"pinData": {
"Webhook": [
{
"body": {
"name": "Bideen",
"email": "abideen.datascienceofficial@gmail.com",
"source": "website",
"timestamp": "2025-08-23T20:12:07.935Z"
},
"query": {},
"params": {},
"headers": {
"host": "primary-production-a4a8.up.railway.app",
"accept": "*/*",
"origin": "https://a7b923f7-55b0-4612-98a3-bec7fe294375.sandbox.lovable.dev",
"referer": "https://a7b923f7-55b0-4612-98a3-bec7fe294375.sandbox.lovable.dev/",
"priority": "u=1, i",
"sec-ch-ua": "\"Not;A=Brand\";v=\"99\", \"Microsoft Edge\";v=\"139\", \"Chromium\";v=\"139\"",
"x-real-ip": "102.88.52.28",
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36 Edg/139.0.0.0",
"content-type": "application/json",
"content-length": "123",
"sec-fetch-dest": "empty",
"sec-fetch-mode": "cors",
"sec-fetch-site": "cross-site",
"x-railway-edge": "railway/europe-west4-drams3a",
"accept-encoding": "gzip, deflate, br, zstd",
"accept-language": "en-US,en;q=0.9,en-GB;q=0.8",
"x-forwarded-for": "102.88.52.28",
"x-request-start": "1755979928499",
"sec-ch-ua-mobile": "?0",
"x-forwarded-host": "primary-production-a4a8.up.railway.app",
"x-forwarded-proto": "https",
"sec-ch-ua-platform": "\"Windows\"",
"x-railway-request-id": "NJw37UqQQF-nnduU5nX1uw"
},
"webhookUrl": "https://primary-production-a4a8.up.railway.app/webhook-test/b3d366be-bffc-4d2d-a465-db487976ada0",
"executionMode": "test"
}
]
},
"connections": {
"Webhook": {
"main": [
[
{
"node": "Create a member",
"type": "main",
"index": 0
}
]
]
},
"Create a member": {
"main": [
[
{
"node": "Send a message",
"type": "main",
"index": 0
}
],
[]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
中级 - 社交媒体, 多模态 AI
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
收件箱管理代理
使用GPT-5分类自动标记Gmail邮件
Gmail
Gmail Trigger
Lm Chat Open Ai
+2
8 节点Abideen Bello
AI 摘要总结
使用Claude、GPT-4o和OpenAI TTS将新闻标题转换为音频新闻简报
使用Claude、GPT-4o和OpenAI TTS将新闻标题转换为音频新闻简报
Gmail
Split Out
Aggregate
+6
18 节点Abideen Bello
内容创作
为 HubSpot 联系人和 SharePoint 生成 AI 撰写的新闻稿和素材
使用 GPT-4o、AI 图像和视频为 HubSpot 和 SharePoint 创建双语新闻稿
If
Set
Code
+15
49 节点plemeo
社交媒体
社交评论代理
基于 Claude Sonnet 和 Trigify 的 AI 社交媒体思想领导力系统
If
Set
Slack
+6
14 节点Max Mitcham
社交媒体
发布视频和图片 - 新 Blotato 节点
使用 Blotato 和 Airtable 自动发布内容到 9 个社交平台
Set
Code
Wait
+8
51 节点Max aka Mosheh
社交媒体
电商生日折扣自动化
使用Google Sheet和Gmail实现电商生日折扣邮件自动化
If
Gmail
Function
+3
7 节点Marth
社交媒体
工作流信息
难度等级
中级
节点数量7
分类2
节点类型4
作者
Abideen Bello
@bideenData/Automation consultant with experience helping Sales & Marketing teams to streamline their processes. Use my link to book an initial consultation for custom n8n work.
外部链接
在 n8n.io 查看 →
分享此工作流