{
  "name": "Analyze & publish GCE O-Level Math predictions with Perplexity AI to WordPress & Slack",
  "nodes": [
    {
      "id": "816a5f56-ea2b-49ff-b42b-4661716ee3d5",
      "name": "Manual Trigger",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        656,
        -16
      ]
    },
    {
      "id": "b6013e58-fbe9-482c-b7c6-327735bca79d",
      "name": "Fetch O-Level Math Syllabus",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        880,
        -112
      ]
    },
    {
      "id": "5c7e686f-72c9-48f0-a3b5-1e2b7d99b9ed",
      "name": "Extract Syllabus Text",
      "type": "n8n-nodes-base.extractFromFile",
      "position": [
        1104,
        -112
      ]
    },
    {
      "id": "3655c347-a6d6-4d5b-a7dc-e1c552ddf75b",
      "name": "Prepare Analysis Data",
      "type": "n8n-nodes-base.set",
      "position": [
        1296,
        -112
      ]
    },
    {
      "id": "85229eea-e100-45a1-967e-bad53795037e",
      "name": "Load Historical Context",
      "type": "n8n-nodes-base.set",
      "position": [
        1024,
        32
      ]
    },
    {
      "id": "b9fccdae-a80e-4091-a9ae-0feaab9bac1d",
      "name": "AI Analysis Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1520,
        -16
      ]
    },
    {
      "id": "8270de30-9c03-4711-a9e9-bae4bf2c9243",
      "name": "Parse AI Output",
      "type": "n8n-nodes-base.set",
      "position": [
        1792,
        -16
      ]
    },
    {
      "id": "cce94e46-d2a1-4624-8d08-25be02ce4c1f",
      "name": "Format Report",
      "type": "n8n-nodes-base.markdown",
      "position": [
        1952,
        -16
      ]
    },
    {
      "id": "a3c4b303-c81c-41b9-b770-2abb1568c22e",
      "name": "Convert to HTML",
      "type": "n8n-nodes-base.html",
      "position": [
        2112,
        -16
      ]
    },
    {
      "id": "f56cd26a-aedc-42e8-9ecd-c119d892e4db",
      "name": "Publish to WordPress",
      "type": "n8n-nodes-base.wordpress",
      "position": [
        2288,
        -16
      ]
    },
    {
      "id": "79d45a5b-7988-47c7-aae9-fc3c64fee16b",
      "name": "Send Slack Summary",
      "type": "n8n-nodes-base.slack",
      "position": [
        2480,
        -16
      ]
    },
    {
      "id": "22696c5f-9c7d-489e-a6ef-f3d94b0197a4",
      "name": "OpenRouter Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        1520,
        160
      ]
    },
    {
      "id": "e5a1c828-8bda-4c3c-87b2-55b02cc026ac",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        704,
        176
      ],
      "parameters": {
        "width": 752,
        "height": 544,
        "content": "## **Introduction**\nExams create significant stress for students. This workflow automates syllabus analysis and predicts exam trends using AI, helping educators and students better prepare for GCE 'O'"
      }
    },
    {
      "id": "15fbf510-bf4e-488d-b2a6-781dae32ba07",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1760,
        144
      ],
      "parameters": {
        "width": 592,
        "height": 656,
        "content": "## **Workflow Steps**\n1. Fetch & extract syllabus from SEAB site\n2. Load historical exam content\n3. AI analyzes syllabus + trends via OpenRouter model\n4. Parse and format AI output to Markdown/HTML\n5."
      }
    }
  ],
  "connections": {
    "Format Report": {
      "main": [
        [
          {
            "node": "Convert to HTML",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Manual Trigger": {
      "main": [
        [
          {
            "node": "Fetch O-Level Math Syllabus",
            "type": "main",
            "index": 0
          },
          {
            "node": "Load Historical Context",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert to HTML": {
      "main": [
        [
          {
            "node": "Publish to WordPress",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse AI Output": {
      "main": [
        [
          {
            "node": "Format Report",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Analysis Agent": {
      "main": [
        [
          {
            "node": "Parse AI Output",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Publish to WordPress": {
      "main": [
        [
          {
            "node": "Send Slack Summary",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Syllabus Text": {
      "main": [
        [
          {
            "node": "Prepare Analysis Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenRouter Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Analysis Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Prepare Analysis Data": {
      "main": [
        [
          {
            "node": "AI Analysis Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Load Historical Context": {
      "main": [
        [
          {
            "node": "AI Analysis Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch O-Level Math Syllabus": {
      "main": [
        [
          {
            "node": "Extract Syllabus Text",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}