{
  "name": "Onboard employees automatically with Google Workspace, Slack, Notion and Gmail",
  "nodes": [
    {
      "id": "eadabcf2-059a-4624-8642-25f798604dcd",
      "name": "Overview",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        17600,
        5408
      ],
      "parameters": {
        "width": 680,
        "height": 484,
        "content": "## Employee Onboarding Orchestrator\nVersion 1.0.0 — HR\n\nAutomates the complete Day 0-30 onboarding sequence. Provisions a Google Workspace account, sends a Slack welcome, creates a Notion onboarding p"
      }
    },
    {
      "id": "8ac7a181-a2e1-4f2f-8732-739dbf76d05d",
      "name": "Prerequisites",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        18304,
        5408
      ],
      "parameters": {
        "width": 520,
        "height": 484,
        "content": "## Prerequisites\n- Google Workspace Admin SDK\n  (Google OAuth2 with admin.directory.user.create scope)\n- Slack Bot token with chat:write scope\n- Notion integration token with database access\n- Gmail O"
      }
    },
    {
      "id": "a0938ca8-04ef-42cc-9e71-985df02d99c8",
      "name": "Setup Required",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        18848,
        5408
      ],
      "parameters": {
        "width": 520,
        "height": 484,
        "content": "## Setup Required\n1. Provision Google Account\n   Set Google OAuth2 credential\n2. Post Welcome Slack + Alert Manager\n   Set Slack credential\n   Replace C00GENERAL000 with real channel ID\n   Replace C00"
      }
    },
    {
      "id": "35c7dec4-af86-4b20-b5f4-2c08aeb14997",
      "name": "How It Works",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        19392,
        5408
      ],
      "parameters": {
        "width": 500,
        "height": 484,
        "content": "## How It Works\n1. HR system sends a POST to the webhook\n   with the new employee details\n2. Google Workspace account is provisioned\n   with a temporary password\n3. Welcome message posted to #general\n"
      }
    },
    {
      "id": "541332e4-356a-452d-9fbe-583e06afb872",
      "name": "New Employee Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        17840,
        6112
      ]
    },
    {
      "id": "537d4372-24cd-4a3d-a5eb-b682844df5f8",
      "name": "Build Payload note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        18000,
        5984
      ],
      "parameters": {
        "width": 250,
        "height": 60,
        "content": "Validates required fields and builds a clean structured payload"
      }
    },
    {
      "id": "b8667aee-34ab-4c98-8b40-7fdbbeef178b",
      "name": "Build Payload",
      "type": "n8n-nodes-base.code",
      "position": [
        18112,
        6112
      ]
    },
    {
      "id": "7c4beb5f-de41-4575-b703-446f36bb19f7",
      "name": "Provision Google note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        18304,
        5984
      ],
      "parameters": {
        "width": 270,
        "height": 60,
        "content": "Creates Google Workspace account via Admin Directory API"
      }
    },
    {
      "id": "696bf943-055b-4ea6-9c2d-5a76f352a989",
      "name": "Provision Google Account",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        18368,
        6112
      ]
    },
    {
      "id": "7d033aef-fb0c-49b7-8fed-84c12cf8c3b8",
      "name": "Welcome Slack note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        18592,
        5984
      ],
      "parameters": {
        "width": 250,
        "height": 60,
        "content": "Posts welcome message to #general channel"
      }
    },
    {
      "id": "1cdd894f-3923-4bfb-a744-f741093fefbf",
      "name": "Post Welcome Slack",
      "type": "n8n-nodes-base.slack",
      "position": [
        18624,
        6096
      ]
    },
    {
      "id": "05037c2e-e341-45e7-bf52-26e6bd8b3446",
      "name": "Create Notion note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        18880,
        5984
      ],
      "parameters": {
        "width": 280,
        "height": 60,
        "content": "Creates onboarding page with 5-task checklist in Notion database"
      }
    },
    {
      "id": "4bed5373-c230-4beb-b592-aef144f5b447",
      "name": "Create Notion Onboarding Page",
      "type": "n8n-nodes-base.notion",
      "position": [
        18912,
        6080
      ]
    },
    {
      "id": "a199944b-34ab-4cbc-a7cd-7e8a328b2e69",
      "name": "Send Welcome Email",
      "type": "n8n-nodes-base.gmail",
      "position": [
        19152,
        6064
      ]
    },
    {
      "id": "2633ac53-d4a9-4566-899d-f692d4e92bfc",
      "name": "Wait 7 Days note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        19360,
        5952
      ],
      "parameters": {
        "width": 220,
        "height": 60,
        "content": "Pauses workflow execution for exactly 7 days"
      }
    },
    {
      "id": "0de37003-31b0-4cc4-94b4-043cd3fad4ac",
      "name": "Wait 7 Days",
      "type": "n8n-nodes-base.wait",
      "position": [
        19424,
        6048
      ]
    },
    {
      "id": "a64c0c42-821a-4264-ab77-f4fdc04efaa2",
      "name": "Check Tasks note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        19648,
        5952
      ],
      "parameters": {
        "width": 270,
        "height": 60,
        "content": "Queries Notion for tasks with Status = Done for this employee"
      }
    },
    {
      "id": "d727625f-543d-49e4-a88f-226e0504860c",
      "name": "Check Completed Tasks",
      "type": "n8n-nodes-base.notion",
      "position": [
        19680,
        6048
      ]
    },
    {
      "id": "6d6cc602-e05b-4640-84ca-66123f0b614c",
      "name": "3+ Tasks Complete?",
      "type": "n8n-nodes-base.if",
      "position": [
        19920,
        6096
      ]
    },
    {
      "id": "ad88bf2a-e25c-4ff4-b6a5-8a96149f356c",
      "name": "Wait Until Day 30",
      "type": "n8n-nodes-base.wait",
      "position": [
        20192,
        5936
      ]
    },
    {
      "id": "c0a8d7f8-b325-4d94-90c7-863a705c3283",
      "name": "Day 30 Completion Message",
      "type": "n8n-nodes-base.slack",
      "position": [
        20448,
        5936
      ]
    },
    {
      "id": "5d422142-8527-4757-937e-8ff59fbf8608",
      "name": "Alert Manager — Incomplete Tasks",
      "type": "n8n-nodes-base.slack",
      "position": [
        20192,
        6336
      ]
    }
  ],
  "connections": {
    "Wait 7 Days": {
      "main": [
        [
          {
            "node": "Check Completed Tasks",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Build Payload": {
      "main": [
        [
          {
            "node": "Provision Google Account",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait Until Day 30": {
      "main": [
        [
          {
            "node": "Day 30 Completion Message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "3+ Tasks Complete?": {
      "main": [
        [
          {
            "node": "Wait Until Day 30",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Alert Manager — Incomplete Tasks",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Post Welcome Slack": {
      "main": [
        [
          {
            "node": "Create Notion Onboarding Page",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Welcome Email": {
      "main": [
        [
          {
            "node": "Wait 7 Days",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "New Employee Webhook": {
      "main": [
        [
          {
            "node": "Build Payload",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Completed Tasks": {
      "main": [
        [
          {
            "node": "3+ Tasks Complete?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Provision Google Account": {
      "main": [
        [
          {
            "node": "Post Welcome Slack",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Notion Onboarding Page": {
      "main": [
        [
          {
            "node": "Send Welcome Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}