{
  "name": "AI-powered productivity coach using Google Calendar, Todoist, Slack and Sheets",
  "nodes": [
    {
      "id": "9363e48d-fead-4841-b97d-b02164f19fa4",
      "name": "Schedule Daily Execution",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        6064,
        -336
      ]
    },
    {
      "id": "47c2bc93-fd2b-4cae-aa2e-9d100caa0112",
      "name": "Get Current Date",
      "type": "n8n-nodes-base.dateTime",
      "position": [
        6368,
        -336
      ]
    },
    {
      "id": "52012b69-f01f-4fa7-9583-fc176841601e",
      "name": "Fetch Calendar Events",
      "type": "n8n-nodes-base.googleCalendar",
      "position": [
        6656,
        -336
      ]
    },
    {
      "id": "6f75190d-8789-44b5-be28-3ca0b88e92ef",
      "name": "Fetch Todoist Tasks",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        6960,
        -336
      ]
    },
    {
      "id": "41b6ff7c-49a3-41f9-85e2-c78f330134d5",
      "name": "Fetch Slack Messages",
      "type": "n8n-nodes-base.slack",
      "position": [
        7264,
        -336
      ]
    },
    {
      "id": "b8e53d8a-fa16-42b0-8ab8-a00749f75899",
      "name": "Aggregate Data",
      "type": "n8n-nodes-base.code",
      "position": [
        7568,
        -336
      ]
    },
    {
      "id": "7d70268d-d7f9-47d3-85b2-b450b9d5a19b",
      "name": "AI Analysis - Productivity Insights",
      "type": "n8n-nodes-base.openAi",
      "position": [
        7856,
        -336
      ]
    },
    {
      "id": "884dfba0-6d58-4126-9e26-e28877ebf1a0",
      "name": "Log Daily Metrics",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        8160,
        -336
      ]
    },
    {
      "id": "8c1960fd-5a0e-4b03-9c9c-496156444012",
      "name": "Generate Daily Summary",
      "type": "n8n-nodes-base.openAi",
      "position": [
        8448,
        -336
      ]
    },
    {
      "id": "eb47be1a-85e9-4412-a631-a7c3d1a3076f",
      "name": "Send Daily Summary to Slack",
      "type": "n8n-nodes-base.slack",
      "position": [
        8736,
        -336
      ]
    },
    {
      "id": "537a65e8-b939-4ce0-9480-3d28a5c75972",
      "name": "Check if Friday",
      "type": "n8n-nodes-base.if",
      "position": [
        9040,
        -336
      ]
    },
    {
      "id": "107f8904-a0c8-46e3-bd3b-192670987538",
      "name": "Fetch Last 7 Days Data",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        9360,
        -336
      ]
    },
    {
      "id": "b843fbb8-af28-4ac4-8f04-fd8f8a57a68d",
      "name": "Calculate Weekly Stats",
      "type": "n8n-nodes-base.code",
      "position": [
        9664,
        -336
      ]
    },
    {
      "id": "ce10bde8-1070-489e-b92d-a8cd7cc220fc",
      "name": "Generate Weekly Report",
      "type": "n8n-nodes-base.openAi",
      "position": [
        9968,
        -336
      ]
    },
    {
      "id": "7ae05ba9-f312-4457-b2b7-af6d2a7fb2c0",
      "name": "Send Weekly Report to Slack",
      "type": "n8n-nodes-base.slack",
      "position": [
        10256,
        -336
      ]
    },
    {
      "id": "118f11c4-8fd6-4a4d-a497-e35c00211255",
      "name": "Main Description",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        5136,
        -1104
      ],
      "parameters": {
        "width": 500,
        "height": 586,
        "content": "## 🤖 Productivity Analyst AI\nThis workflow acts as a productivity coach, tracking your work habits and using AI to provide daily and weekly insights.\n\n### ⚙️ How it works\n1. **Collects Data**: Fetches"
      }
    },
    {
      "id": "dc0641c6-1a97-4b26-9ad2-f95007a62cb4",
      "name": "Step 1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        6000,
        -672
      ],
      "parameters": {
        "width": 1448,
        "height": 620,
        "content": "## 1. Trigger & Data Collection\nRuns every weekday at 8 AM. \nFetches data from Calendar, Todoist, and Slack to build a productivity snapshot."
      }
    },
    {
      "id": "73421f38-e995-49f2-a9ac-91029025eaac",
      "name": "Step 2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        7504,
        -672
      ],
      "parameters": {
        "width": 548,
        "height": 620,
        "content": "## 2. Aggregation & AI Analysis\nConsolidates data points and uses OpenAI to analyze patterns and generate actionable insights."
      }
    },
    {
      "id": "c2d8c459-ba65-42d6-94be-2c4b82ff8953",
      "name": "Step 3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        8096,
        -672
      ],
      "parameters": {
        "width": 844,
        "height": 620,
        "content": "## 3. Daily Logging & Reporting\nSaves metrics to Google Sheets for historical tracking and sends today's summary to Slack."
      }
    },
    {
      "id": "d9967c1c-44e0-4e4a-88c2-851207d0dec0",
      "name": "Step 4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        8976,
        -672
      ],
      "parameters": {
        "width": 1484,
        "height": 556,
        "content": "## 4. Weekly Strategic Review\nChecks if it's Friday. If so, fetches the last 7 days of data to generate a broader weekly report."
      }
    }
  ],
  "connections": {
    "Aggregate Data": {
      "main": [
        [
          {
            "node": "AI Analysis - Productivity Insights",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check if Friday": {
      "main": [
        [
          {
            "node": "Fetch Last 7 Days Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Current Date": {
      "main": [
        [
          {
            "node": "Fetch Calendar Events",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Log Daily Metrics": {
      "main": [
        [
          {
            "node": "Generate Daily Summary",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Todoist Tasks": {
      "main": [
        [
          {
            "node": "Fetch Slack Messages",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Slack Messages": {
      "main": [
        [
          {
            "node": "Aggregate Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Calendar Events": {
      "main": [
        [
          {
            "node": "Fetch Todoist Tasks",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Calculate Weekly Stats": {
      "main": [
        [
          {
            "node": "Generate Weekly Report",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Last 7 Days Data": {
      "main": [
        [
          {
            "node": "Calculate Weekly Stats",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Daily Summary": {
      "main": [
        [
          {
            "node": "Send Daily Summary to Slack",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Weekly Report": {
      "main": [
        [
          {
            "node": "Send Weekly Report to Slack",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Daily Execution": {
      "main": [
        [
          {
            "node": "Get Current Date",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Daily Summary to Slack": {
      "main": [
        [
          {
            "node": "Check if Friday",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Analysis - Productivity Insights": {
      "main": [
        [
          {
            "node": "Log Daily Metrics",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}