8
n8n 中文网amn8n.com

基于 Telegram、Google 服务和语音 AI 的个人生活管理器

高级

这是一个Miscellaneous, AI Chatbot, Multimodal AI领域的自动化工作流,包含 24 个节点。主要使用 If, Set, Telegram, GmailTool, Agent 等节点。 基于 Telegram、Google 服务和语音 AI 的个人生活管理器

前置要求
  • Telegram Bot Token
  • Google 账号和 Gmail API 凭证
  • OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "meta": {
    "instanceId": "04ddf1130268840c229f501edc57936c3c131339e8b0cdd696fcf3a7c69e696e",
    "templateId": "2462",
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "c70236ea-91ab-4e47-b6f6-63a70ede5d3c",
      "name": "Google Calendar",
      "type": "n8n-nodes-base.googleCalendarTool",
      "position": [
        3280,
        816
      ],
      "parameters": {
        "options": {
          "fields": "=items(summary, start(dateTime))",
          "timeMin": "={{$fromAI(\"date\",\"the date after which to fetch the messages in format YYYY-MM-DDTHH:MM:SS\")}}"
        },
        "calendar": {
          "__rl": true,
          "mode": "list",
          "value": "derekcheungsa@gmail.com",
          "cachedResultName": "derekcheungsa@gmail.com"
        },
        "operation": "getAll"
      },
      "credentials": {
        "googleCalendarOAuth2Api": {
          "id": "TZCTCXv52Z6RRSFv",
          "name": "Google Calendar account"
        }
      },
      "typeVersion": 1.1
    },
    {
      "id": "d2287bea-de47-4180-8ee6-55d4ab1a89da",
      "name": "窗口缓冲记忆",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        2096,
        816
      ],
      "parameters": {
        "sessionKey": "={{ $('Listen for incoming events').first().json.message.from.id }}",
        "sessionIdType": "customKey"
      },
      "typeVersion": 1.2
    },
    {
      "id": "fa955731-86f6-4e4d-8604-dab5f52dee87",
      "name": "获取邮件",
      "type": "n8n-nodes-base.gmailTool",
      "position": [
        2944,
        816
      ],
      "webhookId": "a4ae7b5d-7686-4bee-a753-848932860b4e",
      "parameters": {
        "limit": 20,
        "filters": {
          "labelIds": [
            "INBOX",
            "UNREAD"
          ],
          "readStatus": "unread"
        },
        "operation": "getAll"
      },
      "credentials": {
        "gmailOAuth2": {
          "id": "LAWyXYsbVPZL8nCq",
          "name": "Gmail account 2"
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "64fe44db-af19-43eb-9ff1-de0a72a9e645",
      "name": "监听传入事件",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        960,
        464
      ],
      "webhookId": "322dce18-f93e-4f86-b9b1-3305519b7834",
      "parameters": {
        "updates": [
          "message"
        ],
        "additionalFields": {}
      },
      "credentials": {
        "telegramApi": {
          "id": "KdvuMXJQ1nq0hhc7",
          "name": "Telegram account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "e35c04ff-a050-4564-8c1b-5b22b556872f",
      "name": "Telegram",
      "type": "n8n-nodes-base.telegram",
      "onError": "continueErrorOutput",
      "position": [
        2768,
        448
      ],
      "webhookId": "2c133a40-af48-4106-bc1a-be6047840a89",
      "parameters": {
        "text": "={{ $json.output }}",
        "chatId": "={{ $('Listen for incoming events').first().json.message.from.id }}",
        "additionalFields": {
          "parse_mode": "Markdown",
          "appendAttribution": false
        }
      },
      "credentials": {
        "telegramApi": {
          "id": "KdvuMXJQ1nq0hhc7",
          "name": "Telegram account"
        }
      },
      "typeVersion": 1.1
    },
    {
      "id": "e791d4f8-2c19-4c14-a71e-39a04f22e944",
      "name": "如果",
      "type": "n8n-nodes-base.if",
      "position": [
        1408,
        464
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "a0bf9719-4272-46f6-ab3b-eda6f7b44fd8",
              "operator": {
                "type": "string",
                "operation": "empty",
                "singleValue": true
              },
              "leftValue": "={{ $json.message.text }}",
              "rightValue": ""
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "b67a2a93-517b-469e-aaa4-32c422710743",
      "name": "语音或文本",
      "type": "n8n-nodes-base.set",
      "position": [
        1184,
        464
      ],
      "parameters": {
        "fields": {
          "values": [
            {
              "name": "text",
              "stringValue": "={{ $json?.message?.text || \"\" }}"
            }
          ]
        },
        "options": {}
      },
      "typeVersion": 3.2
    },
    {
      "id": "8105c39f-9e87-44c4-9215-b3777f0b4164",
      "name": "获取语音文件",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1632,
        384
      ],
      "webhookId": "ef3f120e-c212-45ff-99b5-b6a5a82598d8",
      "parameters": {
        "fileId": "={{ $('Listen for incoming events').item.json.message.voice.file_id }}",
        "resource": "file",
        "additionalFields": {}
      },
      "credentials": {
        "telegramApi": {
          "id": "KdvuMXJQ1nq0hhc7",
          "name": "Telegram account"
        }
      },
      "typeVersion": 1.1
    },
    {
      "id": "5537c777-f003-4673-b48a-4993a0c10520",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1152,
        352
      ],
      "parameters": {
        "color": 7,
        "width": 624,
        "height": 279,
        "content": "## 处理 Telegram 请求"
      },
      "typeVersion": 1
    },
    {
      "id": "7e018d55-ae6b-46a9-baa9-9259ac82ee1f",
      "cid": "Ikx1Y2FzIFBleXJpbiI",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "notes": "© 2025 Lucas Peyrin",
      "creator": "Lucas Peyrin",
      "position": [
        1664,
        768
      ],
      "parameters": {
        "color": 3,
        "width": 294,
        "height": 316,
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "15b431c9-743d-4e29-a355-8ef42658e0c6",
      "name": "OpenRouter",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        1760,
        800
      ],
      "parameters": {
        "options": {}
      },
      "credentials": {
        "openRouterApi": {
          "id": "6ncUAyBiAVcbEpuf",
          "name": "OpenRouter account 3"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "8c360102-ad54-46b8-b268-7739b1c052b2",
      "cid": "Ikx1Y2FzIFBleXJpbiI",
      "name": "便签15",
      "type": "n8n-nodes-base.stickyNote",
      "notes": "© 2025 Lucas Peyrin",
      "creator": "Lucas Peyrin",
      "position": [
        1984,
        768
      ],
      "parameters": {
        "color": 7,
        "width": 308,
        "height": 260,
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "fa092f50-e916-4e98-8fa8-1686b034f439",
      "cid": "Ikx1Y2FzIFBleXJpbiI",
      "name": "便签 16",
      "type": "n8n-nodes-base.stickyNote",
      "notes": "© 2025 Lucas Peyrin",
      "creator": "Lucas Peyrin",
      "position": [
        2320,
        768
      ],
      "parameters": {
        "color": 7,
        "width": 484,
        "height": 260,
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "65a66122-3883-46a9-b19e-32976c7e125e",
      "cid": "Ikx1Y2FzIFBleXJpbiI",
      "name": "便利贴18",
      "type": "n8n-nodes-base.stickyNote",
      "notes": "© 2025 Lucas Peyrin",
      "creator": "Lucas Peyrin",
      "position": [
        2832,
        768
      ],
      "parameters": {
        "color": 7,
        "width": 308,
        "height": 260,
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "73e4879a-c3a9-44b7-8647-789270f1b010",
      "cid": "Ikx1Y2FzIFBleXJpbiI",
      "name": "便签 19",
      "type": "n8n-nodes-base.stickyNote",
      "notes": "© 2025 Lucas Peyrin",
      "creator": "Lucas Peyrin",
      "position": [
        3168,
        768
      ],
      "parameters": {
        "color": 7,
        "width": 308,
        "height": 260,
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "60e9b4ca-dc14-4a3c-8091-93b442630ab4",
      "cid": "Ikx1Y2FzIFBleXJpbiI",
      "name": "便签20",
      "type": "n8n-nodes-base.stickyNote",
      "notes": "© 2025 Lucas Peyrin",
      "creator": "Lucas Peyrin",
      "position": [
        1840,
        352
      ],
      "parameters": {
        "color": 7,
        "width": 324,
        "height": 276,
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "8d9ca104-253a-4004-9587-f8a7b211acfe",
      "cid": "Ikx1Y2FzIFBleXJpbiI",
      "name": "## 试试看!",
      "type": "n8n-nodes-base.stickyNote",
      "notes": "© 2025 Lucas Peyrin",
      "creator": "Lucas Peyrin",
      "position": [
        2224,
        256
      ],
      "parameters": {
        "color": 7,
        "width": 396,
        "height": 380,
        "content": "Caylee,您的个人 AI 助手:"
      },
      "typeVersion": 1
    },
    {
      "id": "155a0ba5-aaa6-4b77-a4ab-b409a91fd720",
      "name": "便签 3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        528,
        224
      ],
      "parameters": {
        "color": 5,
        "width": 380,
        "height": 616,
        "content": "# 立即试用!"
      },
      "typeVersion": 1
    },
    {
      "id": "2f570b1c-867d-450d-9825-2058ed68c284",
      "name": "便签 4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2672,
        352
      ],
      "parameters": {
        "color": 7,
        "width": 304,
        "height": 288,
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "f1b2177e-f653-4d69-be85-51561bdd1799",
      "name": "在 Google Tasks 中创建任务",
      "type": "n8n-nodes-base.googleTasksTool",
      "position": [
        2432,
        816
      ],
      "parameters": {
        "task": "MTY1MTc5NzMxMzA5NDc5MTQ5NzQ6MDow",
        "title": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Title', ``, 'string') }}",
        "additionalFields": {}
      },
      "credentials": {
        "googleTasksOAuth2Api": {
          "id": "93SncyHiar2YuBdr",
          "name": "Google Tasks account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "8e71e30a-f584-48a0-8bb6-b638bfbb040a",
      "name": "在 Google Tasks 中获取多个任务",
      "type": "n8n-nodes-base.googleTasksTool",
      "position": [
        2608,
        816
      ],
      "parameters": {
        "task": "MTY1MTc5NzMxMzA5NDc5MTQ5NzQ6MDow",
        "operation": "getAll",
        "additionalFields": {}
      },
      "credentials": {
        "googleTasksOAuth2Api": {
          "id": "93SncyHiar2YuBdr",
          "name": "Google Tasks account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "9e27496f-d602-473b-8244-29c2d1543a49",
      "name": "便签 2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3024,
        240
      ],
      "parameters": {
        "color": 7,
        "width": 544,
        "height": 400,
        "content": "## [视频教程](https://youtu.be/ROgf5dVqYPQ)"
      },
      "typeVersion": 1
    },
    {
      "id": "ed95b191-e482-4d52-bf5e-0ed2159e5db3",
      "name": "录音转文字",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        1952,
        384
      ],
      "parameters": {
        "options": {},
        "resource": "audio",
        "operation": "transcribe"
      },
      "credentials": {
        "openAiApi": {
          "id": "zdHV66qt9iIf65C6",
          "name": "EU Open AI"
        }
      },
      "typeVersion": 1.8
    },
    {
      "id": "759b975f-d17c-4386-a5b3-12413f0361f4",
      "name": "Caylee,AI 助手 👩🏻‍🏫",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        2304,
        448
      ],
      "parameters": {
        "text": "={{ $json.text }}",
        "options": {
          "systemMessage": "=You are a helpful personal assistant called Caylee. \n\nToday's date is {{ $today.format('yyyy-MM-dd') }}.\n\nGuidelines:\n- When summarizing emails, include Sender, Message date, subject, and brief summary of email.\n- if the user did not specify a date in the request assume they are asking for today\n- When answering questions about calendar events, filter out events that don't apply to the question.  For example, the question is about events for today, only reply with events for today. Don't mention future events if it's more than 1 week away"
        },
        "promptType": "define"
      },
      "typeVersion": 1.6
    }
  ],
  "pinData": {},
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "Get Voice File",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Caylee, AI Assistant 👩🏻‍🏫",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Email": {
      "ai_tool": [
        [
          {
            "node": "Caylee, AI Assistant 👩🏻‍🏫",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "OpenRouter": {
      "ai_languageModel": [
        [
          {
            "node": "Caylee, AI Assistant 👩🏻‍🏫",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Voice or Text": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Voice File": {
      "main": [
        [
          {
            "node": "Transcribe a recording",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Calendar": {
      "ai_tool": [
        [
          {
            "node": "Caylee, AI Assistant 👩🏻‍🏫",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Window Buffer Memory": {
      "ai_memory": [
        [
          {
            "node": "Caylee, AI Assistant 👩🏻‍🏫",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Transcribe a recording": {
      "main": [
        [
          {
            "node": "Caylee, AI Assistant 👩🏻‍🏫",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Listen for incoming events": {
      "main": [
        [
          {
            "node": "Voice or Text",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create a task in Google Tasks": {
      "ai_tool": [
        [
          {
            "node": "Caylee, AI Assistant 👩🏻‍🏫",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Get many tasks in Google Tasks": {
      "ai_tool": [
        [
          {
            "node": "Caylee, AI Assistant 👩🏻‍🏫",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Caylee, AI Assistant 👩🏻‍🏫": {
      "main": [
        [
          {
            "node": "Telegram",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

高级 - 杂项, AI 聊天机器人, 多模态 AI

需要付费吗?

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

工作流信息
难度等级
高级
节点数量24
分类3
节点类型12
难度说明

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

作者
Derek Cheung

Derek Cheung

@derekcheungsa

Derek is an engineer, instructor, and investor based in Canada. He is publicly building AI applications to solve real-world problems, leveraging his technical expertise to develop practical solutions.

外部链接
在 n8n.io 查看

分享此工作流