简单订单确认和客户通知工作流,用于新电商订单
高级
这是一个CRM, Multimodal AI领域的自动化工作流,包含 17 个节点。主要使用 If, Set, Webhook, EmailSend, RespondToWebhook 等节点。 使用邮件通知和 Webhooks 自动化电商订单处理
前置要求
- •HTTP Webhook 端点(n8n 会自动生成)
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"name": "简单订单确认和客户通知工作流,用于新电商订单",
"tags": [
{
"id": "ecommerce",
"name": "E-commerce",
"createdAt": "2025-01-01T00:00:00.000Z",
"updatedAt": "2025-01-01T00:00:00.000Z"
},
{
"id": "beginner-friendly",
"name": "Beginner Friendly",
"createdAt": "2025-01-01T00:00:00.000Z",
"updatedAt": "2025-01-01T00:00:00.000Z"
},
{
"id": "order-automation",
"name": "Order Automation",
"createdAt": "2025-01-01T00:00:00.000Z",
"updatedAt": "2025-01-01T00:00:00.000Z"
}
],
"nodes": [
{
"id": "a1b2c3d4-e5f6-7890-1234-567890abcdef",
"name": "新订单Webhook",
"type": "n8n-nodes-base.webhook",
"position": [
240,
300
],
"parameters": {
"path": "new-order",
"options": {},
"httpMethod": "POST",
"responseMode": "responseNode"
},
"typeVersion": 1
},
{
"id": "b2c3d4e5-f6g7-8901-2345-678901bcdefg",
"name": "工作流说明",
"type": "n8n-nodes-base.stickyNote",
"position": [
-200,
100
],
"parameters": {
"color": 4,
"width": 432,
"height": 464,
"content": "## 🛒 简单电商订单自动化"
},
"typeVersion": 1
},
{
"id": "c3d4e5f6-g7h8-9012-3456-789012cdefgh",
"name": "店铺配置",
"type": "n8n-nodes-base.set",
"position": [
480,
300
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "STORE_NAME",
"name": "STORE_NAME",
"type": "string",
"value": "Your Store Name"
},
{
"id": "STORE_EMAIL",
"name": "STORE_EMAIL",
"type": "string",
"value": "orders@yourstore.com"
},
{
"id": "SUPPORT_EMAIL",
"name": "SUPPORT_EMAIL",
"type": "string",
"value": "support@yourstore.com"
},
{
"id": "STORE_PHONE",
"name": "STORE_PHONE",
"type": "string",
"value": "(555) 123-4567"
},
{
"id": "STORE_WEBSITE",
"name": "STORE_WEBSITE",
"type": "string",
"value": "https://yourstore.com"
},
{
"id": "TEAM_EMAIL",
"name": "TEAM_EMAIL",
"type": "string",
"value": "team@yourstore.com"
}
]
}
},
"typeVersion": 3.2
},
{
"id": "d4e5f6g7-h8i9-0123-4567-890123defghi",
"name": "提取订单备注",
"type": "n8n-nodes-base.stickyNote",
"position": [
640,
120
],
"parameters": {
"width": 280,
"height": 160,
"content": "📦 **步骤1:提取订单数据**"
},
"typeVersion": 1
},
{
"id": "e5f6g7h8-i9j0-1234-5678-901234efghij",
"name": "提取订单详情",
"type": "n8n-nodes-base.set",
"position": [
720,
300
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "order_number",
"name": "order_number",
"type": "string",
"value": "={{ $json.order_number || $json.id || $json.order_id || 'N/A' }}"
},
{
"id": "customer_name",
"name": "customer_name",
"type": "string",
"value": "={{ $json.customer?.name || $json.billing_address?.name || $json.customer_name || 'Valued Customer' }}"
},
{
"id": "customer_email",
"name": "customer_email",
"type": "string",
"value": "={{ $json.customer?.email || $json.email || $json.customer_email || '' }}"
},
{
"id": "order_total",
"name": "order_total",
"type": "string",
"value": "={{ $json.total_price || $json.total || $json.amount || '0.00' }}"
},
{
"id": "currency",
"name": "currency",
"type": "string",
"value": "={{ $json.currency || $json.currency_code || 'USD' }}"
},
{
"id": "order_date",
"name": "order_date",
"type": "string",
"value": "={{ $json.created_at || $json.order_date || new Date().toISOString() }}"
},
{
"id": "payment_status",
"name": "payment_status",
"type": "string",
"value": "={{ $json.payment_status || $json.financial_status || 'pending' }}"
}
]
}
},
"typeVersion": 3.2
},
{
"id": "f6g7h8i9-j0k1-2345-6789-012345fghijk",
"name": "验证备注",
"type": "n8n-nodes-base.stickyNote",
"position": [
880,
140
],
"parameters": {
"width": 280,
"height": 140,
"content": "✅ **步骤2:验证订单**"
},
"typeVersion": 1
},
{
"id": "g7h8i9j0-k1l2-3456-7890-123456ghijkl",
"name": "验证订单数据",
"type": "n8n-nodes-base.if",
"position": [
960,
300
],
"parameters": {
"options": {},
"conditions": {
"options": {
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "has_email",
"operator": {
"type": "string",
"operation": "notEmpty"
},
"leftValue": "={{ $json.customer_email }}",
"rightValue": ""
},
{
"id": "has_order_number",
"operator": {
"type": "string",
"operation": "notEqual"
},
"leftValue": "={{ $json.order_number }}",
"rightValue": "N/A"
}
]
}
},
"typeVersion": 2
},
{
"id": "h8i9j0k1-l2m3-4567-8901-234567hijklm",
"name": "客户邮件备注",
"type": "n8n-nodes-base.stickyNote",
"position": [
1120,
120
],
"parameters": {
"width": 280,
"height": 160,
"content": "📧 **步骤3:发送客户邮件**"
},
"typeVersion": 1
},
{
"id": "i9j0k1l2-m3n4-5678-9012-345678ijklmn",
"name": "发送客户确认",
"type": "n8n-nodes-base.emailSend",
"position": [
1200,
260
],
"parameters": {
"message": "Dear {{ $json.customer_name }},\\n\\nThank you for your order! We're excited to confirm that we've received your order and are preparing it for shipment.\\n\\n📦 ORDER DETAILS:\\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\\nOrder Number: #{{ $json.order_number }}\\nOrder Date: {{ new Date($json.order_date).toLocaleDateString() }}\\nOrder Total: {{ $json.currency }} {{ $json.order_total }}\\nPayment Status: {{ $json.payment_status }}\\n\\n🚚 WHAT'S NEXT:\\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\\n• We'll process your order within 1-2 business days\\n• You'll receive a shipping confirmation email with tracking information\\n• Estimated delivery: 3-7 business days\\n\\n📞 NEED HELP?\\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\\nIf you have any questions about your order, please don't hesitate to contact us:\\n\\nEmail: {{ $('Store Configuration').first().json.SUPPORT_EMAIL }}\\nPhone: {{ $('Store Configuration').first().json.STORE_PHONE }}\\nWebsite: {{ $('Store Configuration').first().json.STORE_WEBSITE }}\\n\\nThank you for choosing {{ $('Store Configuration').first().json.STORE_NAME }}!\\n\\nBest regards,\\nThe {{ $('Store Configuration').first().json.STORE_NAME }} Team",
"options": {
"ccEmail": "",
"bccEmail": "",
"allowUnauthorizedCerts": false
},
"subject": "Order Confirmation #{{ $json.order_number }} - {{ $('Store Configuration').first().json.STORE_NAME }}",
"toEmail": "={{ $json.customer_email }}",
"fromEmail": "={{ $('Store Configuration').first().json.STORE_EMAIL }}"
},
"credentials": {
"smtp": {
"id": "YOUR_EMAIL_CREDENTIAL_ID",
"name": "Gmail SMTP"
}
},
"typeVersion": 2.1
},
{
"id": "j0k1l2m3-n4o5-6789-0123-456789jklmno",
"name": "团队通知备注",
"type": "n8n-nodes-base.stickyNote",
"position": [
1360,
120
],
"parameters": {
"width": 280,
"height": 160,
"content": "🔔 **步骤4:通知团队**"
},
"typeVersion": 1
},
{
"id": "k1l2m3n4-o5p6-7890-1234-567890klmnop",
"name": "发送团队通知",
"type": "n8n-nodes-base.emailSend",
"position": [
1440,
260
],
"parameters": {
"message": "🎉 NEW ORDER RECEIVED!\\n\\n📦 ORDER INFORMATION:\\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\\nOrder #: {{ $json.order_number }}\\nCustomer: {{ $json.customer_name }}\\nEmail: {{ $json.customer_email }}\\nTotal: {{ $json.currency }} {{ $json.order_total }}\\nPayment: {{ $json.payment_status }}\\nDate: {{ new Date($json.order_date).toLocaleString() }}\\n\\n✅ ACTION ITEMS:\\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\\n1. Process payment (if not already confirmed)\\n2. Pick and pack items\\n3. Create shipping label\\n4. Send tracking information to customer\\n5. Update inventory levels\\n\\n📊 QUICK STATS:\\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\\nProcessed automatically at: {{ new Date().toLocaleString() }}\\nCustomer confirmation: ✅ Sent\\nOrder webhook: ✅ Received\\n\\nLogin to your admin panel to view full order details and begin processing.\\n\\n---\\nThis notification was sent automatically by your n8n order automation workflow.",
"options": {
"allowUnauthorizedCerts": false
},
"subject": "🛒 NEW ORDER #{{ $json.order_number }} - {{ $json.currency }} {{ $json.order_total }}",
"toEmail": "={{ $('Store Configuration').first().json.TEAM_EMAIL }}",
"fromEmail": "={{ $('Store Configuration').first().json.STORE_EMAIL }}"
},
"credentials": {
"smtp": {
"id": "YOUR_EMAIL_CREDENTIAL_ID",
"name": "Gmail SMTP"
}
},
"typeVersion": 2.1
},
{
"id": "l2m3n4o5-p6q7-8901-2345-678901lmnopq",
"name": "记录订单备注",
"type": "n8n-nodes-base.stickyNote",
"position": [
1600,
120
],
"parameters": {
"width": 280,
"height": 160,
"content": "📝 **步骤5:记录订单**"
},
"typeVersion": 1
},
{
"id": "m3n4o5p6-q7r8-9012-3456-789012mnopqr",
"name": "记录处理详情",
"type": "n8n-nodes-base.set",
"position": [
1680,
260
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "processing_status",
"name": "processing_status",
"type": "string",
"value": "completed"
},
{
"id": "processed_at",
"name": "processed_at",
"type": "string",
"value": "={{ new Date().toISOString() }}"
},
{
"id": "customer_email_sent",
"name": "customer_email_sent",
"type": "boolean",
"value": true
},
{
"id": "team_email_sent",
"name": "team_email_sent",
"type": "boolean",
"value": true
},
{
"id": "order_summary",
"name": "order_summary",
"type": "string",
"value": "Order #{{ $('Extract Order Details').first().json.order_number }} for {{ $('Extract Order Details').first().json.customer_name }} ({{ $('Extract Order Details').first().json.currency }} {{ $('Extract Order Details').first().json.order_total }}) processed successfully"
}
]
}
},
"typeVersion": 3.2
},
{
"id": "n4o5p6q7-r8s9-0123-4567-890123nopqrs",
"name": "成功响应备注",
"type": "n8n-nodes-base.stickyNote",
"position": [
1840,
120
],
"parameters": {
"width": 280,
"height": 160,
"content": "✅ **步骤6:成功响应**"
},
"typeVersion": 1
},
{
"id": "o5p6q7r8-s9t0-1234-5678-901234opqrst",
"name": "发送成功响应",
"type": "n8n-nodes-base.respondToWebhook",
"position": [
1920,
260
],
"parameters": {
"options": {},
"respondWith": "json",
"responseBody": "{\n \"status\": \"success\",\n \"message\": \"Order processed successfully\",\n \"order_number\": \"{{ $('Extract Order Details').first().json.order_number }}\",\n \"customer_email\": \"{{ $('Extract Order Details').first().json.customer_email }}\",\n \"customer_notification_sent\": {{ $json.customer_email_sent }},\n \"team_notification_sent\": {{ $json.team_email_sent }},\n \"processed_at\": \"{{ $json.processed_at }}\",\n \"order_total\": \"{{ $('Extract Order Details').first().json.currency }} {{ $('Extract Order Details').first().json.order_total }}\"\n}"
},
"typeVersion": 1
},
{
"id": "p6q7r8s9-t0u1-2345-6789-012345pqrstu",
"name": "发送错误响应",
"type": "n8n-nodes-base.respondToWebhook",
"position": [
960,
420
],
"parameters": {
"options": {},
"respondWith": "json",
"responseBody": "{\n \"status\": \"error\",\n \"message\": \"Invalid order data - missing required fields\",\n \"missing_fields\": {\n \"customer_email\": \"{{ $json.customer_email || 'missing' }}\",\n \"order_number\": \"{{ $json.order_number || 'missing' }}\"\n },\n \"received_data\": {{ JSON.stringify($('New Order Webhook').first().json) }},\n \"processed_at\": \"{{ new Date().toISOString() }}\"\n}"
},
"typeVersion": 1
},
{
"id": "q7r8s9t0-u1v2-3456-7890-123456qrstuv",
"name": "简易设置指南",
"type": "n8n-nodes-base.stickyNote",
"position": [
240,
500
],
"parameters": {
"color": 6,
"width": 400,
"height": 320,
"content": "⚙️ **简易设置指南**"
},
"typeVersion": 1
}
],
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"updatedAt": "2025-01-01T00:00:00.000Z",
"versionId": "auto-generate",
"staticData": {},
"connections": {
"New Order Webhook": {
"main": [
[
{
"node": "Store Configuration",
"type": "main",
"index": 0
}
]
]
},
"Store Configuration": {
"main": [
[
{
"node": "Extract Order Details",
"type": "main",
"index": 0
}
]
]
},
"Validate Order Data": {
"main": [
[
{
"node": "Send Customer Confirmation",
"type": "main",
"index": 0
}
],
[
{
"node": "Send Error Response",
"type": "main",
"index": 0
}
]
]
},
"Extract Order Details": {
"main": [
[
{
"node": "Validate Order Data",
"type": "main",
"index": 0
}
]
]
},
"Log Processing Details": {
"main": [
[
{
"node": "Send Success Response",
"type": "main",
"index": 0
}
]
]
},
"Send Team Notification": {
"main": [
[
{
"node": "Log Processing Details",
"type": "main",
"index": 0
}
]
]
},
"Send Customer Confirmation": {
"main": [
[
{
"node": "Send Team Notification",
"type": "main",
"index": 0
}
]
]
}
},
"triggerCount": 1
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
高级 - 客户关系管理, 多模态 AI
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
自动化订单确认,使用Abacate Pay:首购优惠券奖励,通过邮件和Slack
自动化订单确认,使用Abacate Pay:首购优惠券奖励,通过邮件和Slack
If
Set
Code
+6
13 节点Matheus Pedrosa
客户关系管理
使用GPT-4分析和Slack警报对Zendesk工单进行优先级排序
使用GPT-4分析和Slack警报对Zendesk工单进行优先级排序
If
Set
Code
+6
18 节点PhilanthropEAK Automation
AI 摘要总结
优雅的客户入职礼宾服务 — 专业版(通用,v3)
使用Notion、邮件和CRM集成的自动客户入职系统
If
Set
Notion
+10
31 节点Shelly-Ann Davy
客户关系管理
使用AI和Google Sheets跨平台生成并安排社交媒体内容
使用GPT-4和Buffer从Google Sheets生成并安排社交媒体内容
If
Set
Code
+6
16 节点PhilanthropEAK Automation
多模态 AI
面向财务与会计的 AI 驱动发票提醒与付款追踪器
基于AI的发票提醒与付款追踪器,专为财务与会计设计
If
Set
Code
+8
35 节点Oneclick AI Squad
发票处理
潜在客户资格评定与路由引擎
基于AI的潜在客户资格评定与路由:使用OpenAI、Slack和Airtable
If
Set
Slack
+8
17 节点Xavier Tai
内容创作
工作流信息
难度等级
高级
节点数量17
分类2
节点类型6
作者
PhilanthropEAK Automation
@philanthropeakAI-powered automation specialist building practical, accessible workflows for businesses of all sizes. We design solutions that save time, cut errors, and boost customer experience—without complexity. Specialties include AI-driven customer support, social media scheduling, e-commerce automation, beginner-friendly workflows, and free templates. Every workflow is tested, documented, and ready to deliver real business value.
外部链接
在 n8n.io 查看 →
分享此工作流