邮件自动回复模板
中级
这是一个AI Chatbot, Multimodal AI领域的自动化工作流,包含 12 个节点。主要使用 Gmail, Filter, EmailReadImap, OpenAi 等节点。 基于AI的潜在客户邮件分类与自动回复,集成GPT-4o和Gmail
前置要求
- •Google 账号和 Gmail API 凭证
- •OpenAI API Key
使用的节点 (12)
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"id": "XOp3UmuOGm0uEUOP",
"meta": {
"instanceId": "6dab325484db17217432bd17c46b16a74656e18b7a3b29fe24824c64123a2170",
"templateCredsSetupCompleted": true
},
"name": "邮件自动回复模板",
"tags": [],
"nodes": [
{
"id": "46330a1e-99c2-4e0b-b2ef-fbc1ac382402",
"name": "邮件触发器(IMAP)",
"type": "n8n-nodes-base.emailReadImap",
"notes": "Checks your email inbox for new incoming messages in real time using the IMAP protocol.\nThis node is the entry point of the workflow, capturing any new email so it can be processed.\nYou can configure it to watch a specific folder (e.g., INBOX, Leads).",
"position": [
0,
0
],
"parameters": {
"options": {},
"postProcessAction": "nothing"
},
"credentials": {
"imap": {
"id": "GBGE5j98GwOB5V51",
"name": "IMAP account"
}
},
"notesInFlow": true,
"typeVersion": 2
},
{
"id": "2a2a35ef-23cf-4612-ac7d-21f91f21a2c6",
"name": "过滤器",
"type": "n8n-nodes-base.filter",
"notes": "Filters out emails that are not classified as leads.\nOnly messages identified as leads will continue through the workflow for an automated reply.",
"position": [
608,
0
],
"parameters": {
"options": {},
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "4da59f1a-dd10-450e-a113-d193b63fcdac",
"operator": {
"type": "boolean",
"operation": "true",
"singleValue": true
},
"leftValue": "={{ $json.message.content.lead.toBoolean() }}",
"rightValue": ""
}
]
}
},
"notesInFlow": true,
"typeVersion": 2.2
},
{
"id": "ddba86b4-fe7d-4c36-b42c-6dde939d05f4",
"name": "获取消息",
"type": "n8n-nodes-base.gmail",
"notes": "Retrieves the full details of the original email, including the sender’s address and the conversation thread, so the reply can be linked to the correct message.",
"position": [
1216,
0
],
"webhookId": "331d3af5-bd09-4535-be40-c9fd69060da8",
"parameters": {
"filters": {
"q": "=from:\"{{ $('Email Trigger (IMAP)').item.json.from }}\" subject:\"{{ $('Email Trigger (IMAP)').item.json.subject }}\" "
},
"operation": "getAll"
},
"credentials": {
"gmailOAuth2": {
"id": "vsP48CVVz5mhUGAc",
"name": "Gmail account"
}
},
"typeVersion": 2.1
},
{
"id": "f1b3f3c5-a2fe-436e-a272-d3958ccab3e5",
"name": "回复消息",
"type": "n8n-nodes-base.gmail",
"notes": "Sends the AI-generated reply back to the sender as a direct response to their email.\nThe reply will appear as part of the same conversation thread in the recipient’s inbox.",
"position": [
1536,
0
],
"webhookId": "38d18d52-4d45-4e12-bfcd-2e1f4bb5907f",
"parameters": {
"message": "={{ $('Reply with customized message').item.json.message.content }}",
"options": {},
"emailType": "text",
"messageId": "={{ $('Email Trigger (IMAP)').item.json.metadata['message-id'] }}",
"operation": "reply"
},
"notesInFlow": true,
"typeVersion": 2.1
},
{
"id": "2489c348-5d8e-4564-915f-1d933eae745b",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
1456,
-320
],
"parameters": {
"color": 3,
"height": 256,
"content": "## 回复消息"
},
"typeVersion": 1
},
{
"id": "e7617aa6-1104-4cc9-af36-80d7c19cdc59",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-48,
-320
],
"parameters": {
"color": 4,
"width": 208,
"height": 256,
"content": "## 邮件触发器(IMAP)"
},
"typeVersion": 1
},
{
"id": "33fe0c88-6540-4087-bb60-ac6c4de9f6d3",
"name": "便签2",
"type": "n8n-nodes-base.stickyNote",
"position": [
224,
-320
],
"parameters": {
"color": 7,
"height": 256,
"content": "## 是否为潜在客户?(消息模型)"
},
"typeVersion": 1
},
{
"id": "54c5cf98-a106-4e3b-ad2d-d57fb8095044",
"name": "便签3",
"type": "n8n-nodes-base.stickyNote",
"position": [
528,
-320
],
"parameters": {
"color": 5,
"height": 256,
"content": "## 过滤器"
},
"typeVersion": 1
},
{
"id": "94aedcf9-6abb-40e0-9856-e2fc3a84116a",
"name": "便签4",
"type": "n8n-nodes-base.stickyNote",
"position": [
832,
-320
],
"parameters": {
"color": 7,
"height": 256,
"content": "## 使用定制消息回复(消息模型)"
},
"typeVersion": 1
},
{
"id": "83e57764-c096-45fc-a475-0167caa7eeaf",
"name": "便签5",
"type": "n8n-nodes-base.stickyNote",
"position": [
1136,
-320
],
"parameters": {
"color": 3,
"width": 256,
"height": 256,
"content": "## 获取消息"
},
"typeVersion": 1
},
{
"id": "4875fac3-0ca1-4d26-a116-3afcfe8477c9",
"name": "过滤潜在客户",
"type": "@n8n/n8n-nodes-langchain.openAi",
"notes": "Uses an AI model to analyze the incoming email and determine whether the sender is a potential lead.\nThe AI looks for keywords, tone, and intent within the message to classify it as a lead or not.",
"position": [
240,
0
],
"parameters": {
"modelId": {
"__rl": true,
"mode": "list",
"value": "gpt-4o",
"cachedResultName": "GPT-4O"
},
"options": {},
"messages": {
"values": [
{
"content": "= Indicate if the following message is a lead that's interested in my [service/offer]\n\nOutput as JSON {\"lead\": \"<true/false>\"}\n\n {{ $json.textPlain }}"
}
]
},
"jsonOutput": true
},
"credentials": {
"openAiApi": {
"id": "pPLBqqocz7PcZiny",
"name": "OpenAi account"
}
},
"notesInFlow": true,
"typeVersion": 1.8
},
{
"id": "7c5f6533-c82e-4fa2-b794-c93b38903c7c",
"name": "使用定制消息回复",
"type": "@n8n/n8n-nodes-langchain.openAi",
"notes": "Generates a personalized reply using AI based on the content of the incoming email.\nThe response can be tailored to greet the sender, answer initial questions, and encourage further engagement.",
"position": [
848,
0
],
"parameters": {
"modelId": {
"__rl": true,
"mode": "list",
"value": "gpt-4o",
"cachedResultName": "GPT-4O"
},
"options": {},
"messages": {
"values": [
{
"content": "You're currently monitoring a sales email inbox for my [business and service you offer]. For every inquiry you receive, digest it and respond appropriately with a customized message that's tuned to the particular prospect. Make sure to use spartan, no-frills language."
},
{
"content": "Name: Michael JacksonType: High-TicketMonthly Commitment: $8,000About: Hi I really want to get started on your high tickey monthly e-commerce offer - let me know how to start!"
},
{
"role": "assistant",
"content": "Hey Michael,\n\nNick here. Thanks for reaching out & I appreciate your interest in my high ticket e-commerce offer. Happy to help you get started!\n\nI just let someone on my team know about this & they'll give you a call in a couple of minutes to dive into detail. Looking forward to working with you.\n\nCheers,\nSanti"
},
{
"content": "={{ $('Email Trigger (IMAP)').item.json.textPlain }}"
}
]
}
},
"notesInFlow": true,
"typeVersion": 1.8
}
],
"active": false,
"pinData": {},
"settings": {
"callerPolicy": "workflowsFromSameOwner",
"executionOrder": "v1"
},
"versionId": "3d19076b-77ab-48ed-aa07-77e72067969c",
"connections": {
"Filter": {
"main": [
[
{
"node": "Reply with customized message",
"type": "main",
"index": 0
}
]
]
},
"Get Message": {
"main": [
[
{
"node": "Reply to Message",
"type": "main",
"index": 0
}
]
]
},
"Filter leads": {
"main": [
[
{
"node": "Filter",
"type": "main",
"index": 0
}
]
]
},
"Email Trigger (IMAP)": {
"main": [
[
{
"node": "Filter leads",
"type": "main",
"index": 0
}
]
]
},
"Reply with customized message": {
"main": [
[
{
"node": "Get Message",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
中级 - AI 聊天机器人, 多模态 AI
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
基于AI的WhatsApp客户服务(GPT-4、智能路由与知识库)
基于AI的WhatsApp客户服务(GPT-4、智能路由与知识库)
Set
Gmail
Merge
+19
45 节点Paul
AI 聊天机器人
冷邮件破冰生成器GPT-4o-mini模板
使用GPT-4O-mini和谷歌表格生成个性化冷邮件开场白
Google Sheets
Manual Trigger
Split In Batches
+2
10 节点Rodrigo
潜在客户开发
自动LinkedIn帖子模板
使用GPT-4文本和AI图像生成并自动发布LinkedIn帖子
Linked In
Form Trigger
Open Ai
+1
8 节点Rodrigo
多模态 AI
我的工作流2
使用多个GPT-4o AI代理管理个人数据:Telegram上的Gmail、任务和财务
Set
Code
Gmail
+14
62 节点Mahmoud Shrouf
AI 聊天机器人
AI驱动股票交易自动化
使用AI技术分析和Alpaca交易自动化股票交易
Set
Code
Gmail
+24
96 节点Paul
加密货币交易
完整的 B2B 销售流程:Apollo 潜在客户生成、Mailgun 外展和 AI 回复管理
完整的 B2B 销售流程:Apollo 潜在客户生成、Mailgun 外展和 AI 回复管理
If
Set
Code
+26
116 节点Paul
内容创作
工作流信息
难度等级
中级
节点数量12
分类2
节点类型5
作者
Rodrigo
@rodrigonzalezsyncraAI & automation consultant helping businesses streamline processes, generate leads, and scale faster with smart workflows. Founder of SyncraLabs, integrating AI with n8n to create practical, high-impact automations. Passionate about sharing knowledge through ready-to-use templates and community contributions.
外部链接
在 n8n.io 查看 →
分享此工作流