新しいEC注文に対するシンプルな注文確認と顧客通知ワークフロー

上級

これはCRM, Multimodal AI分野の自動化ワークフローで、17個のノードを含みます。主にIf, Set, Webhook, EmailSend, RespondToWebhookなどのノードを使用。 メール通知と Webhooks を使用した EC 注文処理の自動化

前提条件
  • HTTP Webhookエンドポイント(n8nが自動生成)
ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
  "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": "新規注文 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": "## 🛒 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": "ストア設定",
      "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": "📦 **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": "注文詳細抽出",
      "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": "✅ **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": "注文データ検証",
      "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": "📧 **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": "顧客確認通知送信",
      "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": "🔔 **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": "チーム通知送信",
      "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": "📝 **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": "処理詳細ログ",
      "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": "✅ **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": "成功レスポンス送信",
      "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": "⚙️ **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
}
よくある質問

このワークフローの使い方は?

上記のJSON設定コードをコピーし、n8nインスタンスで新しいワークフローを作成して「JSONからインポート」を選択、設定を貼り付けて認証情報を必要に応じて変更してください。

このワークフローはどんな場面に適していますか?

上級 - 顧客管理, マルチモーダルAI

有料ですか?

このワークフローは完全無料です。ただし、ワークフローで使用するサードパーティサービス(OpenAI APIなど)は別途料金が発生する場合があります。

関連ワークフロー

Abacate Payを使った注文確認の自動化:メールとSlack経由での初回購入者向けクーポン獲得
注文確定の自動化、Abacate Payを使用:初回購入者向けクーポン報酬、メールおよびSlack経由
If
Set
Code
+
If
Set
Code
13 ノードMatheus Pedrosa
顧客管理
エレガントな顧客紹介カスタマーサービス — プロフェッショナル版(汎用、v3)
Notion、メール、CRMの統合による自動顧客オンボーディングシステム
If
Set
Notion
+
If
Set
Notion
31 ノードShelly-Ann Davy
顧客管理
AIとGoogle Sheetsを使用したマルチプラットフォームでのソーシャルメディアコンテンツの生成とスケジュール
Google SheetsからGPT-4とBufferを使ってソーシャルメディアコンテンツを生成してスケジュールする
If
Set
Code
+
If
Set
Code
16 ノードPhilanthropEAK Automation
マルチモーダルAI
財務・会計向けAI駆動型請求書リマインダーと支払い追跡ツール
財務・会計業務向けに設計されたAIベースの請求書リマインダーと支払い追跡ツール
If
Set
Code
+
If
Set
Code
35 ノードOneclick AI Squad
請求書処理
潜在顧客の資格審査とルーティングエンジン
AIを活用した潜在顧客の資格審査とルーティング:OpenAI、Slack、Airtableを使用
If
Set
Slack
+
If
Set
Slack
17 ノードXavier Tai
コンテンツ作成
Notionから自動で顧客育成メールと評価収集を実行
Telegramを使ってGoogleカレンダーとNotion CRMによる会議スケジュールの自動化
If
Set
Code
+
If
Set
Code
19 ノードShelly-Ann Davy
サポートチャットボット
ワークフロー情報
難易度
上級
ノード数17
カテゴリー2
ノードタイプ6
難易度説明

上級者向け、16ノード以上の複雑なワークフロー

作成者
PhilanthropEAK Automation

PhilanthropEAK Automation

@philanthropeak

AI-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で表示

このワークフローを共有

カテゴリー

カテゴリー: 34