通过Telegram机器人和GPT-4.1使用自然语言管理ClickUp任务
中级
这是一个Project Management, AI Chatbot领域的自动化工作流,包含 15 个节点。主要使用 If, ClickUpTool, TelegramTool, Agent, TelegramTrigger 等节点。 通过Telegram机器人和GPT-4.1使用自然语言管理ClickUp任务
前置要求
- •Telegram Bot Token
- •OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"meta": {
"instanceId": "d6e2f2f655b1125bbcac14a4cac6d2e46c7a150e927f85fc96fdca1a6dc39e0e",
"templateCredsSetupCompleted": true
},
"nodes": [
{
"id": "f692d05d-839b-4975-93ce-cd16582eb2fc",
"name": "Telegram 机器人接收消息",
"type": "n8n-nodes-base.telegramTrigger",
"position": [
80,
-96
],
"webhookId": "5cb6c6ae-6add-436a-938a-b6b718c8ad3b",
"parameters": {
"updates": [
"message"
],
"additionalFields": {}
},
"credentials": {
"telegramApi": {
"id": "miab2BWvv39J9TIc",
"name": "Telegram account"
}
},
"typeVersion": 1.2
},
{
"id": "ae472b5f-a380-4eef-9985-a09c76601b9c",
"name": "忽略机器人消息",
"type": "n8n-nodes-base.if",
"position": [
304,
-96
],
"parameters": {
"options": {},
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "b4b9d960-c121-49d9-95e2-b699e1127ccd",
"operator": {
"type": "number",
"operation": "notEquals"
},
"leftValue": "={{ $json.message.reply_to_message.from.id }}",
"rightValue": 8453959426
}
]
}
},
"typeVersion": 2.2
},
{
"id": "13735844-9e30-482b-b78a-58985bea08db",
"name": "发送用户确认消息",
"type": "n8n-nodes-base.telegramTool",
"position": [
912,
320
],
"webhookId": "9e0cd489-1e18-41de-8ca9-139ebd524571",
"parameters": {
"text": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Text', ``, 'string') }}",
"chatId": "={{ $('Telegram Bot Receives Message').item.json.message.chat.id }}",
"descriptionType": "manual",
"toolDescription": "After a task is created in ClickUp, send a message to let the user know",
"additionalFields": {
"appendAttribution": false,
"reply_to_message_id": "={{ $('Telegram Bot Receives Message').item.json.message.message_id }}"
}
},
"credentials": {
"telegramApi": {
"id": "miab2BWvv39J9TIc",
"name": "Telegram account"
}
},
"typeVersion": 1.2
},
{
"id": "63726bc9-f304-422c-9a09-5945486d7b8e",
"name": "AI Agent:创建任务或跟进",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
832,
-112
],
"parameters": {
"text": "=Current Datetime: {{ $now.minus(1, 'days').setZone('America/Toronto') }}\nUser First Name: {{ $json.message.chat.first_name }}\n{{ $json.message.text }}",
"options": {
"systemMessage": "You are a helpful assistant. Your goal is to create, update or delete tasks in ClickUp for the user. Please follow the detailed instructions below:\n\nDetailed Instructions - Create a New Task: \n1. Please create a blank task in ClickUp using the create task tool. Remember to keep a note of the task ID returned by ClickUp so you can update this task in the future.\n2. If you are using dates, please convert to UTC before sending to ClickUp\n3. Update the task details using the update tool \n4. If you need more information, use the telegram tool to ask for more information. \n\nDetailed Instructions - Update an Existing Task: \n1. If you don't already have the task ID, use the “find task” tool to find the task ID of the task you want to update in ClickUp\n2. Update the details, as requested by the user\n\nDetailed Instructions - Delete a Task: \n1. If you don't already have the task ID, use the “find task” tool to find the task ID of the task you want to delete in ClickUp\n2. Please be careful with deleting tasks, if you are unsure, send the user a message and ask them to confirm the task is correct before deleting\n\nImportant: Always send the user a confirmation of the changes that have been made in clickup, or if no changes have been made\n\nIf you need to communicate with the user for any reason, such as providing info or asking for info, send a message using the communicate tool"
},
"promptType": "define"
},
"typeVersion": 1.9
},
{
"id": "a9c2661e-2bff-478e-ad96-845081b115dc",
"name": "OpenAI 聊天模型1",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
528,
128
],
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "gpt-4.1-mini"
},
"options": {}
},
"credentials": {
"openAiApi": {
"id": "XqsFFpRk48U68Fou",
"name": "OpenAi account"
}
},
"typeVersion": 1.2
},
{
"id": "7723dbdc-f266-4c72-a30d-52a9d2a2857b",
"name": "在 ClickUp 中创建空白任务",
"type": "n8n-nodes-base.clickUpTool",
"position": [
1168,
128
],
"parameters": {
"list": "901406981487",
"name": "New Task",
"team": "9014464478",
"space": "90141755852",
"folder": "90144781876",
"authentication": "oAuth2",
"descriptionType": "manual",
"toolDescription": "n8n does not allow you to choose the task name on creation, so this tool will create a task with a generic name. Pleae note the task Id so you can update the name",
"additionalFields": {}
},
"credentials": {
"clickUpOAuth2Api": {
"id": "XF8rQNbDJ9biEaRV",
"name": "ClickUp account"
}
},
"typeVersion": 1
},
{
"id": "b2437311-3c97-4ec3-8df2-721ce782c760",
"name": "在 ClickUp 中查找任务",
"type": "n8n-nodes-base.clickUpTool",
"position": [
1328,
128
],
"parameters": {
"list": "901406981487",
"team": "9014464478",
"space": "90141755852",
"folder": "90144781876",
"filters": {},
"operation": "getAll",
"returnAll": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Return_All', ``, 'boolean') }}",
"authentication": "oAuth2"
},
"credentials": {
"clickUpOAuth2Api": {
"id": "XF8rQNbDJ9biEaRV",
"name": "ClickUp account"
}
},
"typeVersion": 1
},
{
"id": "8e70d57a-b5af-49b9-8d55-0b367c9fde15",
"name": "在 ClickUp 中更新任务",
"type": "n8n-nodes-base.clickUpTool",
"position": [
1168,
320
],
"parameters": {
"id": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Task_ID', ``, 'string') }}",
"operation": "update",
"updateFields": {
"name": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Name', ``, 'string') }}",
"status": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Status', ``, 'string') }}",
"content": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Content', ``, 'string') }}",
"dueDate": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Due_Date', ``, 'string') }}",
"priority": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Priority', ``, 'number') }}",
"dueDateTime": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Due_Date_Time', ``, 'boolean') }}"
},
"authentication": "oAuth2"
},
"credentials": {
"clickUpOAuth2Api": {
"id": "XF8rQNbDJ9biEaRV",
"name": "ClickUp account"
}
},
"typeVersion": 1
},
{
"id": "d336f3be-c0c0-4e06-a2a0-d7d83500c814",
"name": "与用户通信",
"type": "n8n-nodes-base.telegramTool",
"position": [
912,
128
],
"webhookId": "9e0cd489-1e18-41de-8ca9-139ebd524571",
"parameters": {
"text": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Text', ``, 'string') }}",
"chatId": "={{ $('Telegram Bot Receives Message').item.json.message.chat.id }}",
"descriptionType": "manual",
"toolDescription": "If you need to communicate with the user for any reason, such as providing info or asking for info, send a message using this tool",
"additionalFields": {
"appendAttribution": false,
"reply_to_message_id": "={{ $('Telegram Bot Receives Message').item.json.message.message_id }}"
}
},
"credentials": {
"telegramApi": {
"id": "miab2BWvv39J9TIc",
"name": "Telegram account"
}
},
"typeVersion": 1.2
},
{
"id": "a0a68d35-3bf3-49f3-bc55-a2cb98228010",
"name": "简单记忆",
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
"position": [
688,
128
],
"parameters": {
"sessionKey": "={{ $json.message.chat.id }}",
"sessionIdType": "customKey"
},
"typeVersion": 1.3
},
{
"id": "9b9c3096-b2d6-45dc-b264-7725a05f8a03",
"name": "在 ClickUp 中删除任务",
"type": "n8n-nodes-base.clickUpTool",
"position": [
1328,
320
],
"parameters": {
"id": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Task_ID', ``, 'string') }}",
"operation": "delete",
"authentication": "oAuth2"
},
"credentials": {
"clickUpOAuth2Api": {
"id": "XF8rQNbDJ9biEaRV",
"name": "ClickUp account"
}
},
"typeVersion": 1
},
{
"id": "f6f86b82-5197-4402-9ab9-38c9e82a6a7f",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
-688,
-496
],
"parameters": {
"width": 660,
"height": 1908,
"content": "## 使用 Telegram 机器人自动管理 ClickUp 任务"
},
"typeVersion": 1
},
{
"id": "93756fcc-d0e0-4cd3-81ce-6a5e378aea4a",
"name": "便签 1",
"type": "n8n-nodes-base.stickyNote",
"position": [
224,
-240
],
"parameters": {
"color": 3,
"width": 256,
"height": 320,
"content": "## ⚠️ 警告"
},
"typeVersion": 1
},
{
"id": "672c3389-daf4-4df5-b26e-d70c73509b73",
"name": "便签 4",
"type": "n8n-nodes-base.stickyNote",
"position": [
1488,
128
],
"parameters": {
"color": 7,
"width": 304,
"height": 144,
"content": "## 📌 ClickUp 设置"
},
"typeVersion": 1
},
{
"id": "17a2c5ab-b6f5-4379-82b1-1974fbd0d390",
"name": "便签 5",
"type": "n8n-nodes-base.stickyNote",
"position": [
1488,
320
],
"parameters": {
"width": 304,
"height": 144,
"content": "## ⚠️ 注意:删除节点"
},
"typeVersion": 1
}
],
"pinData": {},
"connections": {
"Simple Memory": {
"ai_memory": [
[
{
"node": "AI Agent: Create Task or Follow Up",
"type": "ai_memory",
"index": 0
}
]
]
},
"OpenAI Chat Model1": {
"ai_languageModel": [
[
{
"node": "AI Agent: Create Task or Follow Up",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Ignore Bot Messages": {
"main": [
[
{
"node": "AI Agent: Create Task or Follow Up",
"type": "main",
"index": 0
}
]
]
},
"Communicate with User": {
"ai_tool": [
[
{
"node": "AI Agent: Create Task or Follow Up",
"type": "ai_tool",
"index": 0
}
]
]
},
"Find a Task in ClickUp": {
"ai_tool": [
[
{
"node": "AI Agent: Create Task or Follow Up",
"type": "ai_tool",
"index": 0
}
]
]
},
"Delete a task in ClickUp": {
"ai_tool": [
[
{
"node": "AI Agent: Create Task or Follow Up",
"type": "ai_tool",
"index": 0
}
]
]
},
"Update a Task in ClickUp": {
"ai_tool": [
[
{
"node": "AI Agent: Create Task or Follow Up",
"type": "ai_tool",
"index": 0
}
]
]
},
"Telegram Bot Receives Message": {
"main": [
[
{
"node": "Ignore Bot Messages",
"type": "main",
"index": 0
}
]
]
},
"Create A Blank Task in ClickUp": {
"ai_tool": [
[
{
"node": "AI Agent: Create Task or Follow Up",
"type": "ai_tool",
"index": 0
}
]
]
},
"Send User Confirmation Message": {
"ai_tool": [
[
{
"node": "AI Agent: Create Task or Follow Up",
"type": "ai_tool",
"index": 0
}
]
]
},
"AI Agent: Create Task or Follow Up": {
"main": [
[]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
中级 - 项目管理, AI 聊天机器人
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
使用GPT-4.1-mini聊天助手将项目任务添加到Google表格
使用GPT-4.1-mini聊天助手将项目任务添加到Google表格
If
Google Sheets
Chat
+6
17 节点Robert Breen
项目管理
Jira智能体
通过Telegram和GPT-4o使用自然语言管理Jira问题
If
Set
Function
+6
23 节点Humble Turtle
项目管理
宠物美容发布与预约自动化
使用AI、Facebook和Telegram机器人自动化宠物美容发布与预约
If
Set
Switch
+17
36 节点Christian Moises
AI 聊天机器人
Telegram支持交接自动化
使用GPT4和邮件提醒自动化Telegram支持从AI到人工的交接
If
Set
Switch
+12
40 节点Meelioo
客服机器人
J.A.R.V.I.S.
在Telegram上使用OpenAI、SERP和向量存储构建全面的多模态助手
If
Set
Code
+16
48 节点FabioInTech
客服机器人
我的工作流2
使用多个GPT-4o AI代理管理个人数据:Telegram上的Gmail、任务和财务
Set
Code
Gmail
+14
62 节点Mahmoud Shrouf
AI 聊天机器人