{
  "name": "Morning Agenda Starter",
  "nodes": [
    {
      "id": "1",
      "name": "Every Morning",
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.2,
      "position": [
        0,
        0
      ],
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "days",
              "daysInterval": 1,
              "triggerAtHour": 7,
              "triggerAtMinute": 0
            }
          ]
        }
      }
    },
    {
      "id": "2",
      "name": "Today's Events",
      "type": "n8n-nodes-base.googleCalendar",
      "typeVersion": 1.3,
      "position": [
        300,
        0
      ],
      "parameters": {
        "resource": "event",
        "operation": "getAll",
        "calendar": {
          "__rl": true,
          "mode": "list",
          "value": ""
        },
        "returnAll": true,
        "timeMin": "={{ $today }}",
        "timeMax": "={{ $today.plus({ days: 1 }) }}",
        "options": {
          "recurringEventHandling": "expand",
          "orderBy": "startTime"
        }
      }
    },
    {
      "id": "3",
      "name": "One List",
      "type": "n8n-nodes-base.aggregate",
      "typeVersion": 1,
      "position": [
        600,
        0
      ],
      "parameters": {
        "aggregate": "aggregateAllItemData",
        "destinationFieldName": "data",
        "options": {}
      }
    },
    {
      "id": "4",
      "name": "Send Agenda",
      "type": "n8n-nodes-base.telegram",
      "typeVersion": 1.2,
      "position": [
        900,
        0
      ],
      "parameters": {
        "chatId": "",
        "text": "={{ 'Aaj ka schedule:\\n' + $json.data.map(e => (e.start.dateTime ? DateTime.fromISO(e.start.dateTime).toFormat('HH:mm') : 'Poora din') + '  ' + e.summary).join('\\n') }}",
        "additionalFields": {
          "appendAttribution": false
        }
      }
    }
  ],
  "connections": {
    "Every Morning": {
      "main": [
        [
          {
            "node": "Today's Events",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Today's Events": {
      "main": [
        [
          {
            "node": "One List",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "One List": {
      "main": [
        [
          {
            "node": "Send Agenda",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}