{
  "name": "New-order confirmation emails",
  "nodes": [
    {
      "parameters": {
        "content": "## New-order confirmation emails\n\n**What it does:** emails the customer a confirmation and notifies your team on every order.\n\n**Setup**\n1. Point your store/order webhook at *New order* (expects `email`).\n2. Open both Gmail nodes \u2192 connect **Gmail**.\n3. Set your team address in *Notify team*.\n4. Click **Active**.",
        "width": 360,
        "height": 300
      },
      "id": "sticky-setup",
      "name": "Setup guide",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -520,
        -140
      ]
    },
    {
      "parameters": {
        "path": "order-email",
        "httpMethod": "POST",
        "responseMode": "lastNode"
      },
      "id": "wh",
      "name": "New order (webhook)",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [
        -200,
        0
      ]
    },
    {
      "parameters": {
        "resource": "message",
        "operation": "send",
        "sendTo": "={{ $json.email }}",
        "subject": "Your your business order is confirmed",
        "message": "Thank you for your order! We're getting it ready."
      },
      "id": "cust",
      "name": "Email customer",
      "type": "n8n-nodes-base.gmail",
      "typeVersion": 2.1,
      "position": [
        80,
        -80
      ]
    },
    {
      "parameters": {
        "resource": "message",
        "operation": "send",
        "sendTo": "team@example.com",
        "subject": "New order received",
        "message": "={{ JSON.stringify($json) }}"
      },
      "id": "team",
      "name": "Notify team",
      "type": "n8n-nodes-base.gmail",
      "typeVersion": 2.1,
      "position": [
        80,
        120
      ]
    }
  ],
  "connections": {
    "New order (webhook)": {
      "main": [
        [
          {
            "node": "Email customer",
            "type": "main",
            "index": 0
          },
          {
            "node": "Notify team",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "tags": [],
  "id": "1qwNMbtcapCkgXJY"
}