{
  "name": "Judge AI math RPG answers with OpenAI/OpenRouter and update quests in Google Sheets",
  "nodes": [
    {
      "id": "6e2c9cd7-5313-4e66-82d5-13a69fca9447",
      "name": "OpenRouter Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        992,
        64
      ]
    },
    {
      "id": "7e26dfe5-141e-4e70-96a2-be8d07e019a8",
      "name": "Quiz Answer Form",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        0,
        0
      ]
    },
    {
      "id": "302c5815-4cbd-4014-8630-3467f087a717",
      "name": "Return Miss Message",
      "type": "n8n-nodes-base.code",
      "position": [
        752,
        336
      ]
    },
    {
      "id": "0e911387-03aa-4c2b-ab3b-23b20204a3b0",
      "name": "Generate Victory Message",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        960,
        -96
      ]
    },
    {
      "id": "d0472f4f-28a9-4e50-89db-de93de894f1a",
      "name": "Find Pending Quest",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        208,
        0
      ]
    },
    {
      "id": "c378e3b4-2b06-41a7-b31d-02fda1668380",
      "name": "Check Answer",
      "type": "n8n-nodes-base.if",
      "position": [
        416,
        0
      ]
    },
    {
      "id": "ba505d9d-d339-4d7e-83ac-3238ee163aba",
      "name": "Update Quest Status",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        752,
        -96
      ]
    },
    {
      "id": "bfefb8e1-e8f7-4377-b23e-7d5a9ad7814e",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -704,
        -448
      ],
      "parameters": {
        "width": 688,
        "height": 912,
        "content": "## Judge AI math RPG answers and update quest status in Google Sheets\n\n## Who it's for\nThis template is for educators, parents, or self-learners who want to gamify their study routines. This is **Part"
      }
    },
    {
      "id": "96d8822c-5ff0-4d84-b631-d677546d4491",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -16,
        -224
      ],
      "parameters": {
        "width": 384,
        "height": 400,
        "content": " Receive answer & find pending quest"
      }
    },
    {
      "id": "545d51d1-4be2-40cc-99c3-44999b59fb06",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        368,
        -224
      ],
      "parameters": {
        "width": 336,
        "height": 400,
        "content": "Check answer \n(No AI needed!)"
      }
    },
    {
      "id": "fed8beee-3200-4df8-95bf-4ce09b2ec7a8",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        704,
        -224
      ],
      "parameters": {
        "width": 560,
        "height": 432,
        "content": "Update status to 'solved' & Generate victory fanfare"
      }
    },
    {
      "id": "73beae1f-08d6-4fa2-b3cc-3e3dd6efe9ac",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        704,
        208
      ],
      "parameters": {
        "width": 368,
        "height": 288,
        "content": "Return miss message"
      }
    }
  ],
  "connections": {
    "Check Answer": {
      "main": [
        [
          {
            "node": "Update Quest Status",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Return Miss Message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Quiz Answer Form": {
      "main": [
        [
          {
            "node": "Find Pending Quest",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Find Pending Quest": {
      "main": [
        [
          {
            "node": "Check Answer",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update Quest Status": {
      "main": [
        [
          {
            "node": "Generate Victory Message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenRouter Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Generate Victory Message",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    }
  }
}