{
  "name": "Generate weekly AI business digest from Google Sheets with GPT-4o and send to Slack and email",
  "nodes": [
    {
      "id": "b2000001-0000-0000-0000-000000000001",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -480,
        -340
      ],
      "parameters": {
        "width": 540,
        "height": 480,
        "content": "## AI Weekly Business Digest → Slack & Email\n\nAutomatically generate a weekly performance report from your Google Sheets data and deliver it to Slack and email.\n\n### How it works\n1. **Schedule:** Trig"
      }
    },
    {
      "id": "b2000001-0000-0000-0000-000000000002",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        40,
        60
      ],
      "parameters": {
        "width": 460,
        "height": 200,
        "content": "## 1. Schedule & Config\nTriggers every Monday at 8am. The config node holds your Sheet ID, Slack channel, and email recipients."
      }
    },
    {
      "id": "b2000001-0000-0000-0000-000000000003",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        540,
        60
      ],
      "parameters": {
        "width": 460,
        "height": 200,
        "content": "## 2. Data Retrieval & Processing\nPulls the last 14 days of metrics from Sheets, then calculates this-week vs. last-week comparisons."
      }
    },
    {
      "id": "b2000001-0000-0000-0000-000000000004",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1100,
        60
      ],
      "parameters": {
        "width": 620,
        "height": 200,
        "content": "## 3. AI Analysis & Delivery\nOpenAI generates a narrative digest with trends, wins, concerns, and priorities. Delivered to Slack and email simultaneously."
      }
    },
    {
      "id": "b2000001-1000-0000-0000-000000000001",
      "name": "Trigger every Monday at 8am",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        80,
        300
      ]
    },
    {
      "id": "b2000001-1000-0000-0000-000000000002",
      "name": "Set report config variables",
      "type": "n8n-nodes-base.set",
      "position": [
        300,
        300
      ]
    },
    {
      "id": "b2000001-1000-0000-0000-000000000003",
      "name": "Fetch metrics from Google Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        540,
        300
      ]
    },
    {
      "id": "b2000001-1000-0000-0000-000000000004",
      "name": "Calculate weekly comparisons",
      "type": "n8n-nodes-base.code",
      "position": [
        780,
        300
      ]
    },
    {
      "id": "b2000001-1000-0000-0000-000000000005",
      "name": "Generate AI performance digest",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        1020,
        300
      ]
    },
    {
      "id": "b2000001-1000-0000-0000-000000000006",
      "name": "Format digest for Slack and email",
      "type": "n8n-nodes-base.code",
      "position": [
        1260,
        300
      ]
    },
    {
      "id": "b2000001-1000-0000-0000-000000000007",
      "name": "Post digest to Slack channel",
      "type": "n8n-nodes-base.slack",
      "position": [
        1520,
        200
      ]
    },
    {
      "id": "b2000001-1000-0000-0000-000000000008",
      "name": "Email digest to team",
      "type": "n8n-nodes-base.gmail",
      "position": [
        1520,
        420
      ]
    }
  ],
  "connections": {
    "Set report config variables": {
      "main": [
        [
          {
            "node": "Fetch metrics from Google Sheets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Trigger every Monday at 8am": {
      "main": [
        [
          {
            "node": "Set report config variables",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Calculate weekly comparisons": {
      "main": [
        [
          {
            "node": "Generate AI performance digest",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate AI performance digest": {
      "main": [
        [
          {
            "node": "Format digest for Slack and email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch metrics from Google Sheets": {
      "main": [
        [
          {
            "node": "Calculate weekly comparisons",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format digest for Slack and email": {
      "main": [
        [
          {
            "node": "Post digest to Slack channel",
            "type": "main",
            "index": 0
          },
          {
            "node": "Email digest to team",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}