{
  "name": "Auto-Send Smartlead Follow-Ups Until a Lead Replies, Synced to Google Sheets",
  "nodes": [
    {
      "name": "Schedule",
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1,
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "hours",
              "hoursInterval": 24
            }
          ]
        }
      },
      "notes": "Daily — process leads due today.",
      "position": [
        260,
        300
      ]
    },
    {
      "name": "Google Sheets — Due Leads",
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4,
      "parameters": {
        "operation": "getAll",
        "filter": "next_followup<=today"
      },
      "notes": "Load leads due for a touch.",
      "position": [
        500,
        300
      ]
    },
    {
      "name": "Replied?",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2,
      "parameters": {
        "conditions": {
          "conditions": [
            {
              "leftValue": "={{ $json.replied }}",
              "rightValue": "true",
              "operator": {
                "type": "string",
                "operation": "equals"
              }
            }
          ],
          "combinator": "and"
        }
      },
      "notes": "Stop the sequence on reply.",
      "position": [
        740,
        300
      ]
    },
    {
      "name": "Smartlead — Send Follow-up",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4,
      "parameters": {
        "method": "POST",
        "url": "https://api.example.com/replace-with-real-endpoint",
        "sendBody": true,
        "options": {}
      },
      "notes": "Smartlead has no dedicated n8n node — use an HTTP Request to the Smartlead API. Send the next step.",
      "position": [
        980,
        300
      ]
    },
    {
      "name": "Respond / Finish",
      "type": "n8n-nodes-base.noOp",
      "typeVersion": 1,
      "parameters": {},
      "notes": "End of flow — extend with extra steps as needed.",
      "position": [
        1220,
        300
      ]
    }
  ],
  "connections": {
    "Schedule": {
      "main": [
        [
          {
            "node": "Google Sheets — Due Leads",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Sheets — Due Leads": {
      "main": [
        [
          {
            "node": "Replied?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Replied?": {
      "main": [
        [
          {
            "node": "Smartlead — Send Follow-up",
            "type": "main",
            "index": 0
          }
        ],
        []
      ]
    },
    "Smartlead — Send Follow-up": {
      "main": [
        [
          {
            "node": "Respond / Finish",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
