电商生日折扣自动化
中级
这是一个Social Media, Multimodal AI领域的自动化工作流,包含 7 个节点。主要使用 If, Gmail, Function, GoogleSheets, ScheduleTrigger 等节点。 使用Google Sheet和Gmail实现电商生日折扣邮件自动化
前置要求
- •Google 账号和 Gmail API 凭证
- •Google Sheets API 凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"id": "YvShKs1XBbEEboRO",
"meta": {
"instanceId": "a287613f1596da776459594685fbf4e2b4a12124f80ab8c8772f5e37bff103ae",
"templateCredsSetupCompleted": true
},
"name": "工作流说明:使用 Google Sheet 和 Gmail 实现的电子商务自动化生日折扣",
"tags": [],
"nodes": [
{
"id": "ce1fb25e-decc-4943-ae7c-cb16d6377344",
"name": "每日计划",
"type": "n8n-nodes-base.scheduleTrigger",
"position": [
224,
224
],
"parameters": {
"rule": {
"interval": [
{}
]
}
},
"typeVersion": 1
},
{
"id": "6ec3e314-e7d2-4548-936e-07d47a62e400",
"name": "获取客户数据",
"type": "n8n-nodes-base.googleSheets",
"position": [
464,
224
],
"parameters": {
"operation": "getAll",
"documentId": {
"__rl": true,
"mode": "list",
"value": ""
}
},
"credentials": {
"googleSheetsOAuth2Api": {
"id": null,
"name": "YOUR_GOOGLE_SHEETS_CREDENTIAL"
}
},
"typeVersion": 3
},
{
"id": "fdce0115-b0c4-4660-81aa-87f83075bf09",
"name": "是他们的生日吗?",
"type": "n8n-nodes-base.if",
"position": [
704,
224
],
"parameters": {
"conditions": {
"boolean": [
{
"value1": "={{ $json.birthday }}",
"value2": "={{ $now.toFormat('MM-dd') }}"
}
]
}
},
"typeVersion": 1
},
{
"id": "62332fbf-d069-46e3-a19e-0d6c45bd588f",
"name": "生成折扣码",
"type": "n8n-nodes-base.function",
"position": [
944,
224
],
"parameters": {},
"typeVersion": 1
},
{
"id": "b93688ae-975a-4278-9fa6-015ab3e9b7d9",
"name": "发送生日邮件",
"type": "n8n-nodes-base.gmail",
"position": [
1184,
224
],
"parameters": {
"message": "Hi {{ $json.name }},\n\nHappy Birthday! We wanted to celebrate you with a special gift.\n\nHere is your unique discount code for 20% off your next order:\n\n{{ $json.discountCode }}\n\nEnjoy your day!\n\nBest regards,\nYour E-commerce Team",
"subject": "Happy Birthday! Here's a gift from us!",
"additionalFields": {}
},
"credentials": {
"gmailOAuth2": {
"id": null,
"name": "YOUR_GMAIL_CREDENTIAL"
}
},
"typeVersion": 1
},
{
"id": "b6f9b241-4f67-47d5-8c26-5a13b1587567",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
160,
176
],
"parameters": {
"color": 3,
"width": 1232,
"height": 224,
"content": "## 流程"
},
"typeVersion": 1
},
{
"id": "89f14e7e-81a3-4206-b7e4-09cac5daf811",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
160,
448
],
"parameters": {
"color": 4,
"width": 1232,
"height": 1072,
"content": "# ⚙ 工作流说明:电子商务自动化生日折扣"
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "55533bfd-b195-447d-987c-7f248288c5ae",
"connections": {
"Daily Schedule": {
"main": [
[
{
"node": "Get Customer Data",
"type": "main",
"index": 0
}
]
]
},
"Get Customer Data": {
"main": [
[
{
"node": "Is It Their Birthday?",
"type": "main",
"index": 0
}
]
]
},
"Is It Their Birthday?": {
"main": [
[
{
"node": "Generate Discount Code",
"type": "main",
"index": 0
}
]
]
},
"Generate Discount Code": {
"main": [
[
{
"node": "Send Birthday Email",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
中级 - 社交媒体, 多模态 AI
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
使用 DocuSign 和 Trello 的自动化候选人管理与反馈系统
使用 Slack、DocuSign、Trello 和 Gmail 通知的自动化招聘流程
If
Code
Wait
+9
29 节点Marth
人力资源
过期房源复活代理
使用OpenAI和Gmail跟进复活过期房源
If
Gmail
Google Sheets
+3
7 节点Bheta Maranatha
客户培育
电商运营中心 AI 系统
使用 Slack、Sheets 和 Gmail 自动化电商订单、库存与反馈
If
Gmail
Slack
+6
16 节点Marth
客户关系管理
自动化发票提醒
使用 Google Sheets 和 Gmail 的自动化发票付款提醒
If
Gmail
Function
+3
7 节点Marth
发票处理
员工表彰自动化与Slack、Sheets和Gmail
使用 Slack、Sheets、Gmail 和可选 GPT-4 实现员工表彰自动化
If
Code
Gmail
+6
16 节点Marth
人力资源
自动化高级潜在客户触达与培育活动系统(含AI)
通过GPT-4、LinkedIn和Hunter.io自动化个性化B2B触达
If
Code
Wait
+9
30 节点Marth
客户培育
工作流信息
难度等级
中级
节点数量7
分类2
节点类型6
作者
Marth
@marthSimplifying Business with Smart Automation. I create and share user-friendly, highly efficient n8n workflow templates for SMEs, focusing on digital marketing, sales, and operational excellence. Get ready to automate, innovate, and elevate your business. Connect me on Linkedin for custom solutions.
外部链接
在 n8n.io 查看 →
分享此工作流