Telegram 新規 Notion タスク

中級

これはPersonal Productivity, AI Summarization分野の自動化ワークフローで、11個のノードを含みます。主にCode, Switch, Telegram, NotionTool, TelegramTriggerなどのノードを使用。 GPT-3.5を使ってTelegramメッセージからNotionタスクを作成

前提条件
  • Telegram Bot Token
  • Notion API Key
  • OpenAI API Key
ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
  "id": "3zGzoLsR5v0Zzmno",
  "meta": {
    "instanceId": "2a92e1aed4e75113f119ba031c55ebfbb7ec184402fa742db5b7b5ac94a2d195",
    "templateCredsSetupCompleted": true
  },
  "name": "Telegram New Notion Task",
  "tags": [
    {
      "id": "KOVOG8f4IK9bMwas",
      "name": "🤖 AI Powered",
      "createdAt": "2025-07-26T12:59:39.942Z",
      "updatedAt": "2025-07-26T13:02:41.754Z"
    }
  ],
  "nodes": [
    {
      "id": "3b50fa4c-5308-44d7-b0d8-57a2d96805c4",
      "name": "Telegram Trigger",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        48,
        -96
      ],
      "webhookId": "90c5bab8-cfa8-4525-aca8-e3d8bdd02a1b",
      "parameters": {
        "updates": [
          "message"
        ],
        "additionalFields": {
          "userIds": "8353510776",
          "download": true
        }
      },
      "credentials": {
        "telegramApi": {
          "id": "1ePYQREXPprmgaYm",
          "name": "Telegram account"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "485a384d-551b-4aae-a7ca-b7846cc1daa9",
      "name": "テキストと音声の切り替え",
      "type": "n8n-nodes-base.switch",
      "position": [
        224,
        -96
      ],
      "parameters": {
        "rules": {
          "values": [
            {
              "conditions": {
                "options": {
                  "version": 2,
                  "leftValue": "",
                  "caseSensitive": true,
                  "typeValidation": "strict"
                },
                "combinator": "and",
                "conditions": [
                  {
                    "id": "ef952069-0a19-45b5-bff6-f337be61c98f",
                    "operator": {
                      "type": "object",
                      "operation": "exists",
                      "singleValue": true
                    },
                    "leftValue": "={{ $json.message.voice }}",
                    "rightValue": ""
                  }
                ]
              }
            },
            {
              "conditions": {
                "options": {
                  "version": 2,
                  "leftValue": "",
                  "caseSensitive": true,
                  "typeValidation": "strict"
                },
                "combinator": "and",
                "conditions": [
                  {
                    "id": "1418a821-3cfe-4dc3-a75b-c003d875dcc0",
                    "operator": {
                      "type": "string",
                      "operation": "exists",
                      "singleValue": true
                    },
                    "leftValue": "={{ $json.message.text }}",
                    "rightValue": ""
                  }
                ]
              }
            }
          ]
        },
        "options": {}
      },
      "typeVersion": 3.2
    },
    {
      "id": "9ff44832-b7e2-46b1-9475-0b114356a1ff",
      "name": "録音のダウンロード",
      "type": "n8n-nodes-base.telegram",
      "position": [
        448,
        -240
      ],
      "webhookId": "67ac3dc3-30fa-432a-81d0-53dc09ecfca4",
      "parameters": {
        "fileId": "={{ $json.message.voice.file_id }}",
        "resource": "file"
      },
      "credentials": {
        "telegramApi": {
          "id": "1ePYQREXPprmgaYm",
          "name": "Telegram account"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "bf9db602-fbdc-4a28-8a58-35a34842e69b",
      "name": "確認メッセージ",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1232,
        -80
      ],
      "webhookId": "7c039879-e733-48bd-9022-910573624191",
      "parameters": {
        "text": "={{ $json.message.content }}",
        "chatId": "8353510776",
        "additionalFields": {
          "appendAttribution": false
        }
      },
      "credentials": {
        "telegramApi": {
          "id": "1ePYQREXPprmgaYm",
          "name": "Telegram account"
        }
      },
      "notesInFlow": false,
      "typeVersion": 1.2
    },
    {
      "id": "a4dc46b9-7db8-4217-b200-78be740e0ebc",
      "name": "録音の文字起こし",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        672,
        -240
      ],
      "parameters": {
        "options": {},
        "resource": "audio",
        "operation": "transcribe"
      },
      "credentials": {
        "openAiApi": {
          "id": "NPgH1qw6QE8eTcZq",
          "name": "OpenAi account 3"
        }
      },
      "typeVersion": 1.8
    },
    {
      "id": "b241e830-b313-4c5c-9cd2-af6e2906575a",
      "name": "Notionに新規タスク作成",
      "type": "n8n-nodes-base.notionTool",
      "position": [
        1008,
        128
      ],
      "parameters": {
        "title": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Title', ``, 'string') }}",
        "options": {},
        "resource": "databasePage",
        "databaseId": {
          "__rl": true,
          "mode": "list",
          "value": "22c1b7ff-072a-807a-b0c7-cb5733cb7997",
          "cachedResultName": "Tasks"
        },
        "propertiesUi": {
          "propertyValues": [
            {
              "key": "Do Date|date",
              "date": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('propertyValues0_Date', ``, 'string') }}",
              "timezone": "America/New_York"
            }
          ]
        }
      },
      "credentials": {
        "notionApi": {
          "id": "nC8XWBtNRIPtVuXV",
          "name": "Notion account"
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "fa869e10-c357-4427-960f-0b7accdab483",
      "name": "テキストメッセージの処理",
      "type": "n8n-nodes-base.code",
      "position": [
        560,
        -80
      ],
      "parameters": {
        "jsCode": "return [{ json: { text: $input.first().json.message.text }}]\n"
      },
      "typeVersion": 2
    },
    {
      "id": "8cec9f54-5dab-430d-a2bd-84c5a85ed88a",
      "name": "リクエストの解釈",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        864,
        -80
      ],
      "parameters": {
        "modelId": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-3.5-turbo",
          "cachedResultName": "GPT-3.5-TURBO"
        },
        "options": {},
        "messages": {
          "values": [
            {
              "role": "system",
              "content": "=You are a friendly helpful assistant!\n\nToday’s date is: {{ (new Date()).toISOString() }}\n\nThe incoming messages you receive will typically be requests to add new Tasks to a Notion Database. I will probably preface these messages with something like \"remember to\" (or \"don't forget\") which basically all mean to create a new task. Use the Notion tool to create those new tasks.  Some tasks will simply be a title while others may also include a Do Date.  Be sure to set the Do Date field if provided in the original message.\n\nWhenever you do successfully create a new task, please respond with a simple confirmation message. Make the message clever/funny and feel free to include a random or appropriate emoji.  Remember you are only confirming that you've added the task/event, the context of your response doesn't necessarily need to have anything to do with the actual item itself."
            },
            {
              "content": "={{ $json.text }}"
            }
          ]
        }
      },
      "credentials": {
        "openAiApi": {
          "id": "NPgH1qw6QE8eTcZq",
          "name": "OpenAi account 3"
        }
      },
      "typeVersion": 1.8
    },
    {
      "id": "7d031162-e51e-4a92-8245-0796994a5e72",
      "name": "付箋",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -448,
        -240
      ],
      "parameters": {
        "color": 5,
        "width": 432,
        "height": 400,
        "content": "## Telegram Add Notion Tasks Workflow\n\nThis workflow will accept incoming messages to your Telegram bot and will decipher them to add a new task to your Notion Tasks database.  You can send the message using plain text or voice recording.  The content of the message is determined by ChatGPT along with the do date and everything added to Notion.\n\n- Configure Telegram in the first step and last steps (your chatId)\n- The system prompt for ChatGPT should be sufficient as is but feel free to adjust slightly to your preferences.\n- Make sure the timezone set in the Notion Task creation step matches the timezone in your workflow settings."
      },
      "typeVersion": 1
    },
    {
      "id": "92a5115b-013e-42fc-ba48-59ba44cb1152",
      "name": "付箋1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        752,
        96
      ],
      "parameters": {
        "width": 384,
        "height": 192,
        "content": "Make sure to adjust the timezone\nto your preferred setting."
      },
      "typeVersion": 1
    },
    {
      "id": "d277326d-1006-4e3f-8f13-5daba98bc6b4",
      "name": "付箋2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        848,
        -176
      ],
      "parameters": {
        "width": 304,
        "height": 224,
        "content": "**Optional:** Adjust the system prompt here with any specific instructions you deem necessary."
      },
      "typeVersion": 1
    }
  ],
  "active": true,
  "pinData": {},
  "settings": {
    "callerPolicy": "workflowsFromSameOwner",
    "executionOrder": "v1",
    "executionTimeout": -1
  },
  "versionId": "318e6a82-00b3-4967-ba87-5a312faeba30",
  "connections": {
    "3b50fa4c-5308-44d7-b0d8-57a2d96805c4": {
      "main": [
        [
          {
            "node": "485a384d-551b-4aae-a7ca-b7846cc1daa9",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "8cec9f54-5dab-430d-a2bd-84c5a85ed88a": {
      "main": [
        [
          {
            "node": "bf9db602-fbdc-4a28-8a58-35a34842e69b",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "9ff44832-b7e2-46b1-9475-0b114356a1ff": {
      "main": [
        [
          {
            "node": "a4dc46b9-7db8-4217-b200-78be740e0ebc",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "fa869e10-c357-4427-960f-0b7accdab483": {
      "main": [
        [
          {
            "node": "8cec9f54-5dab-430d-a2bd-84c5a85ed88a",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "bf9db602-fbdc-4a28-8a58-35a34842e69b": {
      "main": [
        []
      ]
    },
    "485a384d-551b-4aae-a7ca-b7846cc1daa9": {
      "main": [
        [
          {
            "node": "9ff44832-b7e2-46b1-9475-0b114356a1ff",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "fa869e10-c357-4427-960f-0b7accdab483",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "a4dc46b9-7db8-4217-b200-78be740e0ebc": {
      "main": [
        [
          {
            "node": "8cec9f54-5dab-430d-a2bd-84c5a85ed88a",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "b241e830-b313-4c5c-9cd2-af6e2906575a": {
      "ai_tool": [
        [
          {
            "node": "8cec9f54-5dab-430d-a2bd-84c5a85ed88a",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    }
  }
}
よくある質問

このワークフローの使い方は?

上記のJSON設定コードをコピーし、n8nインスタンスで新しいワークフローを作成して「JSONからインポート」を選択、設定を貼り付けて認証情報を必要に応じて変更してください。

このワークフローはどんな場面に適していますか?

中級 - 個人の生産性, AI要約

有料ですか?

このワークフローは完全無料です。ただし、ワークフローで使用するサードパーティサービス(OpenAI APIなど)は別途料金が発生する場合があります。

関連ワークフロー

Apollo、GPT-4、Telegramを活用したAI駆動のリード生成からデータベースへの出力
AIベースのリード生成:Apollo、GPT-4、Telegramを使用してデータベースに出力
Set
Code
Limit
+
Set
Code
Limit
26 ノードPaul
リード獲得
🎧 IT音声サポート自動化ロボット – Telegram音声メッセージをJIRAチケットに変換(OpenAI Whisperを使用)
Telegramの音声メッセージをWhisperとGPT-4.1 Miniを使用してJIRAチケットへの自動変換
If
Set
Code
+
If
Set
Code
25 ノードTrung Tran
チケット管理
Googleテーブル経由Telegramでの収支追跡の自動化
Telegram を使って Google スプレッドシートで収支追跡を自動化
Code
Switch
Telegram
+
Code
Switch
Telegram
31 ノードFahmi Oktafian
個人の生産性
Telegramチャンネルへの投稿反応をボットで自動化
Telegramチャンネルに対する機械间轮换とGPT-5-miniによる投稿反応の自動化
Code
Wait
Limit
+
Code
Wait
Limit
18 ノードCj Elijah
ソーシャルメディア
Gemini、音声・画像生成を使ってマルチモーダルTelegram AIアシスタントを構築
Gemini、音声・画像生成を使ってマルチモーダルTelegramAIアシスタントを構築
If
Set
Code
+
If
Set
Code
95 ノードIniyavan JC
個人の生産性
Telegramから会議記録を自動のにAirtable、Slack、Gmailへ送信
GPT-4.1を使ってTelegramメッセージから会議記録を作成し、Airtable、Slack、Gmailへ送信する
If
Code
Wait
+
If
Code
Wait
29 ノードBaptiste Fort
AI要約
ワークフロー情報
難易度
中級
ノード数11
カテゴリー2
ノードタイプ7
難易度説明

経験者向け、6-15ノードの中程度の複雑さのワークフロー

作成者
Jason Krol

Jason Krol

@shorttompkins

Senior Engineering Manager with over 20 years of professional experience. While I'm not getting paid to code during the day, I still find time at night to mess around and have fun. Lately I've been really enjoying my time spent learning new automation and AI tools!

外部リンク
n8n.ioで表示

このワークフローを共有

カテゴリー

カテゴリー: 34