{
  "name": "Generate AI math RPG quests from study logs with Google Sheets and OpenRouter",
  "nodes": [
    {
      "id": "e5b843bf-d297-4512-bcfc-e743e9a5a255",
      "name": "Basic LLM Chain",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        656,
        0
      ]
    },
    {
      "id": "38e267c5-0306-4dab-bf1a-97aeba73bab0",
      "name": "OpenRouter Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        640,
        192
      ]
    },
    {
      "id": "b4891b16-69db-4ac5-858a-13df0d096088",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        800,
        208
      ]
    },
    {
      "id": "27f457fc-3ed0-47f4-bbb3-ed09d86f2d38",
      "name": "Add to StudyLogs",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        208,
        0
      ]
    },
    {
      "id": "58c29a2b-cc39-4e0f-a71b-c1fc9863a54a",
      "name": "Get User Status",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        416,
        0
      ]
    },
    {
      "id": "5a172134-7667-40b6-925e-f5de893a3df0",
      "name": "Save Quest",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1008,
        0
      ]
    },
    {
      "id": "a5a4c697-93ef-4200-8fa0-03e7f40d36b3",
      "name": "Study Log Input Form",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        0,
        0
      ]
    },
    {
      "id": "889919ec-5a76-4dde-ae93-c2f58a36e809",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -688,
        -496
      ],
      "parameters": {
        "width": 624,
        "height": 800,
        "content": "## Generate AI math RPG quests from study logs 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. It turns boring stud"
      }
    },
    {
      "id": "31359346-370b-425b-bbfd-4b28293539de",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -64,
        -96
      ],
      "parameters": {
        "width": 608,
        "height": 320,
        "content": "Receive study time and calculate user level"
      }
    },
    {
      "id": "939355a3-4236-4619-8326-f5f41c999a79",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        544,
        -96
      ],
      "parameters": {
        "width": 416,
        "height": 320,
        "content": "AI generates RPG quest"
      }
    },
    {
      "id": "ab08fba4-f82d-4c3c-b6f9-e208764cad4d",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        960,
        -96
      ],
      "parameters": {
        "width": null,
        "height": 320,
        "content": "Save quest to database"
      }
    }
  ],
  "connections": {
    "Basic LLM Chain": {
      "main": [
        [
          {
            "node": "Save Quest",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get User Status": {
      "main": [
        [
          {
            "node": "Basic LLM Chain",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Add to StudyLogs": {
      "main": [
        [
          {
            "node": "Get User Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Study Log Input Form": {
      "main": [
        [
          {
            "node": "Add to StudyLogs",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenRouter Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Basic LLM Chain",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Basic LLM Chain",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    }
  }
}