使用GPT-4o、Outlook和GoToHuman审批的自动邮件回复
中级
这是一个Ticket Management, AI Chatbot领域的自动化工作流,包含 15 个节点。主要使用 If, Code, ManualTrigger, SplitInBatches, Agent 等节点。 使用GPT-4o、Outlook和GoToHuman审批的自动邮件回复
前置要求
- •OpenAI API Key
使用的节点 (15)
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"meta": {
"instanceId": "efb474b59b0341d7791932605bd9ff04a6c7ed9941fdd53dc4a2e4b99a6f9439",
"templateCredsSetupCompleted": true
},
"nodes": [
{
"id": "db46a99c-a87d-4203-925f-f94fed274bbe",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
120,
0
],
"parameters": {
"color": 5,
"width": 1200,
"height": 760,
"content": "### 4. **生成 AI 回复**"
},
"typeVersion": 1
},
{
"id": "2b29c366-caf6-41e5-bf09-a6f60ab9d315",
"name": "工具:注入创意",
"type": "@n8n/n8n-nodes-langchain.toolThink",
"position": [
600,
520
],
"parameters": {},
"typeVersion": 1
},
{
"id": "df07d826-251e-4b9f-927f-637280847891",
"name": "解析器:从想法中提取 JSON",
"type": "@n8n/n8n-nodes-langchain.outputParserStructured",
"position": [
800,
480
],
"parameters": {
"jsonSchemaExample": "[\n {\n \"body\": \"\"\n }\n]\n"
},
"typeVersion": 1.2
},
{
"id": "3f7eeefc-a208-4020-8b6a-7dc536126daa",
"name": "openai",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
480,
500
],
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "gpt-4o",
"cachedResultName": "gpt-4o"
},
"options": {}
},
"credentials": {
"openAiApi": {
"id": "ghJTvay8CvwXDsXz",
"name": "OpenAi account"
}
},
"typeVersion": 1.2
},
{
"id": "c1d3fd0d-b84e-4346-aa2e-3c3b8cf358e3",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-880,
0
],
"parameters": {
"width": 980,
"height": 760,
"content": "### 1. **触发器**"
},
"typeVersion": 1
},
{
"id": "af0105d8-5b95-4d82-8735-acb6358f607b",
"name": "Sticky Note3",
"type": "n8n-nodes-base.stickyNote",
"position": [
1340,
0
],
"parameters": {
"color": 3,
"width": 760,
"height": 760,
"content": "### 5. **使用 gotoHuman 审核**"
},
"typeVersion": 1
},
{
"id": "be573205-24d6-49e7-924e-d9bfd1879505",
"name": "测试",
"type": "n8n-nodes-base.manualTrigger",
"position": [
-800,
420
],
"parameters": {},
"typeVersion": 1
},
{
"id": "807aecbb-fdc0-4a6b-9fbb-186aefdad240",
"name": "输出今天的日期",
"type": "n8n-nodes-base.code",
"position": [
-520,
560
],
"parameters": {
"jsCode": "const today = new Date();\ntoday.setHours(0, 0, 0, 0); // Normalize to start of day\n\nconst formattedDate = today.toISOString().split('T')[0]; // \"2025-08-06\"\n\nreturn [\n {\n json: {\n searchQuery: `received:${formattedDate}`\n }\n }\n];\n"
},
"typeVersion": 2
},
{
"id": "b4d9154b-c7e8-437b-b6d8-ed22327bfccf",
"name": "AI 代理:为 LinkedIn 创建标题",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
560,
300
],
"parameters": {
"text": "=subject: {{ $json.subject }} Body: {{ $json.body.content }}",
"options": {
"systemMessage": "=You are a personal assistant helping respond to emails. I am an ai automation expert specializing in helping small and medium size businesses automate processes. Create a short response to the email that you are analyzing. \n\nThe email that you write should be written to the sender who sent the email to us. \n\nSign the email as Robert Breen\n\noutput the data like this. \n\n[\n {\n \"body\": \"\"\n }\n]\n"
},
"promptType": "define",
"hasOutputParser": true
},
"typeVersion": 1.9
},
{
"id": "41d1ebef-9808-4d0b-ae30-2e8cd0ae597a",
"name": "Sticky Note2",
"type": "n8n-nodes-base.stickyNote",
"position": [
-880,
-240
],
"parameters": {
"color": 6,
"width": 2980,
"height": 200,
"content": "# 🤖AI 驱动的 Outlook 电子邮件助手与 GoToHuman 审批工作流"
},
"typeVersion": 1
},
{
"id": "a27db7b8-96b1-425e-98d9-e1dc5f939478",
"name": "Microsoft Outlook",
"type": "n8n-nodes-base.microsoftOutlook",
"position": [
-280,
420
],
"webhookId": "ae07c8b7-e0be-4a87-93a8-cfcb00303d0c",
"parameters": {
"limit": 2,
"output": "raw",
"options": {},
"filtersUI": {
"values": {
"search": "={{ $json.searchQuery }} -from:rbreen@ynteractive.com\n",
"filterBy": "search"
}
},
"operation": "getAll"
},
"credentials": {
"microsoftOutlookOAuth2Api": {
"id": "VmTDwKgAl78H8pek",
"name": "Microsoft Outlook account"
}
},
"typeVersion": 2
},
{
"id": "3830b457-613f-4709-b70a-ae5d089d8a83",
"name": "gotoHuman",
"type": "@gotohuman/n8n-nodes-gotohuman.gotoHuman",
"position": [
1460,
300
],
"webhookId": "29fff214-9915-47fe-833f-c78d42709c76",
"parameters": {
"fields": {
"value": {
"email": "={{ $json.output[0].body }}",
"OriginalEmail": "={{ $('Microsoft Outlook').item.json.body.content }}"
},
"schema": [
{
"id": "email",
"type": "string",
"display": true,
"removed": false,
"required": false,
"displayName": "email (text)",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "OriginalEmail",
"type": "string",
"display": true,
"removed": false,
"required": false,
"displayName": "OriginalEmail (emailHtml)",
"defaultMatch": false,
"canBeUsedToMatch": true
}
],
"mappingMode": "defineBelow",
"matchingColumns": [
"email"
],
"attemptToConvertTypes": false,
"convertFieldsToString": false
},
"additionalFields": {},
"reviewTemplateID": {
"__rl": true,
"mode": "list",
"value": "7nYfIV9vrefvuHcccGEB",
"cachedResultName": "Email Responses (7nYfIV9vrefvuHcccGEB)"
}
},
"credentials": {
"gotoHumanApi": {
"id": "DDAwJMAARwFCF0fA",
"name": "gotoHuman account"
}
},
"executeOnce": true,
"typeVersion": 1
},
{
"id": "6484d15f-94d2-4078-93de-beee1985e085",
"name": "遍历项目",
"type": "n8n-nodes-base.splitInBatches",
"position": [
-40,
560
],
"parameters": {
"options": {}
},
"typeVersion": 3
},
{
"id": "07ef9661-0df9-41a9-b412-3f2af84bba43",
"name": "Microsoft Outlook1",
"type": "n8n-nodes-base.microsoftOutlook",
"position": [
1920,
520
],
"webhookId": "0208ffbc-c796-47a4-8e71-aa175d970c54",
"parameters": {
"message": "={{ $json.responseValues.email.value }}",
"options": {},
"messageId": {
"__rl": true,
"mode": "id",
"value": "={{ $('Microsoft Outlook').item.json.id }}"
},
"operation": "reply"
},
"credentials": {
"microsoftOutlookOAuth2Api": {
"id": "VmTDwKgAl78H8pek",
"name": "Microsoft Outlook account"
}
},
"typeVersion": 2
},
{
"id": "5b6f8868-ac73-44f0-9eaa-64250abab4d6",
"name": "如果",
"type": "n8n-nodes-base.if",
"position": [
1700,
300
],
"parameters": {
"options": {},
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "8516d970-6327-47de-83ab-1945acd928b2",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.response }}",
"rightValue": "approved"
}
]
}
},
"typeVersion": 2.2
}
],
"pinData": {},
"connections": {
"If": {
"main": [
[
{
"node": "Microsoft Outlook1",
"type": "main",
"index": 0
}
],
[
{
"node": "Loop Over Items",
"type": "main",
"index": 0
}
]
]
},
"Test": {
"main": [
[
{
"node": "Output Today's Date",
"type": "main",
"index": 0
}
]
]
},
"openai": {
"ai_languageModel": [
[
{
"node": "AI Agent: Create caption for linkedin",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"gotoHuman": {
"main": [
[
{
"node": "If",
"type": "main",
"index": 0
}
]
]
},
"Loop Over Items": {
"main": [
[],
[
{
"node": "AI Agent: Create caption for linkedin",
"type": "main",
"index": 0
}
]
]
},
"Microsoft Outlook": {
"main": [
[
{
"node": "Loop Over Items",
"type": "main",
"index": 0
}
]
]
},
"Microsoft Outlook1": {
"main": [
[
{
"node": "Loop Over Items",
"type": "main",
"index": 0
}
]
]
},
"Output Today's Date": {
"main": [
[
{
"node": "Microsoft Outlook",
"type": "main",
"index": 0
}
]
]
},
"Tool: Inject Creativity": {
"ai_tool": [
[
{
"node": "AI Agent: Create caption for linkedin",
"type": "ai_tool",
"index": 0
}
]
]
},
"Parser: Extract JSON from Idea": {
"ai_outputParser": [
[
{
"node": "AI Agent: Create caption for linkedin",
"type": "ai_outputParser",
"index": 0
}
]
]
},
"AI Agent: Create caption for linkedin": {
"main": [
[
{
"node": "gotoHuman",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
中级 - 工单管理, AI 聊天机器人
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
使用 GPT-5、gotoHuman 和人工审核从 Gmail 自动回复并创建 Linear 工单
使用 GPT-5、gotoHuman 和人工审核从 Gmail 自动回复并创建 Linear 工单
Set
Code
Gmail
+13
37 节点gotoHuman
工单管理
使用 GPT-4o-mini 代理自动进行潜在客户资格认定与客户支持
使用 GPT-4o-mini 代理自动进行潜在客户资格认定与客户支持
If
Set
Code
+8
16 节点Robert Breen
客户培育
AI生成LinkedIn帖子含人工审批
使用GPT-4、GoToHuman和Blotato的AI生成LinkedIn帖子含人工审批
Code
Merge
Filter
+10
19 节点Robert Breen
社交媒体
使用GPT-4o自动将Outlook邮件分类到颜色类别
使用GPT-4o自动将Outlook邮件分类到颜色类别
Set
Manual Trigger
Split In Batches
+5
13 节点Robert Breen
AI 摘要总结
使用GPT-4O和Supabase对话记忆的自动邮件回复
使用GPT-4O和Supabase对话记忆的自动邮件回复
If
Code
Postgres
+17
32 节点Lukman
客服机器人
初学者数据分析:使用 GPT-4o 在 Google Sheets 中合并、筛选和汇总
初学者数据分析:使用 GPT-4o 在 Google Sheets 中合并、筛选和汇总
If
Set
Code
+9
21 节点Robert Breen
文档提取
工作流信息
难度等级
中级
节点数量15
分类2
节点类型11
作者
Robert Breen
@rbreenProfessional services consultant with over 10 years of experience solving complex business problems across industries. I specialize in n8n and process automation—designing custom workflows that integrate tools like Google Calendar, Airtable, GPT, and internal systems. Whether you need to automate scheduling, sync data, or streamline operations, I build solutions that save time and drive results.
外部链接
在 n8n.io 查看 →
分享此工作流