E-commerce Order Confirmation & Team Notification via Email
π¦ Overview
This workflow automatically processes new e-commerce orders as they come in via a webhook. It validates the order data, sends a professional confirmation email to the customer, notifies your team of the new order, logs processing details, and responds to the webhook with a success or error status. It's a complete, beginner-friendly solution for small online stores that want to provide instant order confirmations without manual effort.
π§ Workflow Nodes
- New Order Webhook (No auth) β Receives incoming order data via HTTP POST at the path
/new-order. Responds immediately with a JSON object after processing (either success or error). No authentication is required on the webhook, but you should secure it using your e-commerce platform's webhook secret if needed. - Store Configuration (No auth) β A
Setnode that stores static store information (store name, store email, support email, phone, website, team email). These values are used later in email templates. You must update these with your own details. - Extract Order Details (No auth) β A
Setnode that extracts and normalizes common order fields from the incoming webhook payload. It uses fallback expressions to handle different field names from various e-commerce platforms (Shopify, WooCommerce, etc.). Fields extracted: order number, customer name, customer email, order total, currency, order date, payment status. - Validate Order Data (No auth) β An
Ifnode that checks if the customer email is not empty and the order number is not "N/A". If valid, the workflow proceeds to send emails; otherwise, it sends an error response back to the webhook. - Send Customer Confirmation (Email credentials β OAuth2 or SMTP) β Sends a formatted HTML email to the customer using the
Email Sendnode. The email includes order details, next steps, and store contact information. The subject line and body are dynamically built using expressions referencing theStore ConfigurationandExtract Order Detailsnodes. - Send Team Notification (Email credentials β OAuth2 or SMTP) β Sends a separate notification email to the team email address (configured in
Store Configuration). This email contains a summary of the new order, action items, and quick stats. - Log Processing Details (No auth) β A
Setnode that records processing status, timestamps, and confirmation flags. This data is passed to the final response. - Send Success Response (No auth) β A
Respond to Webhooknode that returns a JSON success message with order details and processing timestamps. - Send Error Response (No auth) β A
Respond to Webhooknode that returns a JSON error message indicating missing required fields, used when validation fails. - Sticky Notes (No auth) β Several sticky notes are included for documentation and guidance. They explain each step and provide setup instructions.
π Setup Instructions
- Configure Store Details β Open the
Store Configurationnode and replace the placeholder values with your actual store name, email addresses, phone number, and website URL. The team email should be where you want order notifications sent. - Set Up Email Credentials β In n8n, create a credential for the email service you want to use. For Gmail, use OAuth2 (recommended) or an app password. For any SMTP server, provide the server, port, username, and password. Attach this credential to both
Send Customer ConfirmationandSend Team Notificationnodes. - Activate the Webhook β Copy the webhook URL from the
New Order Webhooknode (it will look likehttps://your-n8n-instance/webhook/new-order). In your e-commerce platform (Shopify, WooCommerce, Etsy, etc.), go to the webhook settings and create a new webhook that triggers on new orders, pointing to this URL. Use HTTP POST method. - Test the Workflow β Place a test order on your store. Check that the customer receives a confirmation email and that your team gets a notification. The webhook response should indicate success.
π‘ Use Cases & Variations
- Customize Email Templates β Modify the message bodies in the email nodes to match your brand voice, include product images, or add tracking links.
- Add Slack/Telegram Notifications β Replace the team email with a Slack message or Telegram bot notification for faster alerts.
- Log to Google Sheets β Insert a Google Sheets node after
Log Processing Detailsto record every order for analytics or accounting. - Handle Multiple Platforms β The
Extract Order Detailsnode already uses fallback expressions, so you can easily support Shopify, WooCommerce, Magento, or custom APIs by adjusting the field mappings. - Add Inventory Updates β Connect an HTTP Request node to your inventory management system to decrement stock after a successful order.
- Use Conditional Logic β Create different email paths based on payment status (e.g., send a separate email for failed payments).
17 nodeswebhook triggerecommerce
WebhookSticky NoteSetIFEmail SendRespond To Webhook
Workflow JSON
{
"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": "New Order 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": "Workflow Instructions",
"type": "n8n-nodes-base.stickyNote",
"position": [
-200,
100
],
"parameters": {
"color": 4,
"width": 432,
// ... truncated (copy to see full JSON)How to Import This Workflow
- 1Copy the workflow JSON above using the Copy Workflow JSON button.
- 2Open your n8n instance and go to Workflows.
- 3Click Import from JSON and paste the copied workflow.
Don't have an n8n instance? Start your free trial at n8nautomation.cloud