{
  "name": "Automate employee onboarding with GPT-4o: Jira, Notion & Gmail integration",
  "nodes": [
    {
      "id": "b7966c54-38b1-4a82-9477-8cd7e9384d81",
      "name": "When clicking ‘Execute workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -752,
        -192
      ]
    },
    {
      "id": "0e1b2b00-40a3-410c-8eff-1b90c3cddb0d",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        80,
        -32
      ],
      "parameters": {
        "width": 368,
        "height": 416,
        "content": "## 📋 Generate Notion Onboarding Checklist\n**Action:**  \n- Creates personalized onboarding checklist page in Notion.  \n**Description:**  \n- Dynamic page title: \"{Name} - Onboarding Checklist\"  \n- Struc"
      }
    },
    {
      "id": "30f2733c-43d1-48cc-aa69-e4ba2bda1a89",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -432,
        0
      ],
      "parameters": {
        "width": 272,
        "height": 528,
        "content": "## 👤 Define New Hire Profile Data\n**Action:**  \n- Structures new employee information for multi-platform onboarding.  \n**Description:**  \n- Consolidates data into a standardized format:  \n  - Personal"
      }
    },
    {
      "id": "7021de1e-54d6-42cc-9e2f-898ac9cccbb6",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        672,
        -1088
      ],
      "parameters": {
        "width": null,
        "height": 480,
        "content": "## 📊 Log Jira Provisioning Failures to Error Sheet\n**Action:**  \n- Records Jira account creation errors in a Google Sheet.  \n**Description:**  \n- Captures failures like duplicate email, API auth error"
      }
    },
    {
      "id": "c2fd3b41-2f64-4b56-86cb-8f0bb5d24810",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -16,
        -1088
      ],
      "parameters": {
        "width": null,
        "height": 464,
        "content": "## 🎫 Create Jira User Account\n**Action:**  \n- Automatically provisions new Jira user account via API.  \n**Description:**  \n- Calls Jira REST API (`/rest/api/3/user`) with POST method.  \n- Creates user"
      }
    },
    {
      "id": "f42a8d38-4e5d-4891-9448-4e29340a4fc7",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        288,
        -1136
      ],
      "parameters": {
        "width": null,
        "height": 496,
        "content": "## ✅ Validate Jira Account Creation Success\n**Action:**  \n- Confirms Jira user account creation was successful.  \n**Description:**  \n- Checks for valid `accountId` in API response.  \n- **True Path:** "
      }
    },
    {
      "id": "a93fe17d-57ff-46a3-88da-6bc25f75e1b4",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        320,
        640
      ],
      "parameters": {
        "width": 368,
        "height": 384,
        "content": "## 🤖 AI-Generated Welcome Message Creator\n**Action:**  \n- Generates personalized, warm onboarding message via GPT-4o.  \n**Description:**  \n- Leverages Azure OpenAI to craft messages using new hire inf"
      }
    },
    {
      "id": "79f38e52-ec40-4e4d-b8bf-26e7b1368cc4",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1072,
        0
      ],
      "parameters": {
        "width": 288,
        "height": 448,
        "content": "## 🧾 Format Comprehensive Welcome Email\n**Action:**  \n- Builds full HTML email with all onboarding resources and AI message.  \n**Description:**  \n- Personalized greeting and warm AI message.  \n- Click"
      }
    },
    {
      "id": "63413c56-62dd-41af-a286-ca069d339f3a",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1440,
        0
      ],
      "parameters": {
        "width": null,
        "height": 432,
        "content": "## 📧 Send Welcome Email to New Hire\n**Action:**  \n- Delivers comprehensive onboarding email to new hire inbox.  \n**Description:**  \n- Sends HTML email including AI message, access links, buddy info, a"
      }
    },
    {
      "id": "df323705-b891-4892-a7c4-206937c53b4d",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -32,
        800
      ],
      "parameters": {
        "width": null,
        "height": 432,
        "content": "## 🧠 GPT-4o Language Model Configuration\n**Action:**  \n- Configures GPT-4o model for generating onboarding messages.  \n**Description:**  \n- Sets system prompt defining onboarding assistant persona.  \n"
      }
    },
    {
      "id": "1bb5da54-d2f4-48a3-b8ad-868c68ff41ee",
      "name": "Define New Hire Profile Data",
      "type": "n8n-nodes-base.set",
      "position": [
        -352,
        -192
      ]
    },
    {
      "id": "aeef0657-f3b6-480c-b120-578329f22e32",
      "name": "Create Jira User Account",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        64,
        -576
      ]
    },
    {
      "id": "aed4e501-ddbf-41f6-a5e2-08b7d7e970ce",
      "name": "Validate Jira Account Creation Success",
      "type": "n8n-nodes-base.if",
      "position": [
        352,
        -576
      ]
    },
    {
      "id": "2c67259a-cdd1-43ee-a4af-6bd780d56eda",
      "name": "Log Jira Provisioning Failures to Error Sheet",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        752,
        -560
      ]
    },
    {
      "id": "79686adb-3cad-4af2-81d9-af44b4306352",
      "name": " Generate Notion Onboarding Checklist",
      "type": "n8n-nodes-base.notion",
      "position": [
        224,
        -192
      ]
    },
    {
      "id": "00068c67-c7a8-42ba-8d53-ee634de6e10f",
      "name": "AI-Generated Welcome Message Creator",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        208,
        432
      ]
    },
    {
      "id": "f1cad5d9-1870-4e1a-b6ad-551d7afb5f20",
      "name": " GPT-4o Language Model Configuration",
      "type": "@n8n/n8n-nodes-langchain.lmChatAzureOpenAi",
      "position": [
        128,
        640
      ]
    },
    {
      "id": "8343b46b-d2c3-45d2-b0f7-0921d8ca56f8",
      "name": "Sticky Note9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        736,
        32
      ],
      "parameters": {
        "width": 272,
        "height": 416,
        "content": "## 🔗 Consolidate Onboarding Data Streams\n**Action:**  \n- Merges data from Jira, Notion, and AI-generated message for unified email payload.  \n**Description:**  \n- Combines:  \n  1. Jira account info  \n"
      }
    },
    {
      "id": "fe3a7d1f-2722-4451-8bc4-131e8a0e1dbe",
      "name": "Consolidate Onboarding Data Streams",
      "type": "n8n-nodes-base.merge",
      "position": [
        816,
        -208
      ]
    },
    {
      "id": "8988e72b-a0ae-489e-ae9a-b60e66288738",
      "name": " Format Comprehensive Welcome Email",
      "type": "n8n-nodes-base.code",
      "position": [
        1184,
        -192
      ]
    },
    {
      "id": "5360177e-34f4-4623-a9df-1d7a99d4eec6",
      "name": "Send Welcome Email to New Hire",
      "type": "n8n-nodes-base.gmail",
      "position": [
        1488,
        -192
      ]
    }
  ],
  "connections": {
    "Create Jira User Account": {
      "main": [
        [
          {
            "node": "Validate Jira Account Creation Success",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Define New Hire Profile Data": {
      "main": [
        [
          {
            "node": "AI-Generated Welcome Message Creator",
            "type": "main",
            "index": 0
          },
          {
            "node": " Generate Notion Onboarding Checklist",
            "type": "main",
            "index": 0
          },
          {
            "node": "Create Jira User Account",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    " Format Comprehensive Welcome Email": {
      "main": [
        [
          {
            "node": "Send Welcome Email to New Hire",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Consolidate Onboarding Data Streams": {
      "main": [
        [
          {
            "node": " Format Comprehensive Welcome Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    " GPT-4o Language Model Configuration": {
      "ai_languageModel": [
        [
          {
            "node": "AI-Generated Welcome Message Creator",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "AI-Generated Welcome Message Creator": {
      "main": [
        [
          {
            "node": "Consolidate Onboarding Data Streams",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "When clicking ‘Execute workflow’": {
      "main": [
        [
          {
            "node": "Define New Hire Profile Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    " Generate Notion Onboarding Checklist": {
      "main": [
        [
          {
            "node": "Consolidate Onboarding Data Streams",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Validate Jira Account Creation Success": {
      "main": [
        [
          {
            "node": "Consolidate Onboarding Data Streams",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Log Jira Provisioning Failures to Error Sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}