{
  "name": "Recover Abandoned Squarespace Carts With an Automated Telegram Nudge",
  "nodes": [
    {
      "name": "Squarespace — Cart Abandoned",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4,
      "parameters": {
        "method": "POST",
        "url": "https://api.example.com/replace-with-real-endpoint",
        "sendBody": true,
        "options": {}
      },
      "notes": "Squarespace has no dedicated n8n node — use an HTTP Request to the Squarespace API. Use the abandoned-checkout trigger/event.",
      "position": [
        260,
        300
      ]
    },
    {
      "name": "Wait 1 Hour",
      "type": "n8n-nodes-base.wait",
      "typeVersion": 1,
      "parameters": {
        "amount": 1,
        "unit": "hours"
      },
      "notes": "Give the shopper time to return on their own.",
      "position": [
        500,
        300
      ]
    },
    {
      "name": "Squarespace — Order Lookup",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4,
      "parameters": {
        "method": "POST",
        "url": "https://api.example.com/replace-with-real-endpoint",
        "sendBody": true,
        "options": {}
      },
      "notes": "Squarespace has no dedicated n8n node — use an HTTP Request to the Squarespace API. Look up by email to see if they already completed checkout.",
      "position": [
        740,
        300
      ]
    },
    {
      "name": "Guard",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2,
      "parameters": {
        "conditions": {
          "conditions": [
            {
              "leftValue": "={{ $json.recovery_url }}",
              "rightValue": "",
              "operator": {
                "type": "string",
                "operation": "notEmpty"
              }
            }
          ],
          "combinator": "and"
        }
      },
      "notes": "Continue only if the cart is still open.",
      "position": [
        980,
        300
      ]
    },
    {
      "name": "Notify Telegram",
      "type": "n8n-nodes-base.telegram",
      "typeVersion": 1,
      "parameters": {
        "text": "=Still thinking it over? Finish here: {{ $json.recovery_url }}"
      },
      "notes": "Connect this channel's credential.",
      "position": [
        1220,
        300
      ]
    },
    {
      "name": "Respond / Finish",
      "type": "n8n-nodes-base.noOp",
      "typeVersion": 1,
      "parameters": {},
      "notes": "End of flow — extend with extra steps as needed.",
      "position": [
        1460,
        300
      ]
    }
  ],
  "connections": {
    "Squarespace — Cart Abandoned": {
      "main": [
        [
          {
            "node": "Wait 1 Hour",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait 1 Hour": {
      "main": [
        [
          {
            "node": "Squarespace — Order Lookup",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Squarespace — Order Lookup": {
      "main": [
        [
          {
            "node": "Guard",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Guard": {
      "main": [
        [
          {
            "node": "Notify Telegram",
            "type": "main",
            "index": 0
          }
        ],
        []
      ]
    },
    "Notify Telegram": {
      "main": [
        [
          {
            "node": "Respond / Finish",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
