AutomationFlowsWeb Scraping › AI Quiz Evaluation & Feedback Workflow

AI Quiz Evaluation & Feedback Workflow

Original n8n title: Kreativ: Quiz Handler

Kreativ: Quiz Handler. Uses httpRequest. Webhook trigger; 9 nodes.

Webhook trigger★★★★☆ complexity9 nodesHTTP Request
Web Scraping Trigger: Webhook Nodes: 9 Complexity: ★★★★☆ Added:

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "name": "Kreativ: Quiz Handler",
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "ai-tutor-v2-unique-rafael",
        "responseMode": "lastNode",
        "options": {}
      },
      "id": "webhook",
      "name": "webhook",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [
        100,
        300
      ]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "http://kreativ_builderbot:3008/api/query",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={{ JSON.stringify({ \"query\": \"SELECT s.id as student_id, s.name, s.course_id, s.current_module, m.evaluation_rubric, m.title as module_title FROM students s JOIN modules m ON m.course_id = s.course_id::text AND s.current_module = m.module_number WHERE s.phone = $1 LIMIT 1\", \"values\": [$json.phone] }) }}",
        "options": {}
      },
      "id": "get-context",
      "name": "Get Student & Rubric",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.1,
      "position": [
        300,
        300
      ]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://api.deepseek.com/chat/completions",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "Authorization",
              "value": "Bearer <redacted-credential>"
            }
          ]
        },
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={{ JSON.stringify({\n  \"model\": \"deepseek-chat\",\n  \"messages\": [\n    {\n      \"role\": \"system\",\n      \"content\": `Voc\u00ea \u00e9 um avaliador pedag\u00f3gico. Avalie a resposta do aluno com base na RUBRICA abaixo.\\n\\nRUBRICA:\\n${$node[\"Get Student & Rubric\"].json.rows[0]?.evaluation_rubric || 'O aluno deve demonstrar conhecimento geral do m\u00f3dulo.'}\\n\\nResponda APENAS em JSON no formato: { \"score\": 0-100, \"feedback\": \"texto curto\", \"passed\": true/false }. Considere 'passed' true se score >= 70.`\n    },\n    { \"role\": \"user\", \"content\": $node[\"webhook\"].json.body.body }\n  ]\n}) }}",
        "options": {}
      },
      "id": "ai-evaluator",
      "name": "AI Evaluator",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        500,
        300
      ]
    },
    {
      "parameters": {
        "mode": "runOnceForAllItems",
        "jsCode": "const content = $node[\"AI Evaluator\"].json.choices[0].message.content;\nconst cleanJson = content.replace(/```json|```/g, '').trim();\nreturn [{ json: JSON.parse(cleanJson) }];"
      },
      "id": "parser",
      "name": "Parse Eval",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        700,
        300
      ]
    },
    {
      "parameters": {
        "conditions": {
          "boolean": [
            {
              "value1": "={{ $json.passed }}",
              "value2": true
            }
          ]
        }
      },
      "id": "check-passed",
      "name": "Passou?",
      "type": "n8n-nodes-base.if",
      "typeVersion": 1,
      "position": [
        900,
        300
      ]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "http://kreativ_builderbot:3008/api/query",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={{ JSON.stringify({ \"query\": \"INSERT INTO achievements (student_id, course_id, module_number, achievement_type, name, description, token_validation) VALUES ($1, $2, $3, 'medal', $4, $5, $6) ON CONFLICT DO NOTHING\", \"values\": [$node[\"Get Student & Rubric\"].json.rows[0].student_id, $node[\"Get Student & Rubric\"].json.rows[0].course_id, $node[\"Get Student & Rubric\"].json.rows[0].current_module, 'Medalha: ' + $node[\"Get Student & Rubric\"].json.rows[0].module_title, 'Concluiu com sucesso o desafio do m\u00f3dulo.', 'TOKEN-' + $node[\"Get Student & Rubric\"].json.rows[0].student_id.substring(0,8) + '-' + $node[\"Get Student & Rubric\"].json.rows[0].current_module] }) }}",
        "options": {}
      },
      "id": "save-achievement",
      "name": "Save Achievement",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.1,
      "position": [
        1100,
        200
      ]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "http://kreativ_builderbot:3008/api/send",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={{ JSON.stringify({ \"phone\": $node[\"webhook\"].json.body.phone, \"message\": \"\ud83c\udf96\ufe0f *CONQUISTA DESBLOQUEADA!*\\n\\nParab\u00e9ns! Voc\u00ea passou no desafio do m\u00f3dulo: *\" + ($node[\"Get Student & Rubric\"].json.rows[0]?.module_title || 'M\u00f3dulo Conclu\u00eddo') + \"*\\n\\nSua nota: \" + $node[\"Parse Eval\"].json.score + \"/100\\n\\nSua nova medalha j\u00e1 est\u00e1 dispon\u00edvel no seu portal! Pr\u00f3ximo passo: M\u00f3dulo \" + (($node[\"Get Student & Rubric\"].json.rows[0]?.current_module || 0) + 1) }) }}",
        "options": {}
      },
      "id": "notify-success",
      "name": "Notify Success",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.1,
      "position": [
        1300,
        200
      ]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "http://kreativ_builderbot:3008/api/send",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={{ JSON.stringify({ \"phone\": $node[\"webhook\"].json.body.phone, \"message\": \"\ud83d\udca1 *Quase l\u00e1!*\\n\\nVoc\u00ea ainda n\u00e3o atingiu a pontua\u00e7\u00e3o m\u00ednima para este m\u00f3dulo (70/100).\\n\\n*Feedback da IA:* \" + $node[\"Parse Eval\"].json.feedback + \"\\n\\nN\u00e3o desanime! Revise o conte\u00fado com o Tutor IA e tente o desafio novamente quando estiver pronto. \ud83d\udcaa\" }) }}",
        "options": {}
      },
      "id": "notify-retry",
      "name": "Notify Retry",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.1,
      "position": [
        1100,
        400
      ]
    },
    {
      "parameters": {
        "jsCode": "return [{ json: { success: true } }];"
      },
      "id": "final-response",
      "name": "Final Response",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        1550,
        300
      ]
    }
  ],
  "connections": {
    "webhook": {
      "main": [
        [
          {
            "node": "get-context",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "get-context": {
      "main": [
        [
          {
            "node": "ai-evaluator",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "ai-evaluator": {
      "main": [
        [
          {
            "node": "parser",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "parser": {
      "main": [
        [
          {
            "node": "check-passed",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "check-passed": {
      "main": [
        [
          {
            "node": "save-achievement",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "notify-retry",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "save-achievement": {
      "main": [
        [
          {
            "node": "notify-success",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "notify-success": {
      "main": [
        [
          {
            "node": "final-response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "notify-retry": {
      "main": [
        [
          {
            "node": "final-response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1",
    "saveManualExecutions": true,
    "saveDataErrorExecution": "all",
    "saveExecutionProgress": true
  }
}
Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

Kreativ: Quiz Handler. Uses httpRequest. Webhook trigger; 9 nodes.

Source: https://github.com/RAFAELUFT22/kreativ_bot_v2/blob/2e44f13e3eab55e41e825bf59bca063e04a97b1a/n8n-workflows/21-quiz-handler.json — original creator credit. Request a take-down →

More Web Scraping workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

Web Scraping

This n8n template provides enterprise-level version control for your workflows using GitHub integration. Stop losing hours to broken workflows and manual exports – get proper commit history, visual di

n8n, Execute Workflow Trigger, HTTP Request +1
Web Scraping

This flow creates dummy files for every item added in your *Arrs (Radarr/Sonarr) with the tag .

HTTP Request, Ssh
Web Scraping

This workflow acts as a central API gateway for all technical indicator agents in the Binance Spot Market Quant AI system. It listens for incoming webhook requests and dynamically routes them to the c

HTTP Request
Web Scraping

Sign PDF documents with legally-compliant digital signatures using X.509 certificates. Supports multiple PAdES signature levels (B, T, LT, LTA) with optional visible stamps.

Execute Command, HTTP Request, Read Write File +1
Web Scraping

📡 This workflow serves as the central Alpha Vantage API fetcher for Tesla trading indicators, delivering cleaned 20-point JSON outputs for three timeframes: , , and . It is required by the following a

HTTP Request