{
  "name": "Send verified building visitor entry passes with Gmail, Slack and VerifiEmail",
  "nodes": [
    {
      "id": "c5c2f1f9-4d11-4746-bda7-13cdb965c51b",
      "name": "Sticky Note - Overview1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        336,
        640
      ],
      "parameters": {
        "width": 468,
        "height": 792,
        "content": "### How It Works\nThis workflow automates visitor onboarding by validating each registration, \ngenerating a unique entry pass with QR code, and delivering it instantly. \nWhen a visitor submits their de"
      }
    },
    {
      "id": "11c70946-2894-4f98-bd77-f6587288935d",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        832,
        1152
      ],
      "parameters": {
        "width": 736,
        "height": 272,
        "content": "## Visitor Registration & Email Verification\nReceives visitor details and validates email deliverability before generating pass."
      }
    },
    {
      "id": "6fdcfbcc-5f00-4462-9bcc-956c5421f978",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1680,
        1056
      ],
      "parameters": {
        "width": 624,
        "height": 272,
        "content": "## Entry Pass Generation\nGenerates unique pass ID, QR code, and formatted PDF entry pass for the visitor."
      }
    },
    {
      "id": "3601b7ef-7c86-4cf0-8917-2ce741260a19",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2336,
        1072
      ],
      "parameters": {
        "width": 880,
        "height": 256,
        "content": "## Pass Distribution & Security Alert\nDelivers entry pass to visitor via email and notifies security/reception team through Slack."
      }
    },
    {
      "id": "f0034f04-8d6d-4b8a-945e-ac056eb5e0dd",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1712,
        1488
      ],
      "parameters": {
        "width": 528,
        "height": 240,
        "content": "## Error Handling\nReturns structured error responses for invalid submissions."
      }
    },
    {
      "id": "5e7908bd-492b-4a20-be5a-31a191aa725e",
      "name": "Generate Entry Pass ID",
      "type": "n8n-nodes-base.function",
      "position": [
        1744,
        1152
      ]
    },
    {
      "id": "0c6db00c-c5d5-4ef2-af8e-b0b307d584a0",
      "name": "Verify Visitor Email",
      "type": "n8n-nodes-verifiemail.verifiEmail",
      "position": [
        1136,
        1248
      ]
    },
    {
      "id": "f678f5b4-878f-4cf6-801a-c41ce0f0b4f4",
      "name": "Receive Visitor Registration",
      "type": "n8n-nodes-base.webhook",
      "position": [
        864,
        1248
      ]
    },
    {
      "id": "5c368efe-2514-47bc-9cb5-1821194b120f",
      "name": "Check Email Validity",
      "type": "n8n-nodes-base.if",
      "position": [
        1392,
        1248
      ]
    },
    {
      "id": "9d884e72-ae03-49ae-9a46-47b56a2fab27",
      "name": "Create QR Code for Pass",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1952,
        1152
      ]
    },
    {
      "id": "6054bd22-2c58-4737-95f8-c0455783a906",
      "name": "Store QR Code URL",
      "type": "n8n-nodes-base.set",
      "position": [
        2160,
        1152
      ]
    },
    {
      "id": "9b70d418-5714-4d1a-9c0a-86fbaf4b7e31",
      "name": "Generate Entry Pass PDF",
      "type": "n8n-nodes-htmlcsstopdf.htmlcsstopdf",
      "position": [
        2400,
        1152
      ]
    },
    {
      "id": "03a47ad0-8542-478a-ba17-489fe8563e45",
      "name": "Send Pass to Visitor",
      "type": "n8n-nodes-base.gmail",
      "position": [
        2624,
        1152
      ]
    },
    {
      "id": "f022a244-1f19-413c-82f5-fe7aba9300f8",
      "name": "Notify Security Team",
      "type": "n8n-nodes-base.slack",
      "position": [
        2816,
        1152
      ]
    },
    {
      "id": "ac0b1f3e-5138-4526-9dc3-6b251669cb7f",
      "name": "Confirm Pass Generated",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        3024,
        1152
      ]
    },
    {
      "id": "9ac940ff-97dd-4a30-a42f-c0fe8fb8789d",
      "name": "Set Invalid Email Error",
      "type": "n8n-nodes-base.set",
      "position": [
        1776,
        1584
      ]
    },
    {
      "id": "d6e5890c-662f-41bc-bc4d-5f3563ac898d",
      "name": "Return Error Response",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        2048,
        1584
      ]
    }
  ],
  "connections": {
    "Store QR Code URL": {
      "main": [
        [
          {
            "node": "Generate Entry Pass PDF",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Email Validity": {
      "main": [
        [
          {
            "node": "Generate Entry Pass ID",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Set Invalid Email Error",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Notify Security Team": {
      "main": [
        [
          {
            "node": "Confirm Pass Generated",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Pass to Visitor": {
      "main": [
        [
          {
            "node": "Notify Security Team",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Verify Visitor Email": {
      "main": [
        [
          {
            "node": "Check Email Validity",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Entry Pass ID": {
      "main": [
        [
          {
            "node": "Create QR Code for Pass",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create QR Code for Pass": {
      "main": [
        [
          {
            "node": "Store QR Code URL",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Entry Pass PDF": {
      "main": [
        [
          {
            "node": "Send Pass to Visitor",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Invalid Email Error": {
      "main": [
        [
          {
            "node": "Return Error Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Receive Visitor Registration": {
      "main": [
        [
          {
            "node": "Verify Visitor Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}