入职流程

中级

这是一个Support、AI领域的自动化工作流,包含 11 个节点。主要使用 Set、Gmail、Start、ErrorTrigger、ChainLlm 等节点,结合人工智能技术实现智能自动化。 AI客户入职代理:自动欢迎邮件生成器

前置要求
  • Google 账号和 Gmail API 凭证
  • Google Sheets API 凭证
  • Google Gemini API Key

分类

工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "7R0XDRrkPclEYLJS",
  "meta": {
    "instanceId": "57c71fe69aec521b7d0bd3751d2e0aaa08f8884418e122571610a23c9eb8a65c"
  },
  "name": "入职流程",
  "tags": [],
  "nodes": [
    {
      "id": "d29dd2a4-bcf0-4a85-ace6-930f8f100bb6",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1720,
        200
      ],
      "parameters": {
        "color": 4,
        "width": 420,
        "height": 680,
        "content": "======================================="
      },
      "typeVersion": 1
    },
    {
      "id": "66045c99-118c-4302-807e-c4279d1a47a2",
      "name": "开始",
      "type": "n8n-nodes-base.start",
      "position": [
        -80,
        20
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "3cc38fca-c0c9-4c9f-90f1-a9d0ece9522c",
      "name": "错误处理器",
      "type": "n8n-nodes-base.errorTrigger",
      "position": [
        1180,
        340
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "7b745afe-49a5-4cd6-aa03-a0dae214e908",
      "name": "执行完成",
      "type": "n8n-nodes-base.noOp",
      "position": [
        1180,
        20
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "0ea5c7e9-78b8-446a-bae1-802a5ecab399",
      "name": "执行失败",
      "type": "n8n-nodes-base.noOp",
      "position": [
        1380,
        340
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "e79e67c4-9de6-4287-86b9-e2cd6b884f52",
      "name": "客户清单",
      "type": "n8n-nodes-base.set",
      "position": [
        540,
        20
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "c9c81e80-f2f2-436d-a6cf-48882b0f72ea",
              "name": "=Checklist",
              "type": "string",
              "value": "=\"Checklist\": \"\n1. Account setup\n2. Welcome call scheduled\n3. Document collection\n4. Service configuration\n5. Onboarding session\n6. First milestone review"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "daa90481-fb59-47ff-9aa1-14e33a42d459",
      "name": "Google Gemini 聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        700,
        520
      ],
      "parameters": {
        "options": {},
        "modelName": "models/gemini-2.0-flash"
      },
      "credentials": {
        "googlePalmApi": {
          "id": "cHiuNFEYYehlLyFW",
          "name": "Google Gemini(PaLM) Api account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "fc92711a-1073-474b-8e62-f6413986de4f",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -200,
        -220
      ],
      "parameters": {
        "width": 540,
        "content": "📋 客户入职自动化"
      },
      "typeVersion": 1
    },
    {
      "id": "5907c579-44bf-47e4-b38e-944700e8e540",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        940,
        200
      ],
      "parameters": {
        "width": 200,
        "height": 100,
        "content": "📤 使用客户提交的电子邮件地址"
      },
      "typeVersion": 1
    },
    {
      "id": "f6abbdf9-156f-45cc-bb16-ccb619a3fba7",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1180,
        200
      ],
      "parameters": {
        "width": 200,
        "height": 100,
        "content": "✅ 表示执行成功结束"
      },
      "typeVersion": 1
    },
    {
      "id": "2ccb5b9b-4d4b-4615-a8cd-c9aed234b75b",
      "name": "便签4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1420,
        520
      ],
      "parameters": {
        "width": 200,
        "height": 100,
        "content": "🚨 处理上方任何节点的错误"
      },
      "typeVersion": 1
    },
    {
      "id": "4aaef60e-2e14-416c-9d01-6d8a692afc20",
      "name": "便签5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1160,
        520
      ],
      "parameters": {
        "width": 200,
        "height": 100,
        "content": "❌ 捕获执行过程中的任何错误"
      },
      "typeVersion": 1
    },
    {
      "id": "0720cde8-e4a3-4e75-a9d5-9a72d67a041c",
      "name": "便签6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        720,
        200
      ],
      "parameters": {
        "width": 200,
        "height": 100,
        "content": "🧠 向 Gemini API 发送提示词,根据客户姓名、公司和所选服务"
      },
      "typeVersion": 1
    },
    {
      "id": "76186e1d-a5e5-4935-bec9-8abf6494c5f9",
      "name": "便签7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        480,
        200
      ],
      "parameters": {
        "width": 200,
        "height": 100,
        "content": "📋 设置默认的入职清单项目"
      },
      "typeVersion": 1
    },
    {
      "id": "099c44da-a685-492f-ad8c-5001d181e37f",
      "name": "便签8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        260,
        200
      ],
      "parameters": {
        "width": 200,
        "height": 100,
        "content": "🧍 提取客户详细信息:姓名、邮箱、公司、服务项目"
      },
      "typeVersion": 1
    },
    {
      "id": "7eb2540f-77bc-472f-927b-db19a59af74c",
      "name": "便签9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        40,
        200
      ],
      "parameters": {
        "width": 200,
        "height": 100,
        "content": "⏰ 当添加新行时触发"
      },
      "typeVersion": 1
    },
    {
      "id": "d4d0d056-f14e-4ba0-9800-680854b25a3a",
      "name": "新客户表单提交时触发",
      "type": "n8n-nodes-base.googleSheetsTrigger",
      "position": [
        120,
        20
      ],
      "parameters": {
        "event": "rowAdded",
        "options": {},
        "pollTimes": {
          "item": [
            {
              "mode": "everyMinute"
            }
          ]
        },
        "sheetName": {
          "__rl": true,
          "mode": "list",
          "value": 1635870855,
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/19Hvti1sX6SvjP1Kj8dWFEiksiqn1FJVBoMToP2X6xBw/edit#gid=1635870855",
          "cachedResultName": "Form Responses 1"
        },
        "documentId": {
          "__rl": true,
          "mode": "list",
          "value": "19Hvti1sX6SvjP1Kj8dWFEiksiqn1FJVBoMToP2X6xBw",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/19Hvti1sX6SvjP1Kj8dWFEiksiqn1FJVBoMToP2X6xBw/edit?usp=drivesdk",
          "cachedResultName": "Onboarding"
        }
      },
      "credentials": {
        "googleSheetsTriggerOAuth2Api": {
          "id": "HyhUBfOVRIuLMcGw",
          "name": "Google Sheets Trigger account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "c74110eb-1e8e-4836-93a7-76e8bc0a82f2",
      "name": "提取并构建客户数据",
      "type": "n8n-nodes-base.set",
      "position": [
        320,
        20
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "7c333d8f-04cd-4987-9c30-4c7bc26baecb",
              "name": "fields",
              "type": "string",
              "value": "=Name:  {{ $json['Client name'] }} \nEmail:  {{ $json[' email '] }}\nCompany: {{ $json['  Company Name  '] }}\nService Needed: {{ $json['  Services Needed  '] }}\nOther info: {{ $json['  Any other onboarding info  '] }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "93822f2f-1013-4231-9602-3337fee939c8",
      "name": "使用 Gemini 进行个性化处理",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        680,
        20
      ],
      "parameters": {
        "text": "=Give me an onboarding check list for an email to the client, give me only email body and don't generate extra text like \"Okay, here's an email template ...\" and start and end on new lines\nstart with:\nHi {{ $('Trigger on New Client Form Submission').item.json['Client name'] }}, \nand end with \nBest regards,\nYour {{ $('Trigger on New Client Form Submission').item.json['  Company Name  '] }} Team\n\n:\nAlso use information from checklist and Fields below\n {{ $json.Checklist }}\n\nFields: {{ $('Extract and Structure Client Data').item.json.fields }}",
        "promptType": "define"
      },
      "typeVersion": 1.5
    },
    {
      "id": "03c3ee91-0d15-44a3-8426-7d9181a9876f",
      "name": "向客户发送邮件",
      "type": "n8n-nodes-base.gmail",
      "position": [
        980,
        20
      ],
      "webhookId": "2a07b507-23a6-4bfb-adff-997d30ea3dfa",
      "parameters": {
        "sendTo": "={{ $('Trigger on New Client Form Submission').item.json[' email '] }}",
        "message": "= {{ $json.text }}",
        "options": {},
        "subject": "=Welcome to Our Service,  {{ $('Trigger on New Client Form Submission').item.json['Client name'] }} "
      },
      "credentials": {
        "gmailOAuth2": {
          "id": "4xTRVs8hsWgrdhHr",
          "name": "Gmail account 2"
        }
      },
      "typeVersion": 2.1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "7cf9d691-7a87-4cc1-9827-ac581cbaa503",
  "connections": {
    "Error Handler": {
      "main": [
        [
          {
            "node": "Execution Failure",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Client Checklist": {
      "main": [
        [
          {
            "node": "Personalize Using Gemini",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Personalize Using Gemini",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Personalize Using Gemini": {
      "main": [
        [
          {
            "node": "Send Email to Client",
            "type": "main",
            "index": 0
          },
          {
            "node": "Execution Completed",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract and Structure Client Data": {
      "main": [
        [
          {
            "node": "Client Checklist",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Trigger on New Client Form Submission": {
      "main": [
        [
          {
            "node": "Extract and Structure Client Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。

这个工作流适合什么场景?

这是一个中级难度的工作流,适用于Support、AI等场景。适合有一定经验的用户,包含 6-15 个节点的中等复杂度工作流

需要付费吗?

本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。

工作流信息
难度等级
中级
节点数量11
分类2
节点类型9
难度说明

适合有一定经验的用户,包含 6-15 个节点的中等复杂度工作流

作者
Yaron Been

Yaron Been

@yaron-nofluff

Building AI Agents and Automations | Growth Marketer | Entrepreneur | Book Author & Podcast Host

外部链接
在 n8n.io 上查看 →

分享此工作流