Flux de travail simple de confirmation de commande et de notification client pour les nouvelles commandes e-commerce
Ceci est unCRM, Multimodal AIworkflow d'automatisation du domainecontenant 17 nœuds.Utilise principalement des nœuds comme If, Set, Webhook, EmailSend, RespondToWebhook. Automatisation du traitement des commandes e-commerce via les notifications par e-mail et les Webhooks
- •Point de terminaison HTTP Webhook (généré automatiquement par n8n)
Nœuds utilisés (17)
Catégorie
{
"name": "Simple order confirmation and customer notification workflow for new e-commerce orders",
"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": "Nouvelle commande 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": "Instructions du workflow",
"type": "n8n-nodes-base.stickyNote",
"position": [
-200,
100
],
"parameters": {
"color": 4,
"width": 432,
"height": 464,
"content": "## 🛒 Simple E-commerce Order Automation\n\n**What this workflow does:**\nAutomatically processes new e-commerce orders by sending confirmation emails to customers and notification emails to your team.\n\n**How it works:**\n1. Receives new order data via webhook (from Shopify, WooCommerce, etc.)\n2. Validates the order information\n3. Sends a professional order confirmation email to the customer\n4. Sends an order notification email to your team\n5. Logs the order details for record keeping\n6. Responds back to confirm successful processing\n\n**Perfect for:**\n- Small online stores getting started\n- Anyone wanting basic order automation\n- Businesses using free email services\n- Users new to n8n and automation\n\n**What you need:**\n- An e-commerce platform (Shopify, WooCommerce, Etsy, etc.)\n- Gmail account or any SMTP email service\n- 5 minutes to set up the webhook\n\n**Free to use:**\n- Uses built-in n8n nodes only\n- Works with free Gmail accounts\n- No paid API services required\n- Simple setup, no complex configurations"
},
"typeVersion": 1
},
{
"id": "c3d4e5f6-g7h8-9012-3456-789012cdefgh",
"name": "Configuration de la boutique",
"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": "Extraire la note de commande",
"type": "n8n-nodes-base.stickyNote",
"position": [
640,
120
],
"parameters": {
"width": 280,
"height": 160,
"content": "📦 **Step 1: Extract Order Data**\n\nExtracts key information from the order:\n- Order number and date\n- Customer name and email\n- Items purchased\n- Order total and payment status\n- Shipping address\n\nThis works with most e-commerce platforms."
},
"typeVersion": 1
},
{
"id": "e5f6g7h8-i9j0-1234-5678-901234efghij",
"name": "Extraire les détails de la commande",
"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": "Note de validation",
"type": "n8n-nodes-base.stickyNote",
"position": [
880,
140
],
"parameters": {
"width": 280,
"height": 140,
"content": "✅ **Step 2: Validate Order**\n\nChecks if the order has:\n- Valid customer email\n- Order number\n- Order total greater than 0\n\nSkips processing for invalid orders and sends error response."
},
"typeVersion": 1
},
{
"id": "g7h8i9j0-k1l2-3456-7890-123456ghijkl",
"name": "Valider les données de commande",
"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": "Note d'email client",
"type": "n8n-nodes-base.stickyNote",
"position": [
1120,
120
],
"parameters": {
"width": 280,
"height": 160,
"content": "📧 **Step 3: Send Customer Email**\n\nSends a professional order confirmation email:\n- Order details and summary\n- Thank you message\n- Contact information\n- Next steps (shipping info)\n\nUses your Gmail or SMTP email account."
},
"typeVersion": 1
},
{
"id": "i9j0k1l2-m3n4-5678-9012-345678ijklmn",
"name": "Envoyer la confirmation au client",
"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": "Note de notification d'équipe",
"type": "n8n-nodes-base.stickyNote",
"position": [
1360,
120
],
"parameters": {
"width": 280,
"height": 160,
"content": "🔔 **Step 4: Notify Team**\n\nSends order notification to your team:\n- New order alert\n- Customer and order details\n- Action items\n- Order summary\n\nHelps team stay informed and take action."
},
"typeVersion": 1
},
{
"id": "k1l2m3n4-o5p6-7890-1234-567890klmnop",
"name": "Envoyer la notification d'équipe",
"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": "Note d'enregistrement de commande",
"type": "n8n-nodes-base.stickyNote",
"position": [
1600,
120
],
"parameters": {
"width": 280,
"height": 160,
"content": "📝 **Step 5: Log Order**\n\nSaves order details for record keeping:\n- Creates order summary\n- Timestamps processing\n- Tracks email delivery status\n- Prepares success response\n\nUseful for analytics and troubleshooting."
},
"typeVersion": 1
},
{
"id": "m3n4o5p6-q7r8-9012-3456-789012mnopqr",
"name": "Enregistrer les détails de traitement",
"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": "Note de réponse de succès",
"type": "n8n-nodes-base.stickyNote",
"position": [
1840,
120
],
"parameters": {
"width": 280,
"height": 160,
"content": "✅ **Step 6: Success Response**\n\nSends confirmation back to e-commerce platform:\n- Processing successful\n- Emails sent confirmation\n- Order details summary\n- Timestamp\n\nCompletes the webhook properly."
},
"typeVersion": 1
},
{
"id": "o5p6q7r8-s9t0-1234-5678-901234opqrst",
"name": "Envoyer la réponse de succès",
"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": "Envoyer la réponse d'erreur",
"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": "Guide de configuration rapide",
"type": "n8n-nodes-base.stickyNote",
"position": [
240,
500
],
"parameters": {
"color": 6,
"width": 400,
"height": 320,
"content": "⚙️ **EASY SETUP GUIDE**\n\n**Step 1: Configure your store details**\nUpdate the Store Configuration node with:\n- Your store name\n- Your email addresses\n- Phone number\n- Website URL\n\n**Step 2: Set up email**\n- Use your Gmail account (free!)\n- Or any SMTP email service\n- Add email credentials in n8n\n\n**Step 3: Copy webhook URL**\n- Copy the URL from New Order Webhook node\n- Add it to your e-commerce platform:\n • Shopify: Settings > Notifications > Webhooks\n • WooCommerce: WooCommerce > Settings > Advanced > Webhooks\n • Other platforms: Look for \"Webhooks\" or \"API\" settings\n\n**Step 4: Test it!**\n- Place a test order\n- Check emails were sent\n- Verify webhook response\n\n**That's it! Your store now has automated order processing! 🎉**"
},
"typeVersion": 1
}
],
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"updatedAt": "2025-01-01T00:00:00.000Z",
"versionId": "auto-generate",
"staticData": {},
"connections": {
"a1b2c3d4-e5f6-7890-1234-567890abcdef": {
"main": [
[
{
"node": "c3d4e5f6-g7h8-9012-3456-789012cdefgh",
"type": "main",
"index": 0
}
]
]
},
"c3d4e5f6-g7h8-9012-3456-789012cdefgh": {
"main": [
[
{
"node": "e5f6g7h8-i9j0-1234-5678-901234efghij",
"type": "main",
"index": 0
}
]
]
},
"g7h8i9j0-k1l2-3456-7890-123456ghijkl": {
"main": [
[
{
"node": "i9j0k1l2-m3n4-5678-9012-345678ijklmn",
"type": "main",
"index": 0
}
],
[
{
"node": "p6q7r8s9-t0u1-2345-6789-012345pqrstu",
"type": "main",
"index": 0
}
]
]
},
"e5f6g7h8-i9j0-1234-5678-901234efghij": {
"main": [
[
{
"node": "g7h8i9j0-k1l2-3456-7890-123456ghijkl",
"type": "main",
"index": 0
}
]
]
},
"m3n4o5p6-q7r8-9012-3456-789012mnopqr": {
"main": [
[
{
"node": "o5p6q7r8-s9t0-1234-5678-901234opqrst",
"type": "main",
"index": 0
}
]
]
},
"k1l2m3n4-o5p6-7890-1234-567890klmnop": {
"main": [
[
{
"node": "m3n4o5p6-q7r8-9012-3456-789012mnopqr",
"type": "main",
"index": 0
}
]
]
},
"i9j0k1l2-m3n4-5678-9012-345678ijklmn": {
"main": [
[
{
"node": "k1l2m3n4-o5p6-7890-1234-567890klmnop",
"type": "main",
"index": 0
}
]
]
}
},
"triggerCount": 1
}Comment utiliser ce workflow ?
Copiez le code de configuration JSON ci-dessus, créez un nouveau workflow dans votre instance n8n et sélectionnez "Importer depuis le JSON", collez la configuration et modifiez les paramètres d'authentification selon vos besoins.
Dans quelles scénarios ce workflow est-il adapté ?
Avancé - CRM, IA Multimodale
Est-ce payant ?
Ce workflow est entièrement gratuit et peut être utilisé directement. Veuillez noter que les services tiers utilisés dans le workflow (comme l'API OpenAI) peuvent nécessiter un paiement de votre part.
Workflows recommandés
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.
Partager ce workflow