{
  "name": "06 · E-commerce / Abandoned Cart Recovery",
  "active": false,
  "nodes": [
    {
      "id": "6e2eb76c-01f8-4899-984b-9cbb81358da8",
      "name": "📘 Guide",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -640,
        -120
      ],
      "parameters": {
        "content": "## 06 · E-commerce · Abandoned Cart Recovery\n\n### What this does\nDetects abandoned carts, waits, sends personalized recovery sequence with coupon guardrails.\n\n### Setup checklist\n1. Cart events\n2. Email/SMS\n3. Coupon service\n\n### How to test locally\nPOST `ecom-cart-abandon` then observe Wait + follow-ups.\n\n### Tips\n- Keep credentials in n8n Credentials (never hardcode secrets).\n- Use **Test URL** on the Webhook while developing.\n- Activate only after credentials + destinations are configured.\n",
        "width": 560,
        "height": 560,
        "color": 1
      }
    },
    {
      "id": "51746285-7a28-4bc2-a08b-6243dfa5b28c",
      "name": "⚙️ Config",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -640,
        480
      ],
      "parameters": {
        "content": "## Config map\n\n- **Webhook path:** `ecom-cart-abandon`\n- **Replace** all `https://httpbin.org/...` calls with real integrations.\n- **Credentials:** create in n8n → Credentials, then select on HTTP nodes.\n- **Activate** workflow only after a successful Test execution.\n\n### Local files\nShared host folder is mounted at `/files` inside n8n.",
        "width": 560,
        "height": 320,
        "color": 2
      }
    },
    {
      "id": "630c1369-4243-4186-b44b-2030868eafbe",
      "name": "Start Sequence",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [
        0,
        200
      ],
      "webhookId": "cd1eeda7-bc67-4d45-a8fe-677287cf70c5",
      "parameters": {
        "httpMethod": "POST",
        "path": "ecom-cart-abandon",
        "responseMode": "responseNode",
        "options": {}
      }
    },
    {
      "id": "d01a361c-d150-4e34-967b-9ad25e54322d",
      "name": "Step 1 · Confirm",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        280,
        200
      ],
      "parameters": {
        "mode": "manual",
        "duplicateItem": false,
        "assignments": {
          "assignments": [
            {
              "id": "1",
              "name": "step",
              "value": 1,
              "type": "number"
            },
            {
              "id": "2",
              "name": "message",
              "value": "Confirmation sent (replace with Email/SMS node)",
              "type": "string"
            },
            {
              "id": "3",
              "name": "data",
              "value": "={{ $json.body || $json }}",
              "type": "object"
            }
          ]
        },
        "options": {}
      }
    },
    {
      "id": "11d59630-323e-40dd-a5d5-e4e20b5f4009",
      "name": "Wait Before Reminder",
      "type": "n8n-nodes-base.wait",
      "typeVersion": 1.1,
      "position": [
        560,
        200
      ],
      "webhookId": "d77bae29-685c-4b1d-a93c-8a273f18e37a",
      "parameters": {
        "resume": "timeInterval",
        "amount": 3,
        "unit": "seconds"
      }
    },
    {
      "id": "453462c0-8b9f-468f-bcdb-d44a08c9737d",
      "name": "Step 2 · Reminder",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        840,
        200
      ],
      "parameters": {
        "mode": "manual",
        "duplicateItem": false,
        "assignments": {
          "assignments": [
            {
              "id": "1",
              "name": "step",
              "value": 2,
              "type": "number"
            },
            {
              "id": "2",
              "name": "message",
              "value": "Reminder prepared",
              "type": "string"
            }
          ]
        },
        "options": {}
      }
    },
    {
      "id": "01d52779-be88-44c8-928f-283bfb0b55d1",
      "name": "Send Messages",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        1120,
        200
      ],
      "parameters": {
        "method": "POST",
        "url": "https://httpbin.org/post",
        "options": {},
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={{ JSON.stringify($json) }}"
      }
    },
    {
      "id": "78090334-e124-4380-9131-adc9a168ca18",
      "name": "Webhook Response",
      "type": "n8n-nodes-base.respondToWebhook",
      "typeVersion": 1.1,
      "position": [
        1400,
        200
      ],
      "parameters": {
        "respondWith": "json",
        "responseBody": "={{ $json }}",
        "options": {}
      }
    }
  ],
  "connections": {
    "Start Sequence": {
      "main": [
        [
          {
            "node": "Step 1 · Confirm",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Step 1 · Confirm": {
      "main": [
        [
          {
            "node": "Wait Before Reminder",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait Before Reminder": {
      "main": [
        [
          {
            "node": "Step 2 · Reminder",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Step 2 · Reminder": {
      "main": [
        [
          {
            "node": "Send Messages",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Messages": {
      "main": [
        [
          {
            "node": "Webhook Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1",
    "callerPolicy": "workflowsFromSameOwner"
  },
  "tags": [],
  "meta": {
    "templateCredsSetupCompleted": true,
    "description": "Detects abandoned carts, waits, sends personalized recovery sequence with coupon guardrails."
  },
  "pinData": {}
}