{
  "name": "Create verified user profiles with email validation, PDF generation & Gmail delivery",
  "nodes": [
    {
      "id": "6b5340c0-efc3-42ed-ba9b-f87d4df66ca9",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -192,
        -32
      ],
      "parameters": {
        "width": 405,
        "height": 410,
        "content": "## 🔧 SETUP CREDENTIALS\n\n**Required Credentials:**\n\n1. **VerifiEmail API**\n   - Sign up at https://verifi.email\n   - Get your API key\n\n2. **HTMLcsstoPDF API**\n   - Register at https://htmlcsstoimg.com\n"
      }
    },
    {
      "id": "a5433c21-6cc1-4147-aaae-2c12102e95b5",
      "name": "Webhook - Receive User Data",
      "type": "n8n-nodes-base.webhook",
      "position": [
        368,
        224
      ]
    },
    {
      "id": "3bd46209-c0c6-4b89-acaf-752e5e16f332",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        240,
        -112
      ],
      "parameters": {
        "width": 356,
        "height": 493,
        "content": "## 📥 STEP 1: WEBHOOK TRIGGER\n\n**Purpose:** Receive user signup data\n\n**Expected JSON Input:**\n```json\n{\n  \"name\": \"John Doe\",\n  \"email\": \"john@example.com\",\n  \"city\": \"Gurugram\",\n  \"profession\": \"Soft"
      }
    },
    {
      "id": "0033dc9f-4322-4fd2-9df9-7e78761dce5d",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        608,
        0
      ],
      "parameters": {
        "width": 248,
        "height": 381,
        "content": "## ✅ STEP 2: EMAIL VERIFICATION\n\n**Purpose:** Validate email using VerifiEmail API\n\n**Parameters:**\n- email: User's email from webhook\n\n"
      }
    },
    {
      "id": "d171efbb-aeb3-48dc-ba89-34ad1308c22d",
      "name": "IF Email Valid?",
      "type": "n8n-nodes-base.if",
      "position": [
        960,
        224
      ]
    },
    {
      "id": "c5ef3261-eeda-4934-bee0-0ecc3549ce4a",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        880,
        -144
      ],
      "parameters": {
        "width": 316,
        "height": 507,
        "content": "## ⚖️ STEP 3: CONDITIONAL LOGIC\n\n**Purpose:** Branch workflow based on email validation\n\n**TRUE Path (Green):**\n→ Email is valid\n→ Generate HTML template\n→ Create PDF\n→ Send profile email\n→ Log to Goo"
      }
    },
    {
      "id": "d8664417-6235-4331-b37a-ee0a216d04f2",
      "name": "Generate HTML Template",
      "type": "n8n-nodes-base.set",
      "position": [
        1328,
        64
      ]
    },
    {
      "id": "7633467d-1190-4223-bcd0-07f03cecafc5",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1216,
        -208
      ],
      "parameters": {
        "width": 284,
        "height": 428,
        "content": "## 🧾 STEP 4: HTML TEMPLATE CREATION\n\n**Purpose:** Create beautiful HTML profile layout\n\n**Features:**\n- Modern, responsive design\n- Custom styling with CSS\n- Dynamic data from webhook\n- Professional a"
      }
    },
    {
      "id": "225534ff-724a-4009-8886-add1b3bb63e4",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1520,
        -176
      ],
      "parameters": {
        "width": 364,
        "height": 385,
        "content": "## 📄 STEP 5: PDF GENERATION\n\n**Purpose:** Convert HTML to downloadable image/PDF\n\n**Request Body:**\n- html: The generated HTML content\n- google_fonts: Inter font family\n- viewport_width: 800px\n- viewp"
      }
    },
    {
      "id": "defd69e1-8347-4418-914e-5808e0d0440e",
      "name": "Download PDF Binary",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2016,
        64
      ]
    },
    {
      "id": "d4be989c-6907-4a51-84ff-60ddc8f3747a",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1904,
        -144
      ],
      "parameters": {
        "width": 332,
        "height": 333,
        "content": "## 💾 STEP 6: DOWNLOAD PDF\n\n**Purpose:** Fetch the generated PDF as binary data\n\n**Method:** GET request to the URL returned by HTMLcsstoPDF\n\n"
      }
    },
    {
      "id": "d6e3ca94-dd1f-425b-91ab-e9c060102c07",
      "name": "Send Profile Email - Gmail",
      "type": "n8n-nodes-base.gmail",
      "position": [
        2336,
        64
      ]
    },
    {
      "id": "382aabcc-1bee-4536-845c-caf8bcef2522",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2256,
        -192
      ],
      "parameters": {
        "width": 368,
        "height": 423,
        "content": "## 📧 STEP 7: EMAIL DELIVERY\n\n**Purpose:** Send profile PDF to verified user\n\n**Gmail Configuration:**\n- **To:** User's email from webhook\n- **Subject:** \"Your Verified Profile PDF is Ready ✅\"\n- **Type"
      }
    },
    {
      "id": "e8c9e5b1-7c63-49e3-acc4-bd390a0349f9",
      "name": "Log to Google Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        2736,
        64
      ]
    },
    {
      "id": "a21a9553-ff14-4184-a9ea-01a213d9df07",
      "name": "Sticky Note9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2640,
        -224
      ],
      "parameters": {
        "width": 380,
        "height": 448,
        "content": "## 📊 STEP 8: DATA LOGGING\n\n**Purpose:** Track all verified users in Google Sheets\n\n**Spreadsheet Columns:**\n1. **Name** - User's full name\n2. **Email** - Verified email address\n3. **City** - User's lo"
      }
    },
    {
      "id": "7795da16-16bd-485f-a44f-6880253dcfde",
      "name": "Send Rejection Email - Gmail",
      "type": "n8n-nodes-base.gmail",
      "position": [
        1648,
        352
      ]
    },
    {
      "id": "6349b52f-f398-49be-9847-6280a023639a",
      "name": "Sticky Note10",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1536,
        336
      ],
      "parameters": {
        "width": 372,
        "height": 560,
        "content": "\n\n\n\n\n\n\n\n\n\n\n\n\n\n## 🚫 STEP 9: INVALID EMAIL HANDLING\n\n**Purpose:** Notify users when email verification fails\n\n**Email Details:**\n- **Subject:** \"Profile Verification Failed ❌\"\n- **Message:** Explains wh"
      }
    },
    {
      "id": "26712fee-42f0-4c18-b345-aeed77bfc290",
      "name": "Sticky Note11",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3040,
        -112
      ],
      "parameters": {
        "width": 368,
        "height": 336,
        "content": "## ✅ WORKFLOW COMPLETE!\n\n**Success Path Summary:**\n✅ Webhook receives user data\n✅ Email verified via API\n✅ HTML profile generated\n✅ PDF created and downloaded\n✅ Profile emailed to user\n✅ Data logged t"
      }
    },
    {
      "id": "b91d5210-1e6b-4ee4-9217-5ac7c9760fba",
      "name": "Verifi Email",
      "type": "n8n-nodes-verifiemail.verifiEmail",
      "position": [
        656,
        224
      ]
    },
    {
      "id": "1b44d9a8-e00d-4400-a00b-8c45b3dabea4",
      "name": "HTML to PDF",
      "type": "n8n-nodes-htmlcsstopdf.htmlcsstopdf",
      "position": [
        1600,
        64
      ]
    }
  ],
  "connections": {
    "HTML to PDF": {
      "main": [
        [
          {
            "node": "Download PDF Binary",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Verifi Email": {
      "main": [
        [
          {
            "node": "IF Email Valid?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "IF Email Valid?": {
      "main": [
        [
          {
            "node": "Generate HTML Template",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send Rejection Email - Gmail",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download PDF Binary": {
      "main": [
        [
          {
            "node": "Send Profile Email - Gmail",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate HTML Template": {
      "main": [
        [
          {
            "node": "HTML to PDF",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Profile Email - Gmail": {
      "main": [
        [
          {
            "node": "Log to Google Sheets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Webhook - Receive User Data": {
      "main": [
        [
          {
            "node": "Verifi Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}