{
  "name": "Prioritize Todoist tasks with OpenRouter AI and send daily summaries to Slack",
  "nodes": [
    {
      "id": "a252f8d5-ebb0-4d5e-b6e7-434a142c4723",
      "name": "Morning Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -736,
        336
      ]
    },
    {
      "id": "bbc0cc2a-f46b-4be8-a3e7-dec61cb2b94b",
      "name": "Get Todo List",
      "type": "n8n-nodes-base.todoist",
      "position": [
        -448,
        336
      ]
    },
    {
      "id": "db1b4d0b-27ed-4c32-b868-838be1136729",
      "name": "AI Task Analyzer",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -208,
        336
      ]
    },
    {
      "id": "c9461c82-696b-4823-a001-c133a72ce495",
      "name": "Task Priority Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        0,
        560
      ]
    },
    {
      "id": "0d55710c-1f94-4b5a-bc99-8f0f8a50d2e8",
      "name": "Format AI Summary",
      "type": "n8n-nodes-base.set",
      "position": [
        128,
        336
      ]
    },
    {
      "id": "bd0f7670-5d17-4f50-9bf0-05136d9e9192",
      "name": "Send to Slack",
      "type": "n8n-nodes-base.slack",
      "position": [
        416,
        336
      ]
    },
    {
      "id": "1f10a4a3-1711-4879-9be1-506caeedc1d9",
      "name": "OpenRouter Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        -256,
        544
      ]
    },
    {
      "id": "d89eb4d0-2a74-4546-b1ce-165fc18dd998",
      "name": "Sticky Note - Trigger",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -944,
        16
      ],
      "parameters": {
        "width": null,
        "height": 224,
        "content": "## 🌅 Morning Trigger\nThis workflow runs every morning at 8 AM to analyze and prioritize your daily tasks.\n\nAdjust the schedule time in the trigger node to match your preferred morning routine."
      }
    },
    {
      "id": "47df9223-34e7-4def-b82e-b5b394e022e8",
      "name": "Sticky Note - Tasks",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -528,
        16
      ],
      "parameters": {
        "width": null,
        "height": 256,
        "content": "## 📋 Task Retrieval\nFetches all incomplete tasks from your Todoist account.\n\n**Setup Required:**\n- Connect your Todoist credentials\n- You can replace this with Google Tasks, Notion, or any other task "
      }
    },
    {
      "id": "41f8e384-7262-4b9f-a4ae-766b88817449",
      "name": "Sticky Note - Delivery",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        0
      ],
      "parameters": {
        "width": null,
        "height": 320,
        "content": "## 📬 Delivery Options\nChoose how you want to receive your daily priorities:\n\n**Slack Setup:**\n- Add Slack credentials\n- Configure the channel or DM\n\n\n**Other Options:**\nYou can add nodes for:\n- Micros"
      }
    },
    {
      "id": "15974333-61fc-46ea-ab1e-7c09e149cfc1",
      "name": "Sticky Note - AI",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -560,
        560
      ],
      "parameters": {
        "width": null,
        "height": 320,
        "content": "## 🤖 AI Analysis\nThe AI Agent analyzes your tasks using GPT-4 to create intelligent prioritization.\n\n**Configuration needed:**\n- Add your OpenAI API credentials\n- Adjust the system prompt if you want "
      }
    },
    {
      "id": "004da8d2-3e67-4aab-915f-894e58ae40c5",
      "name": "Sticky Note - Format",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        144,
        656
      ],
      "parameters": {
        "width": null,
        "height": 336,
        "content": "## 📝 Message Formatting\nFormats the AI's prioritized task list into a readable message format.\n\nThe formatted output includes:\n- Date header\n- Daily summary\n- Prioritized task list with details\n- Any "
      }
    },
    {
      "id": "4dc51fee-d563-4caf-8598-3dd8f5f95439",
      "name": "Sticky Note - Template Overview",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1328,
        416
      ],
      "parameters": {
        "width": 460,
        "height": 440,
        "content": "## Template Overview (Self-hosted only)\nThis template uses a community node (LangChain) and is intended for self-hosted n8n.\n\n## How it works\n1. 8 AM trigger\n2. Fetch Todoist tasks\n3. AI prioritizatio"
      }
    }
  ],
  "connections": {
    "Get Todo List": {
      "main": [
        [
          {
            "node": "AI Task Analyzer",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Task Analyzer": {
      "main": [
        [
          {
            "node": "Format AI Summary",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format AI Summary": {
      "main": [
        [
          {
            "node": "Send to Slack",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Task Priority Parser": {
      "ai_outputParser": [
        [
          {
            "node": "AI Task Analyzer",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "OpenRouter Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Task Analyzer",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Morning Schedule Trigger": {
      "main": [
        [
          {
            "node": "Get Todo List",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}