{
  "name": "Automate multi-website Google Analytics reports with GPT processing to email & Slack",
  "nodes": [
    {
      "id": "a6456f4d-1a1a-4405-9a75-6508ecf5fad6",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -400,
        2000
      ]
    },
    {
      "id": "099121e2-800f-4247-9b27-dadf057c0866",
      "name": "Merge",
      "type": "n8n-nodes-base.merge",
      "position": [
        784,
        1904
      ]
    },
    {
      "id": "49041111-b6b1-469d-a001-43f4c7164894",
      "name": "Simple Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        1184,
        2528
      ]
    },
    {
      "id": "fa4b812c-5819-4e48-b08e-de5f62b7fd28",
      "name": "Aggregate",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        1296,
        2000
      ]
    },
    {
      "id": "d46c53e9-699f-4270-8975-f9c657a86375",
      "name": "yoursite.com",
      "type": "n8n-nodes-base.googleAnalytics",
      "position": [
        176,
        1376
      ]
    },
    {
      "id": "1ec7b8f3-31c7-454e-a12d-8b39d2306183",
      "name": "yoursite.com 2",
      "type": "n8n-nodes-base.googleAnalytics",
      "position": [
        176,
        1552
      ]
    },
    {
      "id": "175bf9c5-1f66-4150-a831-e40cba02cb43",
      "name": "yoursite.com 3",
      "type": "n8n-nodes-base.googleAnalytics",
      "position": [
        176,
        1728
      ]
    },
    {
      "id": "759436af-82ed-4d46-a95f-e724a8aadfd5",
      "name": "yoursite.com 4",
      "type": "n8n-nodes-base.googleAnalytics",
      "position": [
        176,
        1904
      ]
    },
    {
      "id": "fc586a45-cd95-44e7-bb34-352905395eb8",
      "name": "yoursite.com 5",
      "type": "n8n-nodes-base.googleAnalytics",
      "position": [
        176,
        2080
      ]
    },
    {
      "id": "c27d01a5-f032-4ef6-a0ba-f59c92b4689f",
      "name": "yoursite.com 6",
      "type": "n8n-nodes-base.googleAnalytics",
      "position": [
        176,
        2256
      ]
    },
    {
      "id": "fc079ee5-c993-451a-87a8-bd39092f1c48",
      "name": "yoursite.com 7",
      "type": "n8n-nodes-base.googleAnalytics",
      "position": [
        176,
        2432
      ]
    },
    {
      "id": "d5186b82-b7d5-401e-868c-3453c79a437d",
      "name": "yoursite.com 8",
      "type": "n8n-nodes-base.googleAnalytics",
      "position": [
        176,
        2608
      ]
    },
    {
      "id": "e59d7690-9d59-42a3-8541-35a074fd0f14",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2464,
        1264
      ],
      "parameters": {
        "width": 348,
        "height": 684,
        "content": "### 🟡 ALTERNATIVES (send report)"
      }
    },
    {
      "id": "fb80cb9c-3e0a-4f7e-bba8-b6c7eca48f2b",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -528,
        1264
      ],
      "parameters": {
        "width": 384,
        "height": 1552,
        "content": "# Daily trigger\n\n- Daily trigger to be set according to your preferences."
      }
    },
    {
      "id": "225804a7-2415-43e2-b763-31748fc32c59",
      "name": "Report maker agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1248,
        2240
      ]
    },
    {
      "id": "e7db9fc7-9558-46b0-8a2f-c81fc8c03911",
      "name": "GPT 4.1 nano",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1440,
        2528
      ]
    },
    {
      "id": "e859a909-66e0-4884-aa98-e16d946987e6",
      "name": "Send report by email (Gmail)",
      "type": "n8n-nodes-base.gmail",
      "position": [
        2592,
        1552
      ]
    },
    {
      "id": "d8cc8683-8321-4a12-9f1c-1ee57cdc3623",
      "name": "Send report by email (outlook)",
      "type": "n8n-nodes-base.microsoftOutlook",
      "position": [
        2592,
        1760
      ]
    },
    {
      "id": "06d81309-9243-4041-93be-022dbaaadeca",
      "name": "Send report by email (SMTP)",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        1808,
        1808
      ]
    },
    {
      "id": "f879525d-2a20-4b66-b93a-f7b73ab61893",
      "name": "Send notification process complete on Slack",
      "type": "n8n-nodes-base.slack",
      "position": [
        1824,
        2128
      ]
    },
    {
      "id": "c62fadb2-e36e-48ce-8257-73833663b6bd",
      "name": "Send notification process complete on Telegram",
      "type": "n8n-nodes-base.telegram",
      "position": [
        2592,
        1360
      ]
    },
    {
      "id": "fdb1b330-ebef-460e-be4f-7138f5490662",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2080,
        1264
      ],
      "parameters": {
        "width": 348,
        "height": 684,
        "content": "### 🟡 ALTERNATIVES (notifications if error)"
      }
    },
    {
      "id": "4a27e505-f46f-4707-a7cd-bd384116a2a1",
      "name": "Send email for ERROR in credentials (SMTP)",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        1040,
        1424
      ]
    },
    {
      "id": "80461d5f-57e6-4598-9395-5f71e566c4df",
      "name": "Send email for ERROR in credentials (Outlook)",
      "type": "n8n-nodes-base.microsoftOutlook",
      "position": [
        2208,
        1760
      ]
    },
    {
      "id": "06584e3f-140b-44bc-81a2-c5b5bb77d0b4",
      "name": "Send email for ERROR in credentials (Gmail)",
      "type": "n8n-nodes-base.gmail",
      "position": [
        2208,
        1552
      ]
    },
    {
      "id": "b9ea4358-d630-4b02-a440-15cfcb5cae84",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -112,
        1264
      ],
      "parameters": {
        "width": 672,
        "height": 1552,
        "content": "# Google Analytics \"get report\" nodes"
      }
    },
    {
      "id": "8a50072e-1da9-49f6-b1c8-0b7bdfd4c062",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        592,
        1264
      ],
      "parameters": {
        "width": 1072,
        "height": 464,
        "content": "# Notifications if error"
      }
    },
    {
      "id": "484a45a1-9da9-4932-bed0-54ef8c33405e",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        592,
        1760
      ],
      "parameters": {
        "width": 448,
        "height": 1056,
        "content": "# Merge report data"
      }
    },
    {
      "id": "ade1a5f2-b15f-4ade-a598-08bf1de177f2",
      "name": "Sticky Note9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1072,
        1760
      ],
      "parameters": {
        "width": 592,
        "height": 1056,
        "content": "# Report creation"
      }
    },
    {
      "id": "4b11a67e-853b-4ae1-84aa-c64f3691d1a4",
      "name": "Sticky Note10",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1696,
        1264
      ],
      "parameters": {
        "width": 352,
        "height": 1552,
        "content": "# Send report"
      }
    },
    {
      "id": "ae6f4327-a62e-4448-8796-0f484666465d",
      "name": "Send Telegram notification for ERROR in credentials",
      "type": "n8n-nodes-base.telegram",
      "position": [
        2208,
        1360
      ]
    },
    {
      "id": "0e5aa3b9-26d0-45d1-af49-242414ea7462",
      "name": "Send Slack notification for ERROR in credentials",
      "type": "n8n-nodes-base.slack",
      "position": [
        1344,
        1424
      ]
    },
    {
      "id": "216d6ef6-17e0-4c48-9051-1121d5b97053",
      "name": "Sticky Note12",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1280,
        1184
      ],
      "parameters": {
        "width": 720,
        "height": 1472,
        "content": "\n## 🟡 SETUP\n\nSetup:\nBefore importing and running this workflow, ensure you have the following prerequisites in place:\n\n\n### ► Google Analytics API Setup:\n\n- Go to the Google Cloud Console (https://con"
      }
    },
    {
      "id": "05828721-b295-43cb-b5ed-9e716a4b8812",
      "name": "Sticky Note13",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2032,
        1184
      ],
      "parameters": {
        "width": 720,
        "height": null,
        "content": "# ⚠️ INSTRUCTIONS"
      }
    },
    {
      "id": "4f1f2ac6-9707-4187-b382-6ead0e1c8e99",
      "name": "Sticky Note14",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2032,
        1376
      ],
      "parameters": {
        "width": 720,
        "height": 624,
        "content": "## 🟡 DESCRIPTION\n\nThis n8n workflow automates the daily generation of comprehensive analytics reports from multiple websites, processes them using OpenAI's powerful language models, and then delivers "
      }
    },
    {
      "id": "cd918f3b-c100-403b-87d9-7f3a694ebd4b",
      "name": "Sticky Note15",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1280,
        2688
      ],
      "parameters": {
        "width": 720,
        "height": 208,
        "content": "## 🟡 Usage\n\nOnce you have configured the credentials, you can customize the workflow to fit your specific needs, including leveraging various alternative nodes for sending notifications and reports. T"
      }
    },
    {
      "id": "023a77de-1acd-454a-a679-a565de813812",
      "name": "Check if error",
      "type": "n8n-nodes-base.if",
      "position": [
        736,
        1504
      ]
    },
    {
      "id": "c8ea2fbe-e548-459a-b58f-5f7c8d7216f9",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -128,
        992
      ],
      "parameters": {
        "width": 1712,
        "height": 112,
        "content": "# 📊 DAILY MULTI-WEBSITE ANALYTICS REPORTS WITH OPEN AI PROCESSING TO EMAIL AND SLACK"
      }
    }
  ],
  "connections": {
    "Merge": {
      "main": [
        [
          {
            "node": "Aggregate",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate": {
      "main": [
        [
          {
            "node": "Report maker agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "GPT 4.1 nano": {
      "ai_languageModel": [
        [
          {
            "node": "Report maker agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "yoursite.com": {
      "main": [
        [
          {
            "node": "Check if error",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "Report maker agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Check if error": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send email for ERROR in credentials (SMTP)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "yoursite.com 2": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "yoursite.com 3": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "yoursite.com 4": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 3
          }
        ]
      ]
    },
    "yoursite.com 5": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 4
          }
        ]
      ]
    },
    "yoursite.com 6": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 5
          }
        ]
      ]
    },
    "yoursite.com 7": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 6
          }
        ]
      ]
    },
    "yoursite.com 8": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 7
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "yoursite.com",
            "type": "main",
            "index": 0
          },
          {
            "node": "yoursite.com 2",
            "type": "main",
            "index": 0
          },
          {
            "node": "yoursite.com 3",
            "type": "main",
            "index": 0
          },
          {
            "node": "yoursite.com 4",
            "type": "main",
            "index": 0
          },
          {
            "node": "yoursite.com 5",
            "type": "main",
            "index": 0
          },
          {
            "node": "yoursite.com 6",
            "type": "main",
            "index": 0
          },
          {
            "node": "yoursite.com 7",
            "type": "main",
            "index": 0
          },
          {
            "node": "yoursite.com 8",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Report maker agent": {
      "main": [
        [
          {
            "node": "Send report by email (SMTP)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send report by email (SMTP)": {
      "main": [
        [
          {
            "node": "Send notification process complete on Slack",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send email for ERROR in credentials (SMTP)": {
      "main": [
        [
          {
            "node": "Send Slack notification for ERROR in credentials",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}