{
  "name": "Luda AI Starter Pack - Weekly Scheduled Digest",
  "nodes": [
    {
      "parameters": {
        "content": "## Scheduled Digest\n\nRuns on a clock (default: Sunday 8am) instead of an event. Pulls data from a source, compiles a short summary, and sends it to Telegram or email.\n\n**Before you activate:**\n1. Check the timezone on the Schedule Trigger node itself. n8n uses the instance's configured timezone, not automatically yours.\n2. Point 'Read Source Data' at whatever you're summarizing. This example reads a Google Sheet, but swap the node for any source (database, API, another app) depending on what you're pulling from.\n3. Edit 'Build Summary' to decide what's actually worth including. A digest with everything in it is as useless as no digest.\n4. Set up a Telegram bot (via @BotFather) and get your chat ID, or swap in the Gmail/Email node instead.\n\nRun it manually once before you activate the schedule, to confirm the summary reads the way you want.",
        "height": 380,
        "width": 400
      },
      "id": "sticky-1",
      "name": "Setup Notes",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [-400, -200]
    },
    {
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "weeks",
              "triggerAtDay": [0],
              "triggerAtHour": 8,
              "triggerAtMinute": 0
            }
          ]
        }
      },
      "id": "node-schedule",
      "name": "Every Sunday 8am",
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.3,
      "position": [-160, 0]
    },
    {
      "parameters": {
        "resource": "sheet",
        "operation": "read",
        "documentId": {
          "__rl": true,
          "mode": "id",
          "value": "",
          "cachedResultName": "Your source sheet"
        },
        "sheetName": {
          "__rl": true,
          "mode": "name",
          "value": "Sheet1"
        },
        "options": {}
      },
      "id": "node-sheets",
      "name": "Read Source Data",
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [60, 0],
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "REPLACE_WITH_YOUR_CREDENTIAL_ID",
          "name": "Your Google Sheets account"
        }
      }
    },
    {
      "parameters": {
        "mode": "manual",
        "assignments": {
          "assignments": [
            {
              "id": "1",
              "name": "summary",
              "value": "=Weekly summary: {{ $items().length }} new items this week.\n\nReplace this with whatever's actually worth reporting on. Pick the few things you'd act on and leave the rest out.",
              "type": "string"
            }
          ]
        },
        "includeOtherFields": false
      },
      "id": "node-set",
      "name": "Build Summary",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [280, 0]
    },
    {
      "parameters": {
        "resource": "message",
        "operation": "sendMessage",
        "chatId": "YOUR_CHAT_ID",
        "text": "={{ $json.summary }}",
        "additionalFields": {
          "parse_mode": "HTML"
        }
      },
      "id": "node-telegram",
      "name": "Send to Telegram",
      "type": "n8n-nodes-base.telegram",
      "typeVersion": 1.2,
      "position": [500, 0],
      "credentials": {
        "telegramApi": {
          "id": "REPLACE_WITH_YOUR_CREDENTIAL_ID",
          "name": "Your Telegram bot"
        }
      }
    }
  ],
  "connections": {
    "Every Sunday 8am": {
      "main": [
        [
          {
            "node": "Read Source Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Read Source Data": {
      "main": [
        [
          {
            "node": "Build Summary",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Build Summary": {
      "main": [
        [
          {
            "node": "Send to Telegram",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  }
}
