{
  "name": "Search Skool community posts with Claude and Google Docs analysis",
  "nodes": [
    {
      "id": "251e52ca-6e6b-418b-a015-33ff27367ddc",
      "name": "Sticky Note - Overview",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2000,
        1312
      ],
      "parameters": {
        "width": 644,
        "height": 764,
        "content": "## Skool Community Search with AI Analysis\n\nThis workflow transforms any Skool community into a searchable database. Instead of manually scrolling through a large number of Community tab history, this"
      }
    },
    {
      "id": "466f4b18-ac72-422b-a4be-218f2ec7a77b",
      "name": "Sticky Note - Input",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2720,
        1520
      ],
      "parameters": {
        "width": 514,
        "height": 280,
        "content": "## Input and Validate Data\nForm trigger collects query, Config holds settings, validates cookie and extracts BuildId"
      }
    },
    {
      "id": "ffd98290-b6c6-4a87-bda1-969e77728c8a",
      "name": "Sticky Note - Errors",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3824,
        1184
      ],
      "parameters": {
        "width": 434,
        "height": 258,
        "content": "## Cookie Expired\nReturns friendly error with refresh instructions when session expires"
      }
    },
    {
      "id": "f8cd833e-6116-42bd-81ae-d0930134e7ae",
      "name": "Sticky Note - Keywords",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3280,
        1520
      ],
      "parameters": {
        "width": 710,
        "height": 310,
        "content": "## Extract Keywords\nClaude Haiku identifies the best search terms \nfrom your question"
      }
    },
    {
      "id": "10c63423-7f57-4d8a-b9e8-24c7dfe36d0d",
      "name": "Sticky Note - Search",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        4032,
        1520
      ],
      "parameters": {
        "width": 680,
        "height": 294,
        "content": "## Search & Aggregate Data\nFetches multiple pages in parallel, deduplicates posts, sorts by engagement"
      }
    },
    {
      "id": "fcbe09b6-475c-45d5-abe2-72b13b6d8253",
      "name": "Sticky Note - No Results",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        4784,
        1312
      ],
      "parameters": {
        "width": 420,
        "height": 238,
        "content": "## No Output\nReturns helpful suggestions if search finds nothing"
      }
    },
    {
      "id": "688c1ff2-191b-4b85-be0a-ea00f152f1e2",
      "name": "Sticky Note - Analysis",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        4752,
        1712
      ],
      "parameters": {
        "width": 622,
        "height": 262,
        "content": "## Perform AI Analysis\nClaude Sonnet analyzes top posts and provides comprehensive answer"
      }
    },
    {
      "id": "b6e59d28-d85c-4394-b1c6-5e64a078a955",
      "name": "Sticky Note - Output",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        5424,
        1712
      ],
      "parameters": {
        "width": 1034,
        "height": 264,
        "content": "## Generate Output\nCreates Google Doc report with full content, returns HTML summary page"
      }
    },
    {
      "id": "026f0247-e4a1-493e-8ba5-283c0b9245d7",
      "name": "Form Trigger",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        2752,
        1632
      ]
    },
    {
      "id": "1c315902-1c7f-4a17-9304-cd1984148525",
      "name": "Config",
      "type": "n8n-nodes-base.code",
      "position": [
        2912,
        1632
      ]
    },
    {
      "id": "3bbe918f-e2d7-4866-a705-c194fd09fd1a",
      "name": "Fetch Skool Homepage",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        3088,
        1632
      ]
    },
    {
      "id": "ffb5a6a5-64bb-48d7-8693-e9a92e2c5f8b",
      "name": "Extract BuildId",
      "type": "n8n-nodes-base.code",
      "position": [
        3328,
        1632
      ]
    },
    {
      "id": "a9d9e410-00d8-49ca-a313-625eb8d27f69",
      "name": "Cookie Valid?",
      "type": "n8n-nodes-base.if",
      "position": [
        3488,
        1632
      ]
    },
    {
      "id": "49f39aec-4dd1-45bc-ad87-c72b5a85708a",
      "name": "Cookie Error Response",
      "type": "n8n-nodes-base.code",
      "position": [
        3872,
        1296
      ]
    },
    {
      "id": "be03cfad-d594-463a-a779-d073a93beec8",
      "name": "Respond with Error",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        4080,
        1296
      ]
    },
    {
      "id": "db6594aa-bb2e-4c71-a3a7-637f779b0b52",
      "name": "Build Keyword Request",
      "type": "n8n-nodes-base.code",
      "position": [
        3664,
        1648
      ]
    },
    {
      "id": "7409ee1f-ab60-4bea-9342-d7b1b3b994e0",
      "name": "Claude - Extract Keywords",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        3824,
        1648
      ]
    },
    {
      "id": "b41dde79-1c0b-484a-9f62-a1680f1d705c",
      "name": "Build Page URLs",
      "type": "n8n-nodes-base.code",
      "position": [
        4064,
        1648
      ]
    },
    {
      "id": "2f3c7218-cdc0-48ba-b986-e0cc166bfe1a",
      "name": "Fetch All Pages",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        4224,
        1648
      ]
    },
    {
      "id": "3de6a552-0f6b-49c3-a97f-2d9084a9457b",
      "name": "Aggregate All Posts",
      "type": "n8n-nodes-base.code",
      "position": [
        4384,
        1648
      ]
    },
    {
      "id": "4759de8d-c014-4f82-8afa-5101f0e30ddd",
      "name": "Has Results?",
      "type": "n8n-nodes-base.if",
      "position": [
        4544,
        1648
      ]
    },
    {
      "id": "b8693d62-65fe-45b2-b997-699278b06b22",
      "name": "No Results Response",
      "type": "n8n-nodes-base.code",
      "position": [
        4832,
        1408
      ]
    },
    {
      "id": "a2ab83aa-0d40-4319-8fcf-d23a84f388d3",
      "name": "Respond No Results",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        5024,
        1408
      ]
    },
    {
      "id": "dcc97c16-cfe8-45d8-89d0-e80d091df2ae",
      "name": "Build Analysis Request",
      "type": "n8n-nodes-base.code",
      "position": [
        4800,
        1808
      ]
    },
    {
      "id": "531562f4-f6e7-4712-ba68-99d618411454",
      "name": "Claude - Analyze",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        5008,
        1808
      ]
    },
    {
      "id": "277e91fd-de77-45ae-8ce8-eca34d826b4c",
      "name": "Format Response",
      "type": "n8n-nodes-base.code",
      "position": [
        5200,
        1808
      ]
    },
    {
      "id": "f18a81f0-e52c-409f-af20-f613ce001aa8",
      "name": "Prepare Document Content",
      "type": "n8n-nodes-base.code",
      "position": [
        5488,
        1808
      ]
    },
    {
      "id": "2a88e3e8-43ae-44b9-a2dd-ee51d8113278",
      "name": "Create Google Doc",
      "type": "n8n-nodes-base.googleDocs",
      "position": [
        5680,
        1808
      ]
    },
    {
      "id": "e78c39e7-4e0f-4c96-a002-1420132938df",
      "name": "Add Content to Doc",
      "type": "n8n-nodes-base.googleDocs",
      "position": [
        5872,
        1808
      ]
    },
    {
      "id": "5934a078-d510-45de-a241-9ec53a1b0f14",
      "name": "Generate Final HTML",
      "type": "n8n-nodes-base.code",
      "position": [
        6080,
        1808
      ]
    },
    {
      "id": "185aa4a5-6681-4aff-8dc8-74ca94137b1b",
      "name": "Respond with HTML",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        6256,
        1808
      ]
    }
  ],
  "connections": {
    "Config": {
      "main": [
        [
          {
            "node": "Fetch Skool Homepage",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Form Trigger": {
      "main": [
        [
          {
            "node": "Config",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Has Results?": {
      "main": [
        [
          {
            "node": "No Results Response",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Build Analysis Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Cookie Valid?": {
      "main": [
        [
          {
            "node": "Cookie Error Response",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Build Keyword Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Build Page URLs": {
      "main": [
        [
          {
            "node": "Fetch All Pages",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract BuildId": {
      "main": [
        [
          {
            "node": "Cookie Valid?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch All Pages": {
      "main": [
        [
          {
            "node": "Aggregate All Posts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format Response": {
      "main": [
        [
          {
            "node": "Prepare Document Content",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Claude - Analyze": {
      "main": [
        [
          {
            "node": "Format Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Google Doc": {
      "main": [
        [
          {
            "node": "Add Content to Doc",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Add Content to Doc": {
      "main": [
        [
          {
            "node": "Generate Final HTML",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate All Posts": {
      "main": [
        [
          {
            "node": "Has Results?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Final HTML": {
      "main": [
        [
          {
            "node": "Respond with HTML",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "No Results Response": {
      "main": [
        [
          {
            "node": "Respond No Results",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Skool Homepage": {
      "main": [
        [
          {
            "node": "Extract BuildId",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Build Keyword Request": {
      "main": [
        [
          {
            "node": "Claude - Extract Keywords",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Cookie Error Response": {
      "main": [
        [
          {
            "node": "Respond with Error",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Build Analysis Request": {
      "main": [
        [
          {
            "node": "Claude - Analyze",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prepare Document Content": {
      "main": [
        [
          {
            "node": "Create Google Doc",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Claude - Extract Keywords": {
      "main": [
        [
          {
            "node": "Build Page URLs",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}