{
  "name": "Generate weekly document digests from Google Docs with GPT-4 and email delivery",
  "nodes": [
    {
      "id": "setup-instructions",
      "name": "Setup Instructions",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        200,
        80
      ],
      "parameters": {
        "width": 280,
        "height": 240,
        "content": "📄 **SETUP REQUIRED:**\n\n1. **Google Docs Setup:**\n   - Add document IDs in 'Get Docs' node\n   - Enable Google Drive API access\n   - Connect Google OAuth credentials\n\n2. **OpenAI API Key:**\n   - Get fro"
      }
    },
    {
      "id": "weekly-trigger",
      "name": "Weekly Monday 9AM Trigger",
      "type": "n8n-nodes-base.cron",
      "position": [
        200,
        340
      ]
    },
    {
      "id": "prepare-docs-list",
      "name": "Prepare Docs List",
      "type": "n8n-nodes-base.code",
      "position": [
        400,
        340
      ]
    },
    {
      "id": "get-doc-content",
      "name": "Get Doc Content",
      "type": "n8n-nodes-base.googleDocs",
      "position": [
        600,
        340
      ]
    },
    {
      "id": "get-doc-metadata",
      "name": "Get Doc Metadata",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        600,
        480
      ]
    },
    {
      "id": "process-doc-data",
      "name": "Process Doc Data",
      "type": "n8n-nodes-base.code",
      "position": [
        800,
        340
      ]
    },
    {
      "id": "aggregate-docs",
      "name": "Aggregate Updated Docs",
      "type": "n8n-nodes-base.code",
      "position": [
        1000,
        340
      ]
    },
    {
      "id": "generate-ai-summary",
      "name": "Generate AI Summary",
      "type": "n8n-nodes-base.openAi",
      "position": [
        1200,
        340
      ]
    },
    {
      "id": "prepare-email-content",
      "name": "Prepare Email Content",
      "type": "n8n-nodes-base.code",
      "position": [
        1400,
        340
      ]
    },
    {
      "id": "send-summary-email",
      "name": "Send Summary Email",
      "type": "n8n-nodes-base.gmail",
      "position": [
        1600,
        340
      ]
    }
  ],
  "connections": {
    "Get Doc Content": {
      "main": [
        [
          {
            "node": "Process Doc Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Doc Metadata": {
      "main": [
        [
          {
            "node": "Process Doc Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Process Doc Data": {
      "main": [
        [
          {
            "node": "Aggregate Updated Docs",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prepare Docs List": {
      "main": [
        [
          {
            "node": "Get Doc Content",
            "type": "main",
            "index": 0
          },
          {
            "node": "Get Doc Metadata",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate AI Summary": {
      "main": [
        [
          {
            "node": "Prepare Email Content",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prepare Email Content": {
      "main": [
        [
          {
            "node": "Send Summary Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate Updated Docs": {
      "main": [
        [
          {
            "node": "Generate AI Summary",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Weekly Monday 9AM Trigger": {
      "main": [
        [
          {
            "node": "Prepare Docs List",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}