8
n8n 中文网amn8n.com

AI个人助理 - 任务与邮件管理

高级

这是一个Content Creation, Multimodal AI领域的自动化工作流,包含 40 个节点。主要使用 Set, Code, Switch, Telegram, GmailTool 等节点。 在Telegram上使用GPT-4o个人助理管理任务、邮件和日历

前置要求
  • Telegram Bot Token
  • Google 账号和 Gmail API 凭证
  • 可能需要目标 API 的认证凭证
  • Google Sheets API 凭证
  • OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "ai-personal-assistant-template",
  "meta": {
    "templateCredsSetupCompleted": false
  },
  "name": "AI 个人助理 - 任务与邮件管理",
  "tags": [
    "AI",
    "Personal Assistant",
    "Task Management",
    "Email",
    "Calendar",
    "Telegram",
    "Automation"
  ],
  "nodes": [
    {
      "id": "0967f1ae-e72c-400b-90ae-5f00db89b6c8",
      "name": "路由文本或语音消息",
      "type": "n8n-nodes-base.switch",
      "position": [
        -1728,
        -304
      ],
      "parameters": {},
      "typeVersion": 3.2
    },
    {
      "id": "7e2ab0b4-2c28-41ed-ab48-b7434c6c751c",
      "name": "提取文本消息",
      "type": "n8n-nodes-base.set",
      "position": [
        -1232,
        -448
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "0a5b34b8-ffa1-4a70-8031-2b8b0bf59122",
      "name": "从 Telegram 获取语音文件",
      "type": "n8n-nodes-base.telegram",
      "position": [
        -1232,
        -288
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "9c1a2133-421e-4b5d-ba3c-8db04cf18f30",
      "name": "下载语音文件",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1072,
        -288
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "8564685b-7154-4683-a2b3-1f3d35ffaeda",
      "name": "合并文本和语音输入",
      "type": "n8n-nodes-base.set",
      "position": [
        -752,
        -304
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "bc4b449a-6b77-4dae-8816-55cd741d8ef3",
      "name": "语音转文本",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        -912,
        -288
      ],
      "parameters": {},
      "typeVersion": 1.8
    },
    {
      "id": "0611555e-323d-49e3-ab59-8428accdafdd",
      "name": "AI 个人助理",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -656,
        -336
      ],
      "parameters": {},
      "typeVersion": 1.7
    },
    {
      "id": "340dbbb6-1b4e-4802-a18e-4604d80b217e",
      "name": "向用户发送回复",
      "type": "n8n-nodes-base.telegram",
      "position": [
        -96,
        -336
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "e402aa49-ed75-42c9-b556-dd7fcda9c02c",
      "name": "读取未读邮件",
      "type": "n8n-nodes-base.gmailTool",
      "position": [
        -544,
        240
      ],
      "parameters": {},
      "typeVersion": 2.1
    },
    {
      "id": "f88f0636-9089-4d1f-8c68-5fba9c82fe91",
      "name": "发送邮件",
      "type": "n8n-nodes-base.gmailTool",
      "position": [
        -400,
        240
      ],
      "parameters": {},
      "typeVersion": 2.1
    },
    {
      "id": "69c622cf-d228-4067-b471-f0a6032803e9",
      "name": "创建日历事件",
      "type": "n8n-nodes-base.googleCalendarTool",
      "position": [
        -144,
        240
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "0f1b6ed0-9c51-453d-b7cd-68737506c210",
      "name": "读取日历事件",
      "type": "n8n-nodes-base.googleCalendarTool",
      "position": [
        -272,
        240
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "726cd044-b6a5-4011-94dc-b4136fb6b21d",
      "name": "删除日历事件",
      "type": "n8n-nodes-base.googleCalendarTool",
      "position": [
        16,
        240
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "3e2e086a-830b-4d8e-8f40-806b6383c183",
      "name": "读取任务表",
      "type": "n8n-nodes-base.googleSheetsTool",
      "position": [
        -1104,
        240
      ],
      "parameters": {},
      "typeVersion": 4.5
    },
    {
      "id": "26538fac-fd68-4b54-a487-2facd88dcaa7",
      "name": "添加新任务",
      "type": "n8n-nodes-base.googleSheetsTool",
      "position": [
        -1360,
        240
      ],
      "parameters": {},
      "typeVersion": 4.5
    },
    {
      "id": "88e4fa4b-ba99-406d-b74a-381d33ab17ca",
      "name": "更新任务状态",
      "type": "n8n-nodes-base.googleSheetsTool",
      "position": [
        -1632,
        240
      ],
      "parameters": {},
      "typeVersion": 4.5
    },
    {
      "id": "1a7aa009-d58d-4053-9b8f-1bbe760b71aa",
      "name": "语音与文本处理",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1312,
        -528
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "19b18688-4e37-48b5-8243-aaaa893ae6c0",
      "name": "AI 助理核心",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -784,
        -528
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "ec48dede-c28d-4d68-9bba-82e7575e6a89",
      "name": "响应传递",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -256,
        -528
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "0914ec15-256a-4c04-9034-2e49a38995d8",
      "name": "任务管理",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1712,
        -32
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "e24ae1ca-b2fd-44d7-bb06-72720c6f213b",
      "name": "邮件与日历",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -672,
        -32
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "e1aa154c-8bf1-4dbf-b409-a7b3d2b6e658",
      "name": "对话记忆",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        -560,
        -128
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "614667bf-3455-491a-afc3-d91c3349a57a",
      "name": "存储用户聊天 ID",
      "type": "n8n-nodes-base.code",
      "position": [
        -1856,
        -304
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "a13d362f-8375-4d82-9a77-dc27b2328bc9",
      "name": "筛选到期任务",
      "type": "n8n-nodes-base.code",
      "position": [
        -720,
        -736
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "78b3cdad-d535-49b8-b7ef-7c17f1fbd868",
      "name": "发送任务提醒",
      "type": "n8n-nodes-base.telegram",
      "position": [
        -272,
        -736
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "7969b532-9ec1-461f-98e5-9af61da281d9",
      "name": "格式化提醒消息",
      "type": "n8n-nodes-base.code",
      "position": [
        -496,
        -736
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "23fd5a61-6b8a-4006-9adb-00bcffdb8291",
      "name": "标记提醒已发送",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -64,
        -736
      ],
      "parameters": {},
      "typeVersion": 4.5
    },
    {
      "id": "28375a68-5f96-4200-a9c1-e2e27ad47cca",
      "name": "30 分钟提醒计时器",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -1280,
        -768
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "ab93110d-5f01-44aa-a129-1708690f69b2",
      "name": "提醒系统",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1472,
        -944
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "325e5423-f6d6-4f53-9950-97109f96dc6d",
      "name": "数据处理",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -992,
        -944
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "d115b47f-ba99-481b-94c6-b2263bdb48a8",
      "name": "智能筛选",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -752,
        -944
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "9514def4-0e6b-4fbd-8a4c-ba9d5cabe4cd",
      "name": "消息格式化",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -624,
        -944
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "b2b8a218-da69-4498-bd67-f7d3ef35e0b0",
      "name": "提醒发送",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -320,
        -944
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "c53a3744-c121-4e7b-8a90-3d86fca3b842",
      "name": "状态跟踪",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -96,
        -944
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "b99eb786-32f8-4840-aaf9-704657f0dbb9",
      "name": "读取任务数据",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -944,
        -736
      ],
      "parameters": {},
      "typeVersion": 4.5
    },
    {
      "id": "26317f23-1eee-4af1-841f-a5828d1b77ba",
      "name": "模板概览",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2032,
        -400
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "9f789c5a-5e4e-4085-8144-8b5fdc9c62f1",
      "name": "防止重复响应",
      "type": "n8n-nodes-base.code",
      "position": [
        -416,
        -336
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "0ef2d4e4-32e6-4d47-ba9d-5a8d4d8f573d",
      "name": "OpenAI 语言模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -816,
        240
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "20c12a44-423c-487f-9c72-a692f01f66e4",
      "name": "Telegram 机器人触发器",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        -2160,
        -288
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "setup-instructions",
      "name": "设置说明",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2160,
        240
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "timezone": "America/Chicago",
    "callerPolicy": "workflowsFromSameOwner",
    "executionOrder": "v1"
  },
  "versionId": "production-ready-v1",
  "connections": {
    "Send Email": {
      "ai_tool": [
        [
          {
            "node": "AI Personal Assistant",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Add New Task": {
      "ai_tool": [
        [
          {
            "node": "AI Personal Assistant",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Read Task Data": {
      "main": [
        [
          {
            "node": "Filter Due Tasks",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Read Task Sheet": {
      "ai_tool": [
        [
          {
            "node": "AI Personal Assistant",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Filter Due Tasks": {
      "main": [
        [
          {
            "node": "Format Reminder Message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Read Unread Emails": {
      "ai_tool": [
        [
          {
            "node": "AI Personal Assistant",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Send Task Reminder": {
      "main": [
        [
          {
            "node": "Mark Reminder Sent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Store User Chat ID": {
      "main": [
        [
          {
            "node": "Route Text or Voice Messages",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update Task Status": {
      "ai_tool": [
        [
          {
            "node": "AI Personal Assistant",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Conversation Memory": {
      "ai_memory": [
        [
          {
            "node": "AI Personal Assistant",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Download Voice File": {
      "main": [
        [
          {
            "node": "Transcribe Voice to Text",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Text Message": {
      "main": [
        [
          {
            "node": "Merge Text and Voice Input",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Read Calendar Events": {
      "ai_tool": [
        [
          {
            "node": "AI Personal Assistant",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Telegram Bot Trigger": {
      "main": [
        [
          {
            "node": "Store User Chat ID",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Personal Assistant": {
      "main": [
        [
          {
            "node": "Prevent Duplicate Responses",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Calendar Event": {
      "ai_tool": [
        [
          {
            "node": "AI Personal Assistant",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Delete Calendar Event": {
      "ai_tool": [
        [
          {
            "node": "AI Personal Assistant",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Language Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Personal Assistant",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Format Reminder Message": {
      "main": [
        [
          {
            "node": "Send Task Reminder",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "30-Minute Reminder Timer": {
      "main": [
        [
          {
            "node": "Read Task Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Transcribe Voice to Text": {
      "main": [
        [
          {
            "node": "Merge Text and Voice Input",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge Text and Voice Input": {
      "main": [
        [
          {
            "node": "AI Personal Assistant",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prevent Duplicate Responses": {
      "main": [
        [
          {
            "node": "Send Response to User",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Voice File from Telegram": {
      "main": [
        [
          {
            "node": "Download Voice File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Route Text or Voice Messages": {
      "main": [
        [
          {
            "node": "Extract Text Message",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Get Voice File from Telegram",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

高级 - 内容创作, 多模态 AI

需要付费吗?

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

工作流信息
难度等级
高级
节点数量40
分类2
节点类型16
难度说明

适合高级用户,包含 16+ 个节点的复杂工作流

作者
Ronnie Craig

Ronnie Craig

@ronnie-craig-2025

Hi, I’m Ronnie! I scaled an eCommerce biz to $14K/month in under a year, grew a YouTube channel to 1K subs in 30 days, booked 28 daycare appointments in 6 days, and built automations for nurses to track clients. I help you create content, repurpose high-performing posts, schedule with ease, monitor trends, and automate marketing—so you stay visible and consistent without burning out.

外部链接
在 n8n.io 查看

分享此工作流