客户入职邮件自动化:Google Sheets + Gemini + Gmail
中级
这是一个Content Creation, Multimodal AI领域的自动化工作流,包含 13 个节点。主要使用 Set, Gmail, ErrorTrigger, ChainLlm, GoogleSheetsTrigger 等节点。 客户入职邮件自动化:Google Sheets + Gemini + Gmail
前置要求
- •Google 账号和 Gmail API 凭证
- •Google Sheets API 凭证
- •Google Gemini API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"meta": {
"instanceId": "0a25db4fd0692af64b58f35e01611f2ef0b5bb9d6654c57ef3741021e7d8cc11",
"templateId": "4448"
},
"nodes": [
{
"id": "fc6370ed-4336-4b79-ace5-d8237948f460",
"name": "错误处理器",
"type": "n8n-nodes-base.errorTrigger",
"position": [
2368,
1264
],
"parameters": {},
"typeVersion": 1
},
{
"id": "c2016a43-f619-48cd-98e5-84a4efd95594",
"name": "执行完成",
"type": "n8n-nodes-base.noOp",
"position": [
3168,
1136
],
"parameters": {},
"typeVersion": 1
},
{
"id": "8e7e7958-ed6e-420f-aa4f-ae84ddb456fe",
"name": "执行失败",
"type": "n8n-nodes-base.noOp",
"position": [
2592,
1264
],
"parameters": {},
"typeVersion": 1
},
{
"id": "0e7be1c3-28cd-4747-a8e8-43666b762b80",
"name": "客户清单",
"type": "n8n-nodes-base.set",
"position": [
2592,
1040
],
"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": "c80117c6-0d0d-43cc-b986-8996e03a60a2",
"name": "Google Gemini 聊天模型",
"type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
"position": [
2896,
1264
],
"parameters": {
"options": {},
"modelName": "models/gemini-2.0-flash"
},
"credentials": {
"googlePalmApi": {
"id": "6a9OTOyTQOIKnKAq",
"name": "Google Gemini(PaLM) Api account"
}
},
"typeVersion": 1
},
{
"id": "557143d0-abaa-410d-9117-2b60fce3086e",
"name": "新客户表单提交时触发",
"type": "n8n-nodes-base.googleSheetsTrigger",
"position": [
2144,
1040
],
"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": "ciFJ21F7Wq3VZJYU",
"name": "Google Sheets Trigger account"
}
},
"typeVersion": 1
},
{
"id": "de000539-7f90-49df-9b42-1ceed11b09be",
"name": "提取并构建客户数据",
"type": "n8n-nodes-base.set",
"position": [
2368,
1040
],
"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": "f762750d-85c5-4932-97c7-a40817950af1",
"name": "使用 Gemini 进行个性化处理",
"type": "@n8n/n8n-nodes-langchain.chainLlm",
"position": [
2816,
1040
],
"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": "58f03de6-b01a-45bd-b3ce-85c74a17aef5",
"name": "发送邮件给客户",
"type": "n8n-nodes-base.gmail",
"position": [
3168,
944
],
"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": "vdI9VLsEmuPzPxxo",
"name": "Gmail account"
}
},
"typeVersion": 2.1
},
{
"id": "b405a300-66ea-47b3-9a9f-7a146536764f",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
2080,
768
],
"parameters": {
"color": 4,
"width": 288,
"height": 256,
"content": "## 步骤 1 · 触发与信息收集"
},
"typeVersion": 1
},
{
"id": "02ad7e7f-f94c-40dd-839c-ca7064eab2e2",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
2480,
768
],
"parameters": {
"color": 5,
"height": 224,
"content": "## 步骤 2 · 清单上下文"
},
"typeVersion": 1
},
{
"id": "3e8be3db-0223-4b39-a6dd-9e8db01d801a",
"name": "便签 2",
"type": "n8n-nodes-base.stickyNote",
"position": [
2800,
688
],
"parameters": {
"color": 6,
"height": 304,
"content": "## 步骤 3 · 使用 Gemini 个性化"
},
"typeVersion": 1
},
{
"id": "133ced0e-168a-4332-afd8-d0216b7b3a38",
"name": "便签 3",
"type": "n8n-nodes-base.stickyNote",
"position": [
3136,
672
],
"parameters": {
"color": 7,
"height": 256,
"content": "## 步骤 4 · 发送与运行状态"
},
"typeVersion": 1
}
],
"pinData": {},
"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 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
中级 - 内容创作, 多模态 AI
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
自动化本地线索查找与冷邮件发送
使用 Apify、AI 和 Gmail 自动查找本地线索并发送冷邮件
If
Set
Wait
+10
18 节点Meak
内容创作
工作流目的与关键工具
工作流目的与关键工具:Claude 3.7模型规格
If
Set
Gmail
+10
23 节点Meak
内容创作
使用Groq、Gemini和Slack审批系统自动化RSS到Medium发布
通过Groq、Gemini和Slack审批系统实现RSS到Medium发布的自动化流程
If
Set
Code
+16
41 节点ObisDev
内容创作
使用Google Gemini和人工参与学习的自动邮件支持
使用Google Gemini和人工参与学习的自动邮件支持
If
Set
Gmail
+9
29 节点Lucas Peyrin
内容创作
AI线索评分与路由(Google Gemini、Sheets和Slack通知)
AI线索评分与路由(Google Gemini、Sheets和Slack通知)
Set
Merge
Slack
+5
13 节点Meak
内容创作
自动化潜在客户呼叫:VAPI、Google Sheets记录与日历预约
自动化潜在客户呼叫:VAPI、Google Sheets记录与日历预约
Set
Code
Webhook
+7
13 节点Meak
内容创作