8
n8n 中文网amn8n.com

AI声纳推理驱动的GCE O-Level数学主题分析与预测

中级

这是一个Document Extraction, AI Summarization领域的自动化工作流,包含 14 个节点。主要使用 Set, Html, Slack, Markdown, Wordpress 等节点。 使用Perplexity AI分析并发布GCE O-Level数学预测到WordPress和Slack

前置要求
  • Slack Bot Token 或 Webhook URL
  • 可能需要目标 API 的认证凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "oYrTphNZqfYV6uJX",
  "meta": {
    "instanceId": "b91e510ebae4127f953fd2f5f8d40d58ca1e71c746d4500c12ae86aad04c1502"
  },
  "name": "AI 声纳推理驱动的 GCE O-Level 数学主题分析与预测",
  "tags": [],
  "nodes": [
    {
      "id": "816a5f56-ea2b-49ff-b42b-4661716ee3d5",
      "name": "手动触发器",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        656,
        -16
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "b6013e58-fbe9-482c-b7c6-327735bca79d",
      "name": "获取 O-Level 数学教学大纲",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        880,
        -112
      ],
      "parameters": {
        "url": "https://www.seab.gov.sg/docs/default-source/national-examinations/syllabus/olevel/2025syllabus/4048_y25_sy.pdf",
        "options": {}
      },
      "typeVersion": 4.2
    },
    {
      "id": "5c7e686f-72c9-48f0-a3b5-1e2b7d99b9ed",
      "name": "提取教学大纲文本",
      "type": "n8n-nodes-base.extractFromFile",
      "position": [
        1104,
        -112
      ],
      "parameters": {
        "options": {},
        "operation": "text"
      },
      "typeVersion": 1
    },
    {
      "id": "3655c347-a6d6-4d5b-a7dc-e1c552ddf75b",
      "name": "准备分析数据",
      "type": "n8n-nodes-base.set",
      "position": [
        1296,
        -112
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "a1",
              "name": "syllabus_content",
              "type": "string",
              "value": "={{ $json.data }}"
            },
            {
              "id": "a2",
              "name": "analysis_year",
              "type": "number",
              "value": "=2025"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "85229eea-e100-45a1-967e-bad53795037e",
      "name": "加载历史上下文",
      "type": "n8n-nodes-base.set",
      "position": [
        1024,
        32
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "b1",
              "name": "historical_topics",
              "type": "string",
              "value": "=Algebra (equations, inequalities, functions), Geometry (congruence, similarity, circle theorems), Trigonometry (ratios, identities, graphs), Statistics (data analysis, probability), Number patterns (sequences, series), Mensuration (area, volume, surface area), Coordinate geometry (gradients, equations of lines), Vectors (operations, applications), Matrices (operations, transformations), Sets (Venn diagrams, operations)"
            },
            {
              "id": "b2",
              "name": "challenging_areas",
              "type": "string",
              "value": "=Circle theorems and angle properties, Trigonometric identities and proofs, Probability with multiple events, Algebraic manipulation and factorization, Application problems requiring multi-step reasoning"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "b9fccdae-a80e-4091-a9ae-0feaab9bac1d",
      "name": "AI 分析代理",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1520,
        -16
      ],
      "parameters": {
        "text": "=You are an expert educational analyst specializing in GCE O-Level Mathematics examinations in Singapore.\n\nAnalyze the following syllabus content and provide a comprehensive exam analysis:\n\n**Syllabus Content:**\n{{ $('Prepare Analysis Data').item.json.syllabus_content }}\n\n**Historical Context:**\nRecurring Topics: {{ $('Load Historical Context').item.json.historical_topics }}\nChallenging Areas: {{ $('Load Historical Context').item.json.challenging_areas }}\n\n**Required Output Structure (JSON format):**\n```json\n{\n  \"exam_summary\": {\n    \"year\": 2025,\n    \"total_marks\": \"Paper 1 + Paper 2 distribution\",\n    \"key_changes\": \"Notable syllabus changes for 2025\"\n  },\n  \"top_10_recurring_topics\": [\n    {\n      \"rank\": 1,\n      \"topic\": \"Topic name\",\n      \"frequency_percentage\": 85,\n      \"typical_question_types\": \"Description\"\n    }\n  ],\n  \"top_5_challenging_areas\": [\n    {\n      \"rank\": 1,\n      \"area\": \"Area name\",\n      \"difficulty_reason\": \"Why students struggle\",\n      \"success_tips\": \"Brief study advice\"\n    }\n  ],\n  \"topic_weightage\": {\n    \"algebra\": {\"percentage\": 25, \"marks_range\": \"25-30 marks\"},\n    \"geometry\": {\"percentage\": 20, \"marks_range\": \"20-25 marks\"},\n    \"trigonometry\": {\"percentage\": 15, \"marks_range\": \"15-20 marks\"},\n    \"statistics\": {\"percentage\": 20, \"marks_range\": \"20-25 marks\"},\n    \"number_patterns\": {\"percentage\": 10, \"marks_range\": \"10-15 marks\"},\n    \"others\": {\"percentage\": 10, \"marks_range\": \"10-15 marks\"}\n  },\n  \"predicted_questions\": [\n    {\n      \"prediction_number\": 1,\n      \"paper\": \"Paper 1 or Paper 2\",\n      \"topic_combination\": \"Topics involved\",\n      \"question_type\": \"Description of question format\",\n      \"confidence_score\": 85,\n      \"reasoning\": \"Why this is likely based on patterns\"\n    }\n  ]\n}\n```\n\nProvide detailed, actionable insights based on historical exam patterns and the 2025 syllabus emphasis.",
        "options": {
          "systemMessage": "You are a GCE O-Level Mathematics exam specialist with deep knowledge of Singapore's education system, syllabus trends, and student learning patterns. Provide accurate, evidence-based analysis."
        },
        "promptType": "define"
      },
      "typeVersion": 1.7
    },
    {
      "id": "8270de30-9c03-4711-a9e9-bae4bf2c9243",
      "name": "解析 AI 输出",
      "type": "n8n-nodes-base.set",
      "position": [
        1792,
        -16
      ],
      "parameters": {
        "options": {}
      },
      "typeVersion": 3.4
    },
    {
      "id": "cce94e46-d2a1-4624-8d08-25be02ce4c1f",
      "name": "格式化报告",
      "type": "n8n-nodes-base.markdown",
      "position": [
        1952,
        -16
      ],
      "parameters": {
        "options": {}
      },
      "typeVersion": 1
    },
    {
      "id": "a3c4b303-c81c-41b9-b770-2abb1568c22e",
      "name": "转换为HTML",
      "type": "n8n-nodes-base.html",
      "position": [
        2112,
        -16
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "f56cd26a-aedc-42e8-9ecd-c119d892e4db",
      "name": "发布到 WordPress",
      "type": "n8n-nodes-base.wordpress",
      "position": [
        2288,
        -16
      ],
      "parameters": {
        "title": "=GCE O-Level Math Predictions {{ $('Prepare Analysis Data').item.json.analysis_year }}",
        "additionalFields": {}
      },
      "typeVersion": 1
    },
    {
      "id": "79d45a5b-7988-47c7-aae9-fc3c64fee16b",
      "name": "发送 Slack 摘要",
      "type": "n8n-nodes-base.slack",
      "position": [
        2480,
        -16
      ],
      "webhookId": "9fa18884-3c76-4df3-af30-7be8b658738c",
      "parameters": {
        "text": "=🎓 *GCE O-Level Mathematics Exam Analysis {{ $('Prepare Analysis Data').item.json.analysis_year }} - Now Available!*\n\n📊 *Key Highlights:*\n• Top 10 recurring topics identified\n• 5 challenging areas with success tips\n• Topic weightage breakdown\n• 5 predicted question types with confidence scores\n\n📝 *Top 3 Predicted Topics:*\n{{ $('Parse AI Output').item.json.predicted_questions.slice(0, 3).map((p, i) => `${i + 1}. ${p.topic_combination} (${p.confidence_score}% confidence)`).join('\\n') }}\n\n🔗 Full report published to WordPress\n\n_Analysis based on 2025 syllabus and historical exam patterns_",
        "otherOptions": {}
      },
      "typeVersion": 2.2
    },
    {
      "id": "22696c5f-9c7d-489e-a6ef-f3d94b0197a4",
      "name": "OpenRouter聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        1520,
        160
      ],
      "parameters": {
        "model": "perplexity/sonar-reasoning",
        "options": {}
      },
      "credentials": {
        "openRouterApi": {
          "id": "fKnn6LL7cRFqNHDX",
          "name": "OpenRouter account2"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "e5a1c828-8bda-4c3c-87b2-55b02cc026ac",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        704,
        176
      ],
      "parameters": {
        "width": 752,
        "height": 544,
        "content": "## **简介**"
      },
      "typeVersion": 1
    },
    {
      "id": "15fbf510-bf4e-488d-b2a6-781dae32ba07",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1760,
        144
      ],
      "parameters": {
        "color": 4,
        "width": 592,
        "height": 656,
        "content": "## **工作流步骤**"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "42c008fc-1542-4479-8605-e8c219b2ec73",
  "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
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。

这个工作流适合什么场景?

中级 - 文档提取, AI 摘要总结

需要付费吗?

本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。

工作流信息
难度等级
中级
节点数量14
分类2
节点类型11
难度说明

适合有一定经验的用户,包含 6-15 个节点的中等复杂度工作流

作者
Cheng Siong Chin

Cheng Siong Chin

@cschin

Dr. Cheng Siong CHIN serves as a Professor in Intelligent Systems Modelling and Simulation in Newcastle University, Singapore. His academic credentials include an M.Sc. in Advanced Control and Systems Engineering from The University of Manchester and a Ph.D. in Robotics from Nanyang Technological University.

外部链接
在 n8n.io 查看

分享此工作流