新开发人员入职自动化
高级
这是一个HR、AI Chatbot领域的自动化工作流,包含 21 个节点。主要使用 If、Set、Code、Gmail、Merge 等节点。 使用 GPT-4o 实现员工入职自动化:Jira、Notion 和 Gmail 集成
前置要求
- •Google 账号和 Gmail API 凭证
- •Notion API Key
- •可能需要目标 API 的认证凭证
- •Google Sheets API 凭证
- •OpenAI API Key
使用的节点 (21 个)
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"id": "4CTZmDghFqoIOP2v",
"meta": {
"instanceId": "8443f10082278c46aa5cf3acf8ff0f70061a2c58bce76efac814b16290845177",
"templateCredsSetupCompleted": true
},
"name": "新开发人员入职自动化:",
"tags": [],
"nodes": [
{
"id": "b7966c54-38b1-4a82-9477-8cd7e9384d81",
"name": "当点击“执行工作流”时",
"type": "n8n-nodes-base.manualTrigger",
"position": [
-752,
-192
],
"parameters": {},
"typeVersion": 1
},
{
"id": "0e1b2b00-40a3-410c-8eff-1b90c3cddb0d",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
80,
-32
],
"parameters": {
"width": 368,
"height": 416,
"content": "## 📋 生成 Notion 入职检查清单"
},
"typeVersion": 1
},
{
"id": "30f2733c-43d1-48cc-aa69-e4ba2bda1a89",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-432,
0
],
"parameters": {
"width": 272,
"height": 528,
"content": "## 👤 定义新员工档案数据"
},
"typeVersion": 1
},
{
"id": "7021de1e-54d6-42cc-9e2f-898ac9cccbb6",
"name": "便签2",
"type": "n8n-nodes-base.stickyNote",
"position": [
672,
-1088
],
"parameters": {
"height": 480,
"content": "## 📊 将 Jira 配置失败记录到错误表格"
},
"typeVersion": 1
},
{
"id": "c2fd3b41-2f64-4b56-86cb-8f0bb5d24810",
"name": "便签3",
"type": "n8n-nodes-base.stickyNote",
"position": [
-16,
-1088
],
"parameters": {
"height": 464,
"content": "## 🎫 创建 Jira 用户账户"
},
"typeVersion": 1
},
{
"id": "f42a8d38-4e5d-4891-9448-4e29340a4fc7",
"name": "便签4",
"type": "n8n-nodes-base.stickyNote",
"position": [
288,
-1136
],
"parameters": {
"height": 496,
"content": "## ✅ 验证 Jira 账户创建成功"
},
"typeVersion": 1
},
{
"id": "a93fe17d-57ff-46a3-88da-6bc25f75e1b4",
"name": "便签5",
"type": "n8n-nodes-base.stickyNote",
"position": [
320,
640
],
"parameters": {
"width": 368,
"height": 384,
"content": "## 🤖 AI 生成的欢迎消息创建器"
},
"typeVersion": 1
},
{
"id": "79f38e52-ec40-4e4d-b8bf-26e7b1368cc4",
"name": "### 需要帮助?",
"type": "n8n-nodes-base.stickyNote",
"position": [
1072,
0
],
"parameters": {
"width": 288,
"height": 448,
"content": "## 🧾 格式化全面欢迎邮件"
},
"typeVersion": 1
},
{
"id": "63413c56-62dd-41af-a286-ca069d339f3a",
"name": "## 试试看!",
"type": "n8n-nodes-base.stickyNote",
"position": [
1440,
0
],
"parameters": {
"height": 432,
"content": "## 📧 发送欢迎邮件给新员工"
},
"typeVersion": 1
},
{
"id": "df323705-b891-4892-a7c4-206937c53b4d",
"name": "GET 模型",
"type": "n8n-nodes-base.stickyNote",
"position": [
-32,
800
],
"parameters": {
"height": 432,
"content": "## 🧠 GPT-4o 语言模型配置"
},
"typeVersion": 1
},
{
"id": "1bb5da54-d2f4-48a3-b8ad-868c68ff41ee",
"name": "定义新员工档案数据",
"type": "n8n-nodes-base.set",
"position": [
-352,
-192
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "8513651a-27c6-4bd3-8c6e-cc97ed899eed",
"name": "name",
"type": "string",
"value": "John Doe"
},
{
"id": "1e3fd393-81ca-4a12-83c0-f4ccd85efd85",
"name": "email",
"type": "string",
"value": "john.doe@example.com"
},
{
"id": "0360d8ac-7b76-4da2-8d63-c9ee0f8f1264",
"name": "username",
"type": "string",
"value": "johndoe"
},
{
"id": "b79a4c3b-e334-4087-bbe8-3d227cd8c0aa",
"name": "organization",
"type": "string",
"value": "saurabh organization"
},
{
"id": "cd2f48e9-897e-4fde-8c4b-d1727b477a50",
"name": "start_date",
"type": "string",
"value": "12/02/2025"
},
{
"id": "c230c4bf-fe47-48f6-a7f2-f8c8cb374c18",
"name": "buddy",
"type": "string",
"value": "depak sen "
},
{
"id": "a9c3ce7b-d717-48bb-a7e8-34549d3f4167",
"name": "welcome_message",
"type": "string",
"value": "Welcome newscctv to Techdome’s Developer Team 🎉"
},
{
"id": "bd3bc9f1-dadf-47b2-be3e-2750d80e8047",
"name": "slack_invite_link",
"type": "string",
"value": "https://join.slack.com/t/techdome/invite/your-link"
},
{
"id": "441dcb27-f0c2-445f-8d4e-77c57774c107",
"name": "github_invite_link",
"type": "string",
"value": "https://github.com/orgs/techdome/invitation"
},
{
"id": "22509df0-86fc-4143-95d6-633b3f1d008b",
"name": "jira_project_link",
"type": "string",
"value": "https://newscctv22.atlassian.net/jira/software/c/projects/SCRUM/boards/1"
},
{
"id": "11e48083-8fdd-424e-8c42-8fc2ff667cbf",
"name": "notion_checklist_name",
"type": "string",
"value": "Developer Onboarding Checklist"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "aeef0657-f3b6-480c-b120-578329f22e32",
"name": "创建 Jira 用户账户",
"type": "n8n-nodes-base.httpRequest",
"position": [
64,
-576
],
"parameters": {
"url": "={{$node[\"Define New Hire Profile Data\"].json[\"jira_domain\"]}}/rest/api/3/user",
"method": "POST",
"options": {},
"jsonBody": "={\n \"emailAddress\": \"{{$json[\"email\"]}}\",\n \"displayName\": \"{{$json[\"name\"]}}\",\n \"name\": \"{{$json[\"username\"]}}\",\n \"products\": [\"jira-software\"]\n}\n",
"sendBody": true,
"sendHeaders": true,
"specifyBody": "json",
"headerParameters": {
"parameters": [
{
"name": "Content-Type",
"value": "application/json"
}
]
}
},
"typeVersion": 4.2
},
{
"id": "aed4e501-ddbf-41f6-a5e2-08b7d7e970ce",
"name": "验证 Jira 账户创建成功",
"type": "n8n-nodes-base.if",
"position": [
352,
-576
],
"parameters": {
"options": {},
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "e2adb005-2b3c-4d1e-8445-442df1fe925a",
"operator": {
"type": "string",
"operation": "notEmpty",
"singleValue": true
},
"leftValue": "={{ $json[\"accountId\"] }}",
"rightValue": ""
}
]
}
},
"typeVersion": 2.2
},
{
"id": "2c67259a-cdd1-43ee-a4af-6bd780d56eda",
"name": "将 Jira 配置失败记录到错误表格",
"type": "n8n-nodes-base.googleSheets",
"position": [
752,
-560
],
"parameters": {
"columns": {
"value": {},
"schema": [
{
"id": "error_id",
"type": "string",
"display": true,
"removed": false,
"required": false,
"displayName": "error_id",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "error",
"type": "string",
"display": true,
"removed": false,
"required": false,
"displayName": "error",
"defaultMatch": false,
"canBeUsedToMatch": true
}
],
"mappingMode": "defineBelow",
"matchingColumns": [
"error_id"
],
"attemptToConvertTypes": false,
"convertFieldsToString": false
},
"options": {},
"operation": "append",
"sheetName": {
"__rl": true,
"mode": "list",
"value": 1338537721,
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1Uldk_4BxWbdZTDZxFUeohIfeBmGHHqVEl9Ogb0l6R8Y/edit#gid=1338537721",
"cachedResultName": "error log sheet"
},
"documentId": {
"__rl": true,
"mode": "list",
"value": "1Uldk_4BxWbdZTDZxFUeohIfeBmGHHqVEl9Ogb0l6R8Y",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1Uldk_4BxWbdZTDZxFUeohIfeBmGHHqVEl9Ogb0l6R8Y/edit?usp=drivesdk",
"cachedResultName": "Interviewer Brief Pack "
}
},
"credentials": {
"googleSheetsOAuth2Api": {
"id": "kpPEOLCGn963qpoh",
"name": "automations@techdome.ai"
}
},
"typeVersion": 4.6
},
{
"id": "79686adb-3cad-4af2-81d9-af44b4306352",
"name": "生成 Notion 入职检查清单",
"type": "n8n-nodes-base.notion",
"position": [
224,
-192
],
"parameters": {
"title": "={{$json[\"name\"]}} - Onboarding Checklist",
"pageId": {
"__rl": true,
"mode": "id",
"value": "265802b91fa080f69fffd0fc1daffe3d"
},
"simple": false,
"blockUi": {
"blockValues": [
{
"type": "heading_1",
"textContent": "={{ $json.notion_checklist_name }}"
},
{
"textContent": "=👋 Welcome {{$json[\"name\"]}} to Techdome’s Developer Team 🎉 Your onboarding journey starts today! Here’s everything you’ll need to get started: - 💬 **Slack Access:** [Join Workspace]({{$json[\"slack_invite_link\"]}}) - 💻 **GitHub Access:** [Join Organization]({{$json[\"github_invite_link\"]}}) - 🧾 **Jira Project Board:** [View Tasks]({{$json[\"jira_project_link\"]}}) - 🗒️ You’ll be guided by your buddy **{{$json[\"buddy\"]}}**, who will help you with setup and initial tasks. Let’s make your first week a great start 🚀 Status: *Invited* | Start Date: {{$json[\"start_date\"]}}"
}
]
},
"options": {}
},
"credentials": {
"notionApi": {
"id": "iDjtgSTYG9ECVBtT",
"name": "Notion account 2"
}
},
"typeVersion": 2.2
},
{
"id": "00068c67-c7a8-42ba-8d53-ee634de6e10f",
"name": "AI 生成的欢迎消息创建器",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
208,
432
],
"parameters": {
"text": "=You are Techdome’s onboarding assistant. \nCompose a warm, friendly onboarding message for a new developer.\n\nHere’s the new hire data in JSON:\n{{ JSON.stringify($json) }}\n\nUse the details to:\n- Welcome the developer by name\n- Mention their buddy\n- Share joining links (Slack, GitHub, Jira, Notion)\n- Add a short motivational line at the end\n\nKeep the tone conversational and include emojis (🎉 🚀 💬 💻 🧾).\nFormat the message as text for email or Slack.\n",
"options": {
"systemMessage": "=You are an assistant that specializes in generating onboarding messages for new employees.\nMake the message sound welcoming, professional, and motivating. Keep it under 200 words.\n"
},
"promptType": "define"
},
"typeVersion": 2.1
},
{
"id": "f1cad5d9-1870-4e1a-b6ad-551d7afb5f20",
"name": "GPT-4o 语言模型配置",
"type": "@n8n/n8n-nodes-langchain.lmChatAzureOpenAi",
"position": [
128,
640
],
"parameters": {
"model": "gpt-4o",
"options": {}
},
"credentials": {
"azureOpenAiApi": {
"id": "C3WzT18XqF8OdVM6",
"name": "Azure Open AI account"
}
},
"typeVersion": 1
},
{
"id": "8343b46b-d2c3-45d2-b0f7-0921d8ca56f8",
"name": "## 1. 创建新的自定义 OpenAI 凭据",
"type": "n8n-nodes-base.stickyNote",
"position": [
736,
32
],
"parameters": {
"width": 272,
"height": 416,
"content": "## 🔗 整合入职数据流"
},
"typeVersion": 1
},
{
"id": "fe3a7d1f-2722-4451-8bc4-131e8a0e1dbe",
"name": "整合入职数据流",
"type": "n8n-nodes-base.merge",
"position": [
816,
-208
],
"parameters": {
"numberInputs": 3
},
"typeVersion": 3.2
},
{
"id": "8988e72b-a0ae-489e-ae9a-b60e66288738",
"name": "格式化全面欢迎邮件",
"type": "n8n-nodes-base.code",
"position": [
1184,
-192
],
"parameters": {
"jsCode": "// Get merged data\nconst data = $json;\n\n// Handle possible nested AI output\nlet aiOutput =\n data.output?.text ||\n data.output ||\n \"Welcome to Techdome! We’re excited to have you join the team 🚀\";\n\n// Links\nconst notionLink = data.url || \"https://www.notion.so/\";\nconst jiraLink =\n \"https://newscctv22.atlassian.net/jira/software/c/projects/SCRUM/boards/1\";\n\n// Employee info\nconst employee = {\n name: \"Saurabh Garg\",\n email: \"gargsaurabh18042001@gmail.com\",\n buddy: \"Depak Sen\",\n start_date: \"12/02/2025\",\n slack_invite_link: \"https://join.slack.com/t/techdome/invite/your-link\",\n github_invite_link: \"https://github.com/orgs/techdome/invitation\",\n};\n\n// Use AI node tone if exists, else wrap into a neat template\nconst emailBodyHTML = `\n<html>\n<body style=\"font-family:Arial, sans-serif; color:#333;\">\n <p>Hi <b>${employee.name}</b>,</p>\n \n <p>${aiOutput}</p>\n\n <p>Here are some useful links to get started:</p>\n <ul>\n <li>📋 <a href=\"${notionLink}\" target=\"_blank\">Notion Onboarding Checklist</a></li>\n <li>📊 <a href=\"${jiraLink}\" target=\"_blank\">Jira Project Board</a></li>\n <li>💬 <a href=\"${employee.slack_invite_link}\" target=\"_blank\">Slack Workspace</a></li>\n <li>💻 <a href=\"${employee.github_invite_link}\" target=\"_blank\">GitHub Organization</a></li>\n </ul>\n\n <p>👥 Your onboarding buddy: <b>${employee.buddy}</b><br>\n 🗓️ Start Date: <b>${employee.start_date}</b></p>\n\n <p>We’re thrilled to have you onboard and can’t wait to see your impact at <b>Techdome</b>! 🎉</p>\n \n <p>Best regards,<br>\n The Techdome Team</p>\n</body>\n</html>\n`;\n\n// Final output for Gmail\nreturn [\n {\n json: {\n to: employee.email,\n subject: `Welcome to Techdome, ${employee.name}! 🎉`,\n body: emailBodyHTML,\n },\n },\n];\n"
},
"typeVersion": 2
},
{
"id": "5360177e-34f4-4623-a9df-1d7a99d4eec6",
"name": "发送欢迎邮件给新员工",
"type": "n8n-nodes-base.gmail",
"position": [
1488,
-192
],
"webhookId": "0c82c299-6938-42ed-bda6-5007d79af34f",
"parameters": {
"sendTo": "={{ $json.to }}",
"message": "={{ $json.body }}",
"options": {},
"subject": "={{ $json.subject }}"
},
"credentials": {
"gmailOAuth2": {
"id": "RchiXdmY8WaQhOSJ",
"name": "Gmail account"
}
},
"typeVersion": 2.1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "48b8eb87-3227-4183-950b-3065212fbae9",
"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
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
这是一个高级难度的工作流,适用于HR、AI Chatbot等场景。适合高级用户,包含 16+ 个节点的复杂工作流
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
个性化拒绝/下一步邮件
使用Google Sheets、GPT-4o-mini、Gmail和ClickUp自动化候选人拒绝
If
Set
Code
+7
38 节点Rahul Joshi
HR
API速率限制与认证FAQ测试
使用GPT-4o-mini、Google表格和Slack提醒自动化API常见问题质量测试
If
Set
Code
+7
19 节点Rahul Joshi
Document Extraction
从 Stripe 支付自动交付模板给客户
使用Stripe、GPT-4o和Gmail的自动化模板交付系统
If
Code
Gmail
+12
44 节点Rahul Joshi
CRM
将服装图片上传到Cloudinary并使用Azure OpenAI (GPT-4o) 记录到工作表
使用GPT-4o、Cloudinary和Google Sheets处理和编目服装图片
Set
Code
Merge
+9
26 节点Rahul Joshi
Content Creation
AI YouTube 评论分析器
使用 GPT-4o 进行 YouTube 评论分析并通过 Gmail 发送自动邮件报告
If
Set
Code
+9
18 节点Rahul Joshi
AI
代码注释转FAQ同步 (GitHub)
使用GPT-4o、Notion和Slack为开发团队自动回答GitHub PR问题
If
Code
Slack
+6
18 节点Rahul Joshi
Engineering
工作流信息
难度等级
高级
节点数量21
分类2
节点类型12
作者
Rahul Joshi
@rahul08Rahul Joshi is a seasoned technology leader specializing in the n8n automation tool and AI-driven workflow automation. With deep expertise in building open-source workflow automation and self-hosted automation platforms, he helps organizations eliminate manual processes through intelligent n8n ai agent automation solutions.
外部链接
在 n8n.io 上查看 →
分享此工作流