{
  "name": "VW24 \u2014 New Subscriber Onboarding",
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "stripe-new-subscriber",
        "responseMode": "lastNode",
        "options": {}
      },
      "name": "Stripe Webhook",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 1,
      "position": [
        240,
        300
      ],
      "webhookId": "vw24-stripe-subscriber",
      "id": "9b20cfeb-b912-433b-9749-893f5f1f58c8"
    },
    {
      "parameters": {
        "conditions": {
          "string": [
            {
              "value1": "={{$json.type}}",
              "operation": "contains",
              "value2": "checkout.session.completed"
            }
          ]
        }
      },
      "name": "Is New Subscriber?",
      "type": "n8n-nodes-base.if",
      "typeVersion": 1,
      "position": [
        460,
        300
      ],
      "id": "846c2294-5465-4221-b435-163d2d93c00c"
    },
    {
      "parameters": {
        "functionCode": "const obj = items[0].json.data?.object || {};\nconst plan = obj.metadata?.plan || 'Pro';\nconst planPrices = { starter:'\u20ac29', pro:'\u20ac79', business:'\u20ac199', enterprise:'\u20ac499' };\nreturn [{ json: {\n  name:   obj.customer_details?.name  || 'Visionary',\n  email:  obj.customer_details?.email || '',\n  plan,\n  amount: planPrices[plan.toLowerCase()] || '\u20ac79',\n  sessionId: obj.id || '',\n  ts: new Date().toISOString()\n}}];"
      },
      "name": "Extract Customer Data",
      "type": "n8n-nodes-base.function",
      "typeVersion": 1,
      "position": [
        680,
        200
      ],
      "id": "965373b9-ab3c-4b4b-88f8-b1c8bacb26ed"
    },
    {
      "parameters": {
        "fromEmail": "info@vibeworld24.com",
        "toEmail": "={{$json.email}}",
        "subject": "\u2705 Welcome to VibeWorld24 {{$json.plan}} \u2014 You're In!",
        "emailType": "html",
        "message": "<!DOCTYPE html><html><head><style>body{margin:0;background:#03030f;font-family:'Segoe UI',sans-serif;color:#e2e8f0}.wrap{max-width:600px;margin:0 auto;padding:30px 20px}.header{background:linear-gradient(135deg,#00f0ff22,#7c3aed22);border:1px solid rgba(0,240,255,.2);border-radius:16px;padding:32px;text-align:center;margin-bottom:20px}.logo{font-size:1.5rem;font-weight:900;background:linear-gradient(135deg,#00f0ff,#7c3aed);-webkit-background-clip:text;-webkit-text-fill-color:transparent}.badge{display:inline-block;margin-top:10px;padding:6px 18px;background:rgba(0,255,136,.15);border:1px solid rgba(0,255,136,.35);border-radius:20px;font-size:.8rem;color:#00ff88;font-weight:700}.feat{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid rgba(0,240,255,.06)}.btn{display:block;text-align:center;margin:24px 0;padding:16px;background:linear-gradient(135deg,#00f0ff,#7c3aed);color:#000;font-weight:900;border-radius:50px;text-decoration:none;font-size:1rem}</style></head><body><div class=\"wrap\"><div class=\"header\"><div class=\"logo\">VibeWorld24</div><div class=\"badge\">\u2705 {{$json.plan}} Plan Active \u2014 {{$json.amount}}/mo</div></div><p>Hi {{$json.name}},</p><p>Welcome to <strong>VibeWorld24 \u2014 The AI Operating System for Business.</strong></p><div class=\"feat\"><span>\ud83e\udde0</span><span><strong>15 AI Specialists</strong> \u2014 Strategy, Sales, Growth, Legal & more</span></div><div class=\"feat\"><span>\u2699\ufe0f</span><span><strong>n8n Automation</strong> at n8n.vibeworld24.com</span></div><div class=\"feat\"><span>\ud83e\uddec</span><span><strong>Cross-Agent Memory</strong> \u2014 all agents share your context</span></div><div class=\"feat\"><span>\ud83d\udcca</span><span><strong>CEO Brain</strong> \u2014 executive-level AI reasoning</span></div><a href=\"https://vibeworld24.com/chat.html\" class=\"btn\">Launch Your AI System \u2192</a><p style=\"text-align:center;font-size:.72rem;color:#2a3a55\">\u00a9 2026 VibeWorld24 \u00b7 Questions? Reply to this email</p></div></body></html>"
      },
      "name": "Welcome Email",
      "type": "n8n-nodes-base.emailSend",
      "typeVersion": 1,
      "position": [
        900,
        200
      ],
      "credentials": {
        "smtp": {
          "id": "1",
          "name": "VW24 SMTP"
        }
      },
      "id": "5615a715-dc49-4e34-9f92-cd55c50b6458"
    },
    {
      "parameters": {
        "fromEmail": "info@vibeworld24.com",
        "toEmail": "klodiantaipi51@gmail.com",
        "subject": "\ud83d\udcb0 NEW SUBSCRIBER: {{$json.name}} \u2014 {{$json.amount}}/mo",
        "emailType": "html",
        "message": "<h2>New subscriber!</h2><p><strong>Name:</strong> {{$json.name}}</p><p><strong>Email:</strong> {{$json.email}}</p><p><strong>Plan:</strong> {{$json.plan}} \u2014 {{$json.amount}}/mo</p><p><strong>Time:</strong> {{$json.ts}}</p>"
      },
      "name": "Notify Owner",
      "type": "n8n-nodes-base.emailSend",
      "typeVersion": 1,
      "position": [
        900,
        380
      ],
      "credentials": {
        "smtp": {
          "id": "1",
          "name": "VW24 SMTP"
        }
      },
      "id": "2971091f-a6cf-49cf-840d-56cba384cd46"
    },
    {
      "parameters": {
        "unit": "days",
        "amount": 3
      },
      "name": "Wait 3 Days",
      "type": "n8n-nodes-base.wait",
      "typeVersion": 1,
      "position": [
        1120,
        200
      ],
      "id": "6c1f0a0f-8e8e-4aca-aae8-cacc041e5d6e"
    },
    {
      "parameters": {
        "fromEmail": "info@vibeworld24.com",
        "toEmail": "={{$json.email}}",
        "subject": "\ud83d\ude80 How to get 10x value from VibeWorld24 this week",
        "emailType": "html",
        "message": "<!DOCTYPE html><html><body style=\"background:#03030f;color:#e2e8f0;font-family:sans-serif;padding:20px\"><div style=\"max-width:580px;margin:0 auto\"><h2 style=\"color:#00f0ff\">{{$json.name}}, here's your power guide:</h2><ol><li style=\"margin-bottom:12px\"><strong>CEO Brain</strong> \u2014 start with your biggest business challenge. Type it in chat.</li><li style=\"margin-bottom:12px\"><strong>Automation Hub</strong> \u2014 go to n8n.vibeworld24.com and import a workflow template.</li><li style=\"margin-bottom:12px\"><strong>Sales AI</strong> \u2014 ask it to write your cold email sequence for your top 3 prospects.</li><li style=\"margin-bottom:12px\"><strong>Content AI</strong> \u2014 get 30 days of social content in one session.</li></ol><a href=\"https://vibeworld24.com/chat.html\" style=\"display:inline-block;padding:12px 24px;background:linear-gradient(135deg,#00f0ff,#7c3aed);color:#000;font-weight:800;border-radius:50px;text-decoration:none\">Open AI System \u2192</a></div></body></html>"
      },
      "name": "Day 3 Power Tips",
      "type": "n8n-nodes-base.emailSend",
      "typeVersion": 1,
      "position": [
        1340,
        200
      ],
      "credentials": {
        "smtp": {
          "id": "1",
          "name": "VW24 SMTP"
        }
      },
      "id": "ca66a128-18b1-47ca-8d8b-ccecc057d061"
    }
  ],
  "connections": {
    "Stripe Webhook": {
      "main": [
        [
          {
            "node": "Is New Subscriber?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Is New Subscriber?": {
      "main": [
        [
          {
            "node": "Extract Customer Data",
            "type": "main",
            "index": 0
          }
        ],
        []
      ]
    },
    "Extract Customer Data": {
      "main": [
        [
          {
            "node": "Welcome Email",
            "type": "main",
            "index": 0
          },
          {
            "node": "Notify Owner",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Welcome Email": {
      "main": [
        [
          {
            "node": "Wait 3 Days",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait 3 Days": {
      "main": [
        [
          {
            "node": "Day 3 Power Tips",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": true,
  "settings": {
    "executionOrder": "v1"
  },
  "id": "b68369fc-93a6-4042-8795-953364c0dcbf"
}