{
  "name": "Real Estate Lead Follow-Up (by PikPik)",
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "new-lead",
        "options": {}
      },
      "id": "re-lead-0001-node-webhook",
      "name": "New Lead (Webhook)",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [0, 300],
      "webhookId": "pikpik-real-estate-lead"
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            { "id": "a1", "name": "first_name", "value": "={{ $json.body.first_name }}", "type": "string" },
            { "id": "a2", "name": "email", "value": "={{ $json.body.email }}", "type": "string" },
            { "id": "a3", "name": "message", "value": "={{ $json.body.message }}", "type": "string" }
          ]
        },
        "options": {}
      },
      "id": "re-lead-0002-node-set",
      "name": "Prepare Lead",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [220, 300]
    },
    {
      "parameters": {
        "fromEmail": "you@youragency.com",
        "toEmail": "={{ $json.email }}",
        "subject": "Thanks for reaching out",
        "emailFormat": "text",
        "text": "Hi {{ $json.first_name }},\n\nThanks for getting in touch. I saw your note and I want to make sure you get a real answer, not an autoresponder. What is the best time for a quick call this week?\n\nTalk soon.",
        "options": {}
      },
      "id": "re-lead-0003-node-email1",
      "name": "Instant Reply",
      "type": "n8n-nodes-base.emailSend",
      "typeVersion": 2.1,
      "position": [440, 300]
    },
    {
      "parameters": { "amount": 2, "unit": "days" },
      "id": "re-lead-0004-node-wait1",
      "name": "Wait 2 Days",
      "type": "n8n-nodes-base.wait",
      "typeVersion": 1.1,
      "position": [660, 300],
      "webhookId": "pikpik-re-wait-2d"
    },
    {
      "parameters": {
        "fromEmail": "you@youragency.com",
        "toEmail": "={{ $json.email }}",
        "subject": "Still here to help, {{ $json.first_name }}",
        "emailFormat": "text",
        "text": "Hi {{ $json.first_name }},\n\nJust following up in case my last note got buried. Happy to answer questions or line up a time whenever it suits you.\n\nNo rush, just did not want to leave you hanging.",
        "options": {}
      },
      "id": "re-lead-0005-node-email2",
      "name": "Follow-up 1",
      "type": "n8n-nodes-base.emailSend",
      "typeVersion": 2.1,
      "position": [880, 300]
    },
    {
      "parameters": { "amount": 3, "unit": "days" },
      "id": "re-lead-0006-node-wait2",
      "name": "Wait 3 Days",
      "type": "n8n-nodes-base.wait",
      "typeVersion": 1.1,
      "position": [1100, 300],
      "webhookId": "pikpik-re-wait-3d"
    },
    {
      "parameters": {
        "fromEmail": "you@youragency.com",
        "toEmail": "={{ $json.email }}",
        "subject": "Should I close your file?",
        "emailFormat": "text",
        "text": "Hi {{ $json.first_name }},\n\nI do not want to keep crowding your inbox. If now is not the right time, just say the word and I will check back later. If you are ready, reply here and we will get moving.",
        "options": {}
      },
      "id": "re-lead-0007-node-email3",
      "name": "Breakup Email",
      "type": "n8n-nodes-base.emailSend",
      "typeVersion": 2.1,
      "position": [1320, 300]
    }
  ],
  "connections": {
    "New Lead (Webhook)": { "main": [[{ "node": "Prepare Lead", "type": "main", "index": 0 }]] },
    "Prepare Lead": { "main": [[{ "node": "Instant Reply", "type": "main", "index": 0 }]] },
    "Instant Reply": { "main": [[{ "node": "Wait 2 Days", "type": "main", "index": 0 }]] },
    "Wait 2 Days": { "main": [[{ "node": "Follow-up 1", "type": "main", "index": 0 }]] },
    "Follow-up 1": { "main": [[{ "node": "Wait 3 Days", "type": "main", "index": 0 }]] },
    "Wait 3 Days": { "main": [[{ "node": "Breakup Email", "type": "main", "index": 0 }]] }
  },
  "active": false,
  "settings": { "executionOrder": "v1" },
  "pinData": {},
  "meta": { "templateCredsSetupCompleted": false }
}
