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 Bot Receives Message",
"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エージェント: タスク作成またはフォローアップ",
"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 Chat Model1",
"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": "Simple Memory",
"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": "## Automatically Manage ClickUp Tasks Using a Telegram Bot\n\n## 📌 What It Does \nThis workflow connects a Telegram bot with your ClickUp workspace, allowing you to **create**, **read**, **update**, and **delete** tasks just by sending a message. The AI agent interprets natural language commands and takes the appropriate action — all without needing to open ClickUp.\n\nIt’s like having a personal assistant inside Telegram that manages your task list for you.\n\n## ✅ Prerequisites \nTo use this workflow, you'll need the following credentials set up in n8n:\n- **Telegram Bot API Credential** (used in all Telegram nodes) \n- **ClickUp OAuth2 Credential** (for task operations) \n- **OpenAI Credential** (to power the AI agent that parses your commands)\n\n## ⚠️ Before First Use \nMake sure to **add your bot's user ID** to the `Ignore Bot Messages` node. \nThis prevents infinite loops caused by the bot responding to its own messages.\n\nIf you're unsure of your bot's ID:\n1. Temporarily disable the two Telegram tool nodes connected to the AI Agent.\n2. Send a test message from the bot and capture its ID.\n3. Add that ID to the ignore filter, then re-enable the nodes.\n\n## ⚙️ How It Works \n1. **Trigger:** The workflow starts when your Telegram bot receives a message. \n2. **Ignore Self:** If the message was sent by the bot itself, the workflow stops. \n3. **AI Analysis:** The message is passed to an AI agent (OpenAI) that determines what action to take. \n4. **Decision Tree:**\n - 📌 Create a new task in ClickUp \n - ✏️ Update an existing task \n - 🔍 Find a task and return its details \n - 🗑️ Delete a task \n - ❓ Ask for more details if input is unclear \n - ✅ Send confirmation or feedback to the user \n\n## 💡 Example Use Cases \n- “Add a task called ‘Follow up with supplier’ for tomorrow.” \n- “What tasks are due this week?” \n- “Update the task ‘Website Launch’ to ‘in progress’.” \n- “Delete the task ‘Old client notes’.” \n\nThis workflow is ideal for solo operators, remote teams, or anyone who wants to manage ClickUp while on the go — without switching apps.\n\n## 🛠️ Setup Instructions \n1. **Telegram Bot:**\n - Create a Telegram bot using BotFather \n - Add your **Telegram credential** to all Telegram nodes in this workflow \n2. **Bot ID Filter:**\n - Add your **bot’s Telegram user ID** to the `Ignore Bot Messages` node \n3. **OpenAI Setup:**\n - Add your **OpenAI credential** to the AI Agent node \n4. **ClickUp Integration:**\n - Connect your **ClickUp credential** \n - Set your **workspace, list, and folder IDs** in the task creation and search nodes \n\n## 🚀 How to Use \n1. Save the Telegram bot to your contacts \n2. Open the Telegram chat with your bot and send a message like: \n `\"Add a task to follow up with invoices every Friday\"` \n3. The bot will reply with confirmation or ask for clarification \n4. The task will appear in your ClickUp workspace within seconds \n\n## 🔧 Customization Options \n- Add new intents to the AI agent to support more actions (e.g., time tracking or comments) \n- Customize the bot’s responses for branding or tone \n- Add notifications or reminders using additional Telegram nodes \n\n## ✨ Why It's Useful \nThis workflow eliminates the friction of switching between Telegram and your task manager. It reduces manual data entry, saves time, and gives you a simple way to manage your to-do list using natural language — even on mobile.\n\nPerfect for freelancers, managers, or team leads who want a faster, more intuitive way to stay organized.\n"
},
"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": "## ⚠️ Warning\nPlease configure this node using the instructions in `Before First Use` to avoid infinite loops"
},
"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 Setup\nBefore running this workflow, make sure to configure your ClickUp **workspace**, **folder**, **list**, and other required fields in the relevant nodes."
},
"typeVersion": 1
},
{
"id": "17a2c5ab-b6f5-4379-82b1-1974fbd0d390",
"name": "付箋メモ5",
"type": "n8n-nodes-base.stickyNote",
"position": [
1488,
320
],
"parameters": {
"width": 304,
"height": 144,
"content": "## ⚠️ Caution: Delete Node\nThis node will **permanently delete tasks** in ClickUp. If you're testing or unsure, consider disabling or deleting this node to avoid accidental data loss."
},
"typeVersion": 1
}
],
"pinData": {},
"connections": {
"a0a68d35-3bf3-49f3-bc55-a2cb98228010": {
"ai_memory": [
[
{
"node": "63726bc9-f304-422c-9a09-5945486d7b8e",
"type": "ai_memory",
"index": 0
}
]
]
},
"a9c2661e-2bff-478e-ad96-845081b115dc": {
"ai_languageModel": [
[
{
"node": "63726bc9-f304-422c-9a09-5945486d7b8e",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"ae472b5f-a380-4eef-9985-a09c76601b9c": {
"main": [
[
{
"node": "63726bc9-f304-422c-9a09-5945486d7b8e",
"type": "main",
"index": 0
}
]
]
},
"d336f3be-c0c0-4e06-a2a0-d7d83500c814": {
"ai_tool": [
[
{
"node": "63726bc9-f304-422c-9a09-5945486d7b8e",
"type": "ai_tool",
"index": 0
}
]
]
},
"b2437311-3c97-4ec3-8df2-721ce782c760": {
"ai_tool": [
[
{
"node": "63726bc9-f304-422c-9a09-5945486d7b8e",
"type": "ai_tool",
"index": 0
}
]
]
},
"9b9c3096-b2d6-45dc-b264-7725a05f8a03": {
"ai_tool": [
[
{
"node": "63726bc9-f304-422c-9a09-5945486d7b8e",
"type": "ai_tool",
"index": 0
}
]
]
},
"8e70d57a-b5af-49b9-8d55-0b367c9fde15": {
"ai_tool": [
[
{
"node": "63726bc9-f304-422c-9a09-5945486d7b8e",
"type": "ai_tool",
"index": 0
}
]
]
},
"f692d05d-839b-4975-93ce-cd16582eb2fc": {
"main": [
[
{
"node": "ae472b5f-a380-4eef-9985-a09c76601b9c",
"type": "main",
"index": 0
}
]
]
},
"7723dbdc-f266-4c72-a30d-52a9d2a2857b": {
"ai_tool": [
[
{
"node": "63726bc9-f304-422c-9a09-5945486d7b8e",
"type": "ai_tool",
"index": 0
}
]
]
},
"13735844-9e30-482b-b78a-58985bea08db": {
"ai_tool": [
[
{
"node": "63726bc9-f304-422c-9a09-5945486d7b8e",
"type": "ai_tool",
"index": 0
}
]
]
},
"63726bc9-f304-422c-9a09-5945486d7b8e": {
"main": [
[]
]
}
}
}よくある質問
このワークフローの使い方は?
上記のJSON設定コードをコピーし、n8nインスタンスで新しいワークフローを作成して「JSONからインポート」を選択、設定を貼り付けて認証情報を必要に応じて変更してください。
このワークフローはどんな場面に適していますか?
中級 - プロジェクト管理, AIチャットボット
有料ですか?
このワークフローは完全無料です。ただし、ワークフローで使用するサードパーティサービス(OpenAI APIなど)は別途料金が発生する場合があります。
関連ワークフロー
GPT-4.1-miniチャットアシスタントを使用してプロジェクトタスクをGoogleシートに追加
GPT-4.1-miniチャットアシスタントでプロジェクトタスクをGoogleスプレッドシートに追加
If
Google Sheets
Chat
+
If
Google Sheets
Chat
17 ノードRobert Breen
プロジェクト管理
Jiraエージェント
TelegramとGPT-4oで自然言語を使用してJiraのチケットを管理する
If
Set
Function
+
If
Set
Function
23 ノードHumble Turtle
プロジェクト管理
ペットビューティー公開と予約の自動化
AI、Facebook、Telegram ボットを使ったペットコーディネーションの掲載と予約の自動化
If
Set
Switch
+
If
Set
Switch
36 ノードChristian Moises
AIチャットボット
Telegramサポート取り扱いの自動化
GPT-4とメール通知を使用して、TelegramサポートからAIから人間への段階の移行を自動化
If
Set
Switch
+
If
Set
Switch
40 ノードMeelioo
サポートチャットボット
J.A.R.V.I.S.
Telegram上でOpenAI、SERP、ベクターストアを使った包括のなマルチモーダルアシスタントの構築
If
Set
Code
+
If
Set
Code
48 ノードFabioInTech
サポートチャットボット
マイワークフロー2
複数のGPT-4o AIエージェントで個人データを管理する:Telegram上のGmail、タスク、財務
Set
Code
Gmail
+
Set
Code
Gmail
62 ノードMahmoud Shrouf
AIチャットボット