{
  "id": "RzcscHrqT4jxeBg9",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "name": "Automated SEO Analytics & Reporting Workflow",
  "tags": [],
  "nodes": [
    {
      "id": "85842be6-210b-4c9c-aaa6-010a31b785b5",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -736,
        1296
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "8ce943a1-207a-493f-9cae-0956ecc7552c",
      "name": "Append row",
      "type": "n8n-nodes-base.googleSheetsTool",
      "position": [
        880,
        752
      ],
      "parameters": {},
      "typeVersion": 4.6
    },
    {
      "id": "627cb39f-7265-4f6d-be24-a07ac9743b2c",
      "name": "Get row(s)4",
      "type": "n8n-nodes-base.googleSheetsTool",
      "position": [
        1744,
        1216
      ],
      "parameters": {},
      "typeVersion": 4.6
    },
    {
      "id": "5b185e9e-184a-43a8-80a5-ea63cd12ee5e",
      "name": "Aggregate All Reports",
      "type": "n8n-nodes-base.code",
      "position": [
        1424,
        1056
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "83f1c7ff-f52f-4cef-935d-71f39c8e505c",
      "name": "Get GA History",
      "type": "n8n-nodes-base.googleSheetsTool",
      "position": [
        736,
        752
      ],
      "parameters": {},
      "typeVersion": 4.6
    },
    {
      "id": "019ca803-7e08-4148-b001-3062087e0583",
      "name": "Get Search Console History",
      "type": "n8n-nodes-base.googleSheetsTool",
      "position": [
        736,
        1200
      ],
      "parameters": {},
      "typeVersion": 4.6
    },
    {
      "id": "c18c83fa-3fc1-4190-87de-02c8a8aeab36",
      "name": "Get PageSpeed History",
      "type": "n8n-nodes-base.googleSheetsTool",
      "position": [
        736,
        960
      ],
      "parameters": {},
      "typeVersion": 4.6
    },
    {
      "id": "e687b208-875b-4e10-bdcc-f4c97c857012",
      "name": "Get Technical Audit History",
      "type": "n8n-nodes-base.googleSheetsTool",
      "position": [
        736,
        1440
      ],
      "parameters": {},
      "typeVersion": 4.6
    },
    {
      "id": "34e09d16-aee7-45c3-a3c3-e94cbf1e976f",
      "name": "Get row(s) in sheet in Google Sheets",
      "type": "n8n-nodes-base.googleSheetsTool",
      "position": [
        880,
        960
      ],
      "parameters": {},
      "typeVersion": 4.6
    },
    {
      "id": "3137c55a-b648-4fa5-a169-5c0ebaab388e",
      "name": "Get row(s) in sheet in Google Sheets1",
      "type": "n8n-nodes-base.googleSheetsTool",
      "position": [
        896,
        1200
      ],
      "parameters": {},
      "typeVersion": 4.6
    },
    {
      "id": "61610901-d83b-41a1-9d66-da8a1b1a39ed",
      "name": "Get row(s) in sheet in Google Sheets2",
      "type": "n8n-nodes-base.googleSheetsTool",
      "position": [
        896,
        1440
      ],
      "parameters": {},
      "typeVersion": 4.6
    },
    {
      "id": "dc2b161e-1426-4f7b-bb61-30df9c7606ab",
      "name": "Telegram Trigger",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        -1504,
        1056
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "a1334351-10eb-4f5f-bfd6-446fde4a953b",
      "name": "No Operation, do nothing",
      "type": "n8n-nodes-base.noOp",
      "position": [
        -1056,
        928
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "14994a04-2bc4-4bec-b0d9-c149fed51c09",
      "name": "If (Check Admin)",
      "type": "n8n-nodes-base.if",
      "position": [
        -1312,
        1056
      ],
      "parameters": {},
      "typeVersion": 2.3
    },
    {
      "id": "ee4d78a6-9a90-4484-b503-f6f46f95313f",
      "name": "If (Check Perfect Message for 'SEO Analysis')",
      "type": "n8n-nodes-base.if",
      "position": [
        -752,
        928
      ],
      "parameters": {},
      "typeVersion": 2.3
    },
    {
      "id": "b09c8f06-a30d-47b2-8820-59ec48cb6805",
      "name": "If (Check User Message)",
      "type": "n8n-nodes-base.if",
      "position": [
        -1056,
        1136
      ],
      "parameters": {},
      "typeVersion": 2.3
    },
    {
      "id": "372bbf4c-48e1-4f59-b82e-97165d9e9c1f",
      "name": "Send a alert message to Admin",
      "type": "n8n-nodes-base.telegram",
      "position": [
        -896,
        1024
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "101d2635-f37e-4b80-8e25-d51deb779ef0",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1520,
        880
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "b3d011cc-7daa-487d-b42a-2891ab21aace",
      "name": "Edit Fields (Add Your Target Website URL)",
      "type": "n8n-nodes-base.set",
      "position": [
        -464,
        1088
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "b29c8ace-296f-47e7-b55c-48726c6c5f22",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2160,
        896
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "443fea5a-8552-4284-baab-229ff6c41bfd",
      "name": "Get Analytics report",
      "type": "n8n-nodes-base.googleAnalytics",
      "position": [
        -112,
        736
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "3d4c0f8c-057e-4fc2-b6f4-c31129532b7a",
      "name": "HTTPS (Fetch PageSpeed Data)",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -112,
        960
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "2d16f9fb-8538-4d25-825c-46822137ae92",
      "name": "HTTPS (Search console)",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -112,
        1184
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "a7b53b40-41ab-4dd1-b1c1-8d573bce517e",
      "name": "HTTPS (Crawl Website Homepage)",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -112,
        1424
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "cb5e1675-6156-45d0-b043-ca6f7792d1b1",
      "name": "Code (Format GA Data)",
      "type": "n8n-nodes-base.code",
      "position": [
        272,
        736
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "3a0d2283-5051-43e3-85bd-2620b8e60cae",
      "name": "Code (Format PageSpeed Data)",
      "type": "n8n-nodes-base.code",
      "position": [
        272,
        960
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "af997094-7d2b-4f05-884d-0a2233775da3",
      "name": "Code (Format Search Console Data)",
      "type": "n8n-nodes-base.code",
      "position": [
        272,
        1184
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "8c153ba4-ea88-44c8-b441-edefb56ba232",
      "name": "Code (Score On-Page SEO)",
      "type": "n8n-nodes-base.code",
      "position": [
        272,
        1424
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "04cb66b8-0b2e-476c-b2bb-66211c94d92d",
      "name": "Code (Extract On-Page SEO Data)",
      "type": "n8n-nodes-base.code",
      "position": [
        80,
        1424
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "316fc0ac-3054-4731-84e8-7fb39944e91f",
      "name": "Analytics Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        480,
        736
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "c35d5a33-85ef-41b4-b51c-e8d5bab48586",
      "name": "Performance Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        480,
        960
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "d63a265b-4722-4e9a-928f-0fea654fcd4a",
      "name": "SEO Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        480,
        1184
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "f07c5f23-1105-4753-b854-6849c1289839",
      "name": "Technical Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        480,
        1424
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "1789bde5-58c8-43cb-b9d8-3cb5fc6dc4b8",
      "name": "OpenAI",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        480,
        1536
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "353a47cb-b553-422f-b157-950c86ddef41",
      "name": "OpenAI 2",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1600,
        1200
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "0a736518-37da-45a9-8a31-7817dd9e2298",
      "name": "Merge All",
      "type": "n8n-nodes-base.merge",
      "position": [
        1200,
        1024
      ],
      "parameters": {},
      "typeVersion": 3.2
    },
    {
      "id": "2fa2797d-182a-4dde-8028-b92220d9b3b4",
      "name": "Slack (Send SEO Report Message)",
      "type": "n8n-nodes-base.slack",
      "position": [
        2208,
        960
      ],
      "parameters": {},
      "executeOnce": true,
      "typeVersion": 2.3
    },
    {
      "id": "1818ab63-c77c-46c8-85f4-c0524ae5ad9e",
      "name": "Teams (Send SEO Report Message)",
      "type": "n8n-nodes-base.microsoftTeams",
      "position": [
        2448,
        960
      ],
      "parameters": {},
      "executeOnce": true,
      "typeVersion": 2
    },
    {
      "id": "222780d2-9250-45e9-87bd-80be16be766f",
      "name": "Telegram (Send SEO Report Message)",
      "type": "n8n-nodes-base.telegram",
      "position": [
        2608,
        1056
      ],
      "parameters": {},
      "executeOnce": true,
      "typeVersion": 1.2
    },
    {
      "id": "30d5c0fd-52dc-43a1-bf58-dba43be20047",
      "name": "Rapiwa (Send SEO Report Message on WhatsApp)",
      "type": "n8n-nodes-rapiwa.rapiwa",
      "position": [
        2448,
        1136
      ],
      "parameters": {},
      "executeOnce": true,
      "typeVersion": 1
    },
    {
      "id": "9a557b05-03be-4ede-8132-ed11bca879b0",
      "name": "Discord (Send SEO Report Message)",
      "type": "n8n-nodes-base.discord",
      "position": [
        2208,
        1136
      ],
      "parameters": {},
      "executeOnce": true,
      "typeVersion": 2
    },
    {
      "id": "321dc228-ef10-4f1b-83df-84189aee7646",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1168,
        960
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "9fbacc63-d74f-4157-8ce6-d9271dccaa59",
      "name": "Sheet (Save Final Report)",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1936,
        1056
      ],
      "parameters": {},
      "typeVersion": 4.6
    },
    {
      "id": "25d5d2ed-9339-4638-8a8d-c460c37e51c6",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -160,
        672
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "66943e93-eb9d-41a1-86cf-27aa35fc388b",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -160,
        896
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "3913c4b9-cc45-41a5-9bb2-93fc4d4f6d3a",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -160,
        1136
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "01031890-71f3-4393-ac00-afed0bad9686",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -160,
        1360
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "ab13a469-f8b4-4877-8e66-ee2e12e802ca",
      "name": "Final Analytics Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1600,
        1056
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "61dee6db-9117-4d2c-bc93-f145431209c0",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2080,
        880
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "ddbd30a5-5d0f-4df6-a84f-ef56b971281f",
  "connections": {
    "OpenAI": {
      "ai_languageModel": [
        [
          {
            "node": "Analytics Agent",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Performance Agent",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "SEO Agent",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Technical Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI 2": {
      "ai_languageModel": [
        [
          {
            "node": "Final Analytics Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Merge All": {
      "main": [
        [
          {
            "node": "Aggregate All Reports",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "SEO Agent": {
      "main": [
        [
          {
            "node": "Merge All",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "Append row": {
      "ai_tool": [
        [
          {
            "node": "Analytics Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Get row(s)4": {
      "ai_tool": [
        [
          {
            "node": "Final Analytics Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Get GA History": {
      "ai_tool": [
        [
          {
            "node": "Analytics Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Analytics Agent": {
      "main": [
        [
          {
            "node": "Merge All",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Technical Agent": {
      "main": [
        [
          {
            "node": "Merge All",
            "type": "main",
            "index": 3
          }
        ]
      ]
    },
    "If (Check Admin)": {
      "main": [
        [
          {
            "node": "No Operation, do nothing",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "If (Check User Message)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Edit Fields (Add Your Target Website URL)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Telegram Trigger": {
      "main": [
        [
          {
            "node": "If (Check Admin)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Performance Agent": {
      "main": [
        [
          {
            "node": "Merge All",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Get Analytics report": {
      "main": [
        [
          {
            "node": "Code (Format GA Data)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate All Reports": {
      "main": [
        [
          {
            "node": "Final Analytics Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code (Format GA Data)": {
      "main": [
        [
          {
            "node": "Analytics Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Final Analytics Agent": {
      "main": [
        [
          {
            "node": "Sheet (Save Final Report)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get PageSpeed History": {
      "ai_tool": [
        [
          {
            "node": "Performance Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "HTTPS (Search console)": {
      "main": [
        [
          {
            "node": "Code (Format Search Console Data)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If (Check User Message)": {
      "main": [
        [
          {
            "node": "Send a alert message to Admin",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code (Score On-Page SEO)": {
      "main": [
        [
          {
            "node": "Technical Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "No Operation, do nothing": {
      "main": [
        [
          {
            "node": "If (Check Perfect Message for 'SEO Analysis')",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Sheet (Save Final Report)": {
      "main": [
        [
          {
            "node": "Telegram (Send SEO Report Message)",
            "type": "main",
            "index": 0
          },
          {
            "node": "Slack (Send SEO Report Message)",
            "type": "main",
            "index": 0
          },
          {
            "node": "Teams (Send SEO Report Message)",
            "type": "main",
            "index": 0
          },
          {
            "node": "Discord (Send SEO Report Message)",
            "type": "main",
            "index": 0
          },
          {
            "node": "Rapiwa (Send SEO Report Message on WhatsApp)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Search Console History": {
      "ai_tool": [
        [
          {
            "node": "SEO Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Get Technical Audit History": {
      "ai_tool": [
        [
          {
            "node": "Technical Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Code (Format PageSpeed Data)": {
      "main": [
        [
          {
            "node": "Performance Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTPS (Fetch PageSpeed Data)": {
      "main": [
        [
          {
            "node": "Code (Format PageSpeed Data)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTPS (Crawl Website Homepage)": {
      "main": [
        [
          {
            "node": "Code (Extract On-Page SEO Data)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code (Extract On-Page SEO Data)": {
      "main": [
        [
          {
            "node": "Code (Score On-Page SEO)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code (Format Search Console Data)": {
      "main": [
        [
          {
            "node": "SEO Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get row(s) in sheet in Google Sheets": {
      "ai_tool": [
        [
          {
            "node": "Performance Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Get row(s) in sheet in Google Sheets1": {
      "ai_tool": [
        [
          {
            "node": "SEO Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Get row(s) in sheet in Google Sheets2": {
      "ai_tool": [
        [
          {
            "node": "Technical Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields (Add Your Target Website URL)": {
      "main": [
        [
          {
            "node": "HTTPS (Search console)",
            "type": "main",
            "index": 0
          },
          {
            "node": "HTTPS (Crawl Website Homepage)",
            "type": "main",
            "index": 0
          },
          {
            "node": "HTTPS (Fetch PageSpeed Data)",
            "type": "main",
            "index": 0
          },
          {
            "node": "Get Analytics report",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If (Check Perfect Message for 'SEO Analysis')": {
      "main": [
        [
          {
            "node": "Edit Fields (Add Your Target Website URL)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}