{
  "name": "Summarize Umami data with AI (via Openrouter) and save it to Baserow",
  "nodes": [
    {
      "id": "8a54ac1c-a072-42e6-a3ba-8cde33475eb5",
      "name": "When clicking ‘Test workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        460,
        220
      ]
    },
    {
      "id": "e81c9be0-f59d-467e-9bda-eeb2d66ed31e",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        460,
        380
      ]
    },
    {
      "id": "01b04872-9aea-4834-8df5-f6c91914133d",
      "name": "Get view stats from Umami",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        760,
        260
      ]
    },
    {
      "id": "38d342e3-10ad-4260-8f44-5a3233ec3166",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        660,
        -460
      ],
      "parameters": {
        "width": 505,
        "height": 320,
        "content": "## Send data from Umami to A.I. and then save to Baserow\n\nYou can find out more about the stats available in the [Umami API](https://umami.is/docs/api/website-stats-api)\n\n[Watch youtube tutorial here]"
      }
    },
    {
      "id": "18c997fe-61b1-464a-8bb5-fcdc017dd1f6",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        660,
        -60
      ],
      "parameters": {
        "width": 393.16558441558414,
        "height": 504.17207792207796,
        "content": "## Get summary stats from Umami\n\nIt will get: Pageviews, Visitors, Visits, Bounces, Total Time\n\nYou need to change the URL to your website. https://{your website}/api/websites/{website ID}/\n\nYou can f"
      }
    },
    {
      "id": "bfdc04a2-57fa-4a8a-b412-39047cebb370",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1080,
        -60
      ],
      "parameters": {
        "width": 216.5746753246753,
        "height": 502.37012987012963,
        "content": "## Send data to A.I.\n\nTo use Openrouter, you need to register for an account.\nThen add header authorization credentials.\nUsername: Authroization\nPassword: Bearer {Your API Key}\n*It's Bearer YOUR_TOKEN"
      }
    },
    {
      "id": "fc373fd7-52fc-4729-8022-021c09d0c89c",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1320,
        -60
      ],
      "parameters": {
        "width": 746.3474025974022,
        "height": 505.9740259740257,
        "content": "## Get page specific stats for this week and last\n\nCalls Umami to get this week and last week's data. It will get the views for each page visited on your website for comparison."
      }
    },
    {
      "id": "82bd35b6-8b49-4d77-8be2-033a8bff3f41",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2120,
        -60
      ],
      "parameters": {
        "width": 216.5746753246753,
        "height": 502.37012987012963,
        "content": "## Send data to A.I.\n\nTo use Openrouter, you need to register for an account.\nThen add header authorization credentials.\nUsername: Authroization\nPassword: Bearer {Your API Key}\n*It's Bearer YOUR_TOKEN"
      }
    },
    {
      "id": "503c4ca3-36da-41a8-9029-f844a34daa59",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2380,
        -60
      ],
      "parameters": {
        "width": 393.16558441558414,
        "height": 504.17207792207796,
        "content": "## Save analysis to baserow\n\nYou need to create a table in advance to save. \n- Date (date)\n- Summary (Long text)\n- Top pages (Long text)\n- Blog name (Long text)"
      }
    },
    {
      "id": "f64cdfbd-712f-461c-b025-25f37e2bded8",
      "name": "Parse Umami data",
      "type": "n8n-nodes-base.code",
      "position": [
        940,
        260
      ]
    },
    {
      "id": "470715b6-0878-48b8-b6c6-40de27fbc966",
      "name": "Send data to A.I.",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1140,
        260
      ]
    },
    {
      "id": "ea4bb37f-96d9-41b8-bf46-fb09865a6e0f",
      "name": "Get page data from Umami",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1380,
        260
      ]
    },
    {
      "id": "d982606b-49c8-4d5b-ba79-bd0fdd2600b6",
      "name": "Parse Umami data1",
      "type": "n8n-nodes-base.code",
      "position": [
        1560,
        260
      ]
    },
    {
      "id": "f3734045-1318-4234-a3ac-61b766124609",
      "name": "Get page view data from Umami",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1760,
        260
      ]
    },
    {
      "id": "a0153ab0-3eaf-4f97-a2dc-ab63d45a9187",
      "name": "Parse Umami",
      "type": "n8n-nodes-base.code",
      "position": [
        1920,
        260
      ]
    },
    {
      "id": "c2d3d396-09fa-4800-b56d-40ed7592cd3c",
      "name": "Send data to A.I.1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2180,
        260
      ]
    },
    {
      "id": "ce58a556-c05a-4395-88b0-3edecbad80e5",
      "name": "Save data to Baserow",
      "type": "n8n-nodes-base.baserow",
      "position": [
        2520,
        260
      ]
    }
  ],
  "connections": {
    "Parse Umami": {
      "main": [
        [
          {
            "node": "Send data to A.I.1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse Umami data": {
      "main": [
        [
          {
            "node": "Send data to A.I.",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Get view stats from Umami",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse Umami data1": {
      "main": [
        [
          {
            "node": "Get page view data from Umami",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send data to A.I.": {
      "main": [
        [
          {
            "node": "Get page data from Umami",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send data to A.I.1": {
      "main": [
        [
          {
            "node": "Save data to Baserow",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get page data from Umami": {
      "main": [
        [
          {
            "node": "Parse Umami data1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get view stats from Umami": {
      "main": [
        [
          {
            "node": "Parse Umami data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get page view data from Umami": {
      "main": [
        [
          {
            "node": "Parse Umami",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Test workflow’": {
      "main": [
        [
          {
            "node": "Get view stats from Umami",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}