{"name": "AI Daily Planner", "nodes": [{"id": "n1", "name": "Every Morning 7AM", "type": "n8n-nodes-base.scheduleTrigger", "typeVersion": 1.3, "position": [0, 0], "parameters": {"rule": {"interval": [{"triggerAtHour": 7, "mode": "everyWeek", "triggerAtDay": 1}]}}}, {"id": "n2", "name": "Get Today Tasks", "type": "n8n-nodes-base.httpRequest", "typeVersion": 4.4, "position": [224, 0], "parameters": {"method": "GET", "url": "https://YOUR_PROJECT.supabase.co/rest/v1/tasks?select=*&due_date=eq.today&order=priority.desc&limit=10", "sendHeaders": true, "headerParameters": {"parameters": [{"name": "apikey", "value": "YOUR_SUPABASE_ANON_KEY"}, {"name": "Authorization", "value": "Bearer YOUR_SUPABASE_ANON_KEY"}]}}}, {"id": "n3", "name": "Generate Daily Plan", "type": "n8n-nodes-base.httpRequest", "typeVersion": 4.4, "position": [448, 0], "parameters": {"method": "POST", "url": "https://api.anthropic.com/v1/messages", "sendHeaders": true, "headerParameters": {"parameters": [{"name": "x-api-key", "value": "YOUR_ANTHROPIC_API_KEY"}, {"name": "anthropic-version", "value": "2023-06-01"}, {"name": "content-type", "value": "application/json"}]}, "sendBody": true, "bodyParameters": {"parameters": [{"name": "model", "value": "claude-sonnet-4-6"}, {"name": "max_tokens", "value": "800"}, {"name": "messages", "value": "=[{\"role\":\"user\",\"content\":\"Return ONLY JSON {morning_block:string[], afternoon_block:string[], quick_wins:string[], deep_work_task:string, energy_tip:string, daily_focus:string}. Tasks: {{ JSON.stringify($json) }}. Date: {{ new Date().toDateString() }}\"}]"}]}}}, {"id": "n4", "name": "Send Daily Plan", "type": "n8n-nodes-base.gmail", "typeVersion": 2.2, "position": [672, 0], "parameters": {"resource": "message", "operation": "send", "sendTo": "YOUR_EMAIL@company.com", "subject": "=Your AI Daily Plan \u2014 {{ new Date().toLocaleDateString() }}", "emailType": "html", "message": "=<h2>Today's Focus</h2><p>{{ JSON.parse($json.content[0].text).daily_focus }}</p><h2>Morning</h2><ul>{{ JSON.parse($json.content[0].text).morning_block.map(t=>'<li>'+t+'</li>').join('') }}</ul>", "options": {}}, "credentials": {"gmailOAuth2": {"id": "YOUR_GMAIL_CREDENTIAL_ID", "name": "Gmail account"}}}], "connections": {"Every Morning 7AM": {"main": [[{"node": "Get Today Tasks", "type": "main", "index": 0}]]}, "Get Today Tasks": {"main": [[{"node": "Generate Daily Plan", "type": "main", "index": 0}]]}, "Generate Daily Plan": {"main": [[{"node": "Send Daily Plan", "type": "main", "index": 0}]]}}, "settings": {"executionOrder": "v1"}}