Todoist 内で毎日の To Do リストを自動作成
中級
これはOther分野の自動化ワークフローで、13個のノードを含みます。主にIf, Code, Filter, Todoist, ScheduleTriggerなどのノードを使用。 Todoist で毎日の ToDo リストを自動作成
前提条件
- •特別な前提条件なし、インポートしてすぐに使用可能
カテゴリー
ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
"nodes": [
{
"id": "d49ee203-5bd1-45c0-859d-f1b248bfdf71",
"name": "付箋3",
"type": "n8n-nodes-base.stickyNote",
"position": [
280,
40
],
"parameters": {
"color": 5,
"width": 424.4907862645661,
"height": 154.7766688696994,
"content": "### 👨🎤 Setup\n1. Add Todoist creds\n2. Create a `template` list to copy from in Todoist. Add days and due times on each task as necessary.\n3. Set the projects to copy from and to write to in each **Todoist** node"
},
"typeVersion": 1
},
{
"id": "e69dd4e2-7ff6-4613-a1c9-ac1f3da37955",
"name": "テンプレートプロジェクトから全タスクを取得",
"type": "n8n-nodes-base.todoist",
"position": [
860,
420
],
"parameters": {
"filters": {
"projectId": "2299363018"
},
"operation": "getAll",
"returnAll": true
},
"credentials": {
"todoistApi": {
"id": "1",
"name": "Todoist account"
}
},
"executeOnce": true,
"retryOnFail": true,
"typeVersion": 1
},
{
"id": "fa907d45-3822-4549-9f84-8385bb4183cc",
"name": "タスク詳細を解析",
"type": "n8n-nodes-base.code",
"position": [
1080,
420
],
"parameters": {
"mode": "runOnceForEachItem",
"jsCode": "const item = {};\n\nitem.description = $input.item.json.description;\nitem.content = $input.item.json.content;\n\nconst parts = item.description.split(';').map((v) => v.trim());\nparts.forEach((v) => {\n const tag = v.split(':');\n if (tag && tag.length === 2) {\n item[tag[0]] = tag[1].trim();\n }\n});\n\nif (item.due) {\n item.due = parseTimeString(item.due);\n}\n\nreturn item;\n\nfunction parseTimeString(timeString) {\n const regex = /^(\\d{1,2})(\\.)?(\\d{2})?([ap]m)$/i;\n const match = timeString.match(regex);\n \n if (!match) {\n throw new Error(\"Invalid time format\");\n }\n\n let hours = parseInt(match[1], 10);\n let minutes = match[3] ? parseInt(match[3], 10) : 0;\n const period = match[4].toLowerCase();\n\n if (hours === 12) {\n hours = period === 'am' ? 0 : 12;\n } else {\n hours = period === 'pm' ? hours + 12 : hours;\n }\n\n // Check if minutes are valid\n if (minutes < 0 || minutes >= 60) {\n throw new Error(\"Invalid minutes\");\n }\n\n const now = DateTime.now().set({ hour: hours, minute: minutes, second: 0, millisecond: 0 });\n return now.toUTC();\n}\n"
},
"typeVersion": 1
},
{
"id": "4989bac6-0741-4cdc-bc9c-e7800f9b3019",
"name": "付箋2",
"type": "n8n-nodes-base.stickyNote",
"position": [
1140,
600
],
"parameters": {
"color": 7,
"width": 351.4230769230764,
"height": 222.50000000000006,
"content": "### 👆 This adds due dates to tasks from description.. \n### For example in the description of a task\n`days:mon,tues; due:8am`\n### So that it will create a task every Monday and Tuesday that's due at 8am ⏰"
},
"typeVersion": 1
},
{
"id": "accc330b-1b67-4181-8735-94b0debc8d70",
"name": "今日に一致するタスクを保持",
"type": "n8n-nodes-base.filter",
"position": [
1300,
420
],
"parameters": {
"conditions": {
"string": [
{
"value1": "={{ $json.days }}",
"value2": "={{ ['sun', 'mon', 'tues', 'wed', 'thurs', 'fri', 'sat', 'sun'][new Date().getDay()] }}",
"operation": "contains"
},
{
"value1": "={{ $json.days }}",
"value2": "={{ ['sun', 'mon', 'tues', 'wed', 'thurs', 'fri', 'sat', 'sun'][new Date().getDay()] }}",
"operation": "contains"
}
]
},
"combineConditions": "OR"
},
"typeVersion": 1
},
{
"id": "dbe1fc24-1833-493b-b444-de21a4b3c3c5",
"name": "毎日5:10に",
"type": "n8n-nodes-base.scheduleTrigger",
"position": [
620,
420
],
"parameters": {
"rule": {
"interval": [
{
"triggerAtHour": 5,
"triggerAtMinute": 10
}
]
}
},
"typeVersion": 1.1
},
{
"id": "b4737822-89aa-4ca0-bd9b-c5f9a16360c0",
"name": "毎日5時に",
"type": "n8n-nodes-base.scheduleTrigger",
"position": [
400,
220
],
"parameters": {
"rule": {
"interval": [
{
"triggerAtHour": 5,
"triggerAtMinute": 10
}
]
}
},
"typeVersion": 1.1
},
{
"id": "2a9adc4b-552b-47a9-a32c-54d8d4bfb669",
"name": "受信箱から全タスクを取得",
"type": "n8n-nodes-base.todoist",
"position": [
620,
220
],
"parameters": {
"filters": {
"projectId": "938017196"
},
"operation": "getAll",
"returnAll": true
},
"credentials": {
"todoistApi": {
"id": "1",
"name": "Todoist account"
}
},
"executeOnce": false,
"retryOnFail": true,
"typeVersion": 1,
"alwaysOutputData": true
},
{
"id": "d4794543-3002-4663-8979-360eb437fb4e",
"name": "リストが空でない場合",
"type": "n8n-nodes-base.if",
"position": [
840,
220
],
"parameters": {
"conditions": {
"string": [
{
"value1": "={{ $json[\"id\"] }}",
"operation": "isNotEmpty"
}
]
}
},
"typeVersion": 1
},
{
"id": "297fcbcb-efe3-4965-b836-34e78a3b452d",
"name": "dailyラベルがある場合",
"type": "n8n-nodes-base.if",
"position": [
1080,
220
],
"parameters": {
"conditions": {
"boolean": [
{
"value1": "={{ ($json[\"labels\"] || []).includes('daily') }}",
"value2": true
}
]
}
},
"typeVersion": 1
},
{
"id": "0365a865-f03b-4afc-a535-4e3892fc3add",
"name": "タスクを削除",
"type": "n8n-nodes-base.todoist",
"position": [
1280,
220
],
"parameters": {
"taskId": "={{ $json[\"id\"] }}",
"operation": "delete"
},
"credentials": {
"todoistApi": {
"id": "1",
"name": "Todoist account"
}
},
"retryOnFail": true,
"typeVersion": 1
},
{
"id": "b14a8ecc-ee07-4a33-ab4b-122c98694c60",
"name": "付箋",
"type": "n8n-nodes-base.stickyNote",
"position": [
1740,
440
],
"parameters": {
"color": 7,
"width": 256.14371825927645,
"height": 100,
"content": "### 👈🏽 Every new task has `daily` label that gets deleted in the other flow"
},
"typeVersion": 1
},
{
"id": "d951f461-685e-4507-b010-bce2be0e3709",
"name": "受信箱に新規タスクを作成",
"type": "n8n-nodes-base.todoist",
"position": [
1520,
420
],
"parameters": {
"labels": [
"daily"
],
"content": "={{ $json.content }}",
"options": {
"description": "={{ $json.description }}",
"dueDateTime": "={{ $json.due }}"
},
"project": {
"__rl": true,
"mode": "list",
"value": "938017196",
"cachedResultName": "Inbox"
}
},
"credentials": {
"todoistApi": {
"id": "1",
"name": "Todoist account"
}
},
"retryOnFail": true,
"typeVersion": 2,
"alwaysOutputData": false
}
],
"pinData": {},
"connections": {
"b4737822-89aa-4ca0-bd9b-c5f9a16360c0": {
"main": [
[
{
"node": "2a9adc4b-552b-47a9-a32c-54d8d4bfb669",
"type": "main",
"index": 0
}
]
]
},
"d4794543-3002-4663-8979-360eb437fb4e": {
"main": [
[
{
"node": "297fcbcb-efe3-4965-b836-34e78a3b452d",
"type": "main",
"index": 0
}
]
]
},
"fa907d45-3822-4549-9f84-8385bb4183cc": {
"main": [
[
{
"node": "accc330b-1b67-4181-8735-94b0debc8d70",
"type": "main",
"index": 0
}
]
]
},
"dbe1fc24-1833-493b-b444-de21a4b3c3c5": {
"main": [
[
{
"node": "e69dd4e2-7ff6-4613-a1c9-ac1f3da37955",
"type": "main",
"index": 0
}
]
]
},
"297fcbcb-efe3-4965-b836-34e78a3b452d": {
"main": [
[
{
"node": "0365a865-f03b-4afc-a535-4e3892fc3add",
"type": "main",
"index": 0
}
]
]
},
"2a9adc4b-552b-47a9-a32c-54d8d4bfb669": {
"main": [
[
{
"node": "d4794543-3002-4663-8979-360eb437fb4e",
"type": "main",
"index": 0
}
]
]
},
"accc330b-1b67-4181-8735-94b0debc8d70": {
"main": [
[
{
"node": "d951f461-685e-4507-b010-bce2be0e3709",
"type": "main",
"index": 0
}
]
]
},
"e69dd4e2-7ff6-4613-a1c9-ac1f3da37955": {
"main": [
[
{
"node": "fa907d45-3822-4549-9f84-8385bb4183cc",
"type": "main",
"index": 0
}
]
]
}
}
}よくある質問
このワークフローの使い方は?
上記のJSON設定コードをコピーし、n8nインスタンスで新しいワークフローを作成して「JSONからインポート」を選択、設定を貼り付けて認証情報を必要に応じて変更してください。
このワークフローはどんな場面に適していますか?
中級 - その他
有料ですか?
このワークフローは完全無料です。ただし、ワークフローで使用するサードパーティサービス(OpenAI APIなど)は別途料金が発生する場合があります。
関連ワークフロー
Gmail の受信箱メールを自動アーカイブ
Gmailの受信トレイを自動アーカイブ
Gmail
Filter
Item Lists
+
Gmail
Filter
Item Lists
10 ノードMutasem
その他
n8n ワークフリを直接 Notion データベース内に自動記録
n8n ワークフローを Notion データベースに直接自動記録
If
N8n
Set
+
If
N8n
Set
10 ノードMutasem
その他
Spotifyの最近のお気に入りの曲を自動ダウンロード
Spotify で直近のお気に入り曲を自動のにダウンロード
If
Set
Code
+
If
Set
Code
23 ノードMario
その他
n8nノードの探索(可視化リファレンスライブラリ内)
n8nノードを可視化リファレンスライブラリで探索
If
Ftp
Set
+
If
Ftp
Set
113 ノードI versus AI
その他
メールの視覚のサマリーと知識グラフインサイトをメールアドレスに生成する
メールの視覚のなサマリーと知識グラフのインサイトを生成する
If
Set
Code
+
If
Set
Code
38 ノードInfraNodus
その他
AI エージェント レストラン [テンプレート]
🤖 WhatsApp、Instagram、MessengerのAIレストランアシスタント
If
N8n
Set
+
If
N8n
Set
239 ノードAmanda Benks
その他