{
  "name": "Create & send GA4 report with insights via email",
  "nodes": [
    {
      "id": "65978710-1149-45f7-9904-ebad886098ca",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        32,
        192
      ]
    },
    {
      "id": "c4eb2b73-0dc8-4da0-a9ab-3d59e84a291a",
      "name": "Calculator",
      "type": "@n8n/n8n-nodes-langchain.toolCalculator",
      "position": [
        192,
        192
      ]
    },
    {
      "id": "025324ca-92fe-4faf-96e0-71f81c25bcfe",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        32,
        -32
      ]
    },
    {
      "id": "068c440e-6ece-4006-9636-f5e73d67856f",
      "name": "Overall Metrics This Period",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1056,
        -32
      ]
    },
    {
      "id": "254c5df0-003c-40ea-9eb9-fc8b2b2b8150",
      "name": "Overall Metrics Previous Period",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -848,
        -32
      ]
    },
    {
      "id": "985f5f91-31a2-48a3-9f36-dbd2c94126e2",
      "name": "Form Submits This Period",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -640,
        -32
      ]
    },
    {
      "id": "c229f0d3-34a2-4d96-9701-61500e567b60",
      "name": "Form Submits Previous Period",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -416,
        -32
      ]
    },
    {
      "id": "2bc69249-9abf-4324-aa7e-698c05e0905b",
      "name": "Think",
      "type": "@n8n/n8n-nodes-langchain.toolThink",
      "position": [
        320,
        192
      ]
    },
    {
      "id": "083b74ac-80e0-46d1-b912-6c9cd74b3459",
      "name": "Get Client",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -1264,
        -32
      ]
    },
    {
      "id": "01b643bc-11f8-40d4-a444-0168db895d90",
      "name": "Send a message",
      "type": "n8n-nodes-base.gmail",
      "position": [
        400,
        -32
      ]
    },
    {
      "id": "18aab012-7844-4c58-b6f4-08be681762cd",
      "name": "Code",
      "type": "n8n-nodes-base.code",
      "position": [
        -192,
        -32
      ]
    },
    {
      "id": "83cb35ec-5f01-44ac-b10c-842176f2882b",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -832,
        -1040
      ],
      "parameters": {
        "width": 1024,
        "height": 848,
        "content": "## 🟨 Overview — Create GA4 HTML report and email via Gmail\n\n## Who’s it for\nMarketing, growth, and analytics teams who want a **decision-ready GA4 summary**—automatically calculated, clearly color-cod"
      }
    },
    {
      "id": "b76538a7-05e8-425b-a021-3253eff8bf0c",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1904,
        -160
      ],
      "parameters": {
        "width": 560,
        "height": 352,
        "content": "## 🗒️ Setup checklist (do these before first run)\n\n- **Get Client (Form Trigger)**  \n  - Collect: *Account ID (GA4 Property ID), Key Event, Report date range (current & previous), Client Name, Send-to"
      }
    }
  ],
  "connections": {
    "Code": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Think": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "Send a message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Calculator": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Get Client": {
      "main": [
        [
          {
            "node": "Overall Metrics This Period",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Form Submits This Period": {
      "main": [
        [
          {
            "node": "Form Submits Previous Period",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Overall Metrics This Period": {
      "main": [
        [
          {
            "node": "Overall Metrics Previous Period",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Form Submits Previous Period": {
      "main": [
        [
          {
            "node": "Code",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Overall Metrics Previous Period": {
      "main": [
        [
          {
            "node": "Form Submits This Period",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}