Skip to main content

Judge AI math RPG answers with OpenAI/OpenRouter and update quests in Google Sheets

Workflow preview

Workflow preview
100%
Judge AI math RPG answers with OpenAI/OpenRouter and update quests in Google Sheets preview
Open on n8n.io

1. Workflow Overview

Judge AI math RPG answers and update quest status in Google Sheets Who it's for This template is for educators, parents, or self learners who want to gamify their study routines. This is Part 2 of ...

Best for

  • Personal Productivity automation workflows
  • Multimodal AI automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

@n8n/n8n-nodes-langchain.lmchatopenrouter, n8n-nodes-base.formtrigger, n8n-nodes-base.code, @n8n/n8n-nodes-langchain.chainllm, n8n-nodes-base.googlesheets, n8n-nodes-base.if, n8n-nodes-base.stickynote

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by TAKUTO ISHIKAWA.

Original n8n.io source

1.1 Workflow description

Title
Judge AI math RPG answers with OpenAI/OpenRouter and update quests in Google Sheets
Workflow name
Judge AI math RPG answers with OpenAI/OpenRouter and update quests in Google Sheets

Judge AI math RPG answers and update quest status in Google Sheets

Who it's for

This template is for educators, parents, or self-learners who want to gamify their study routines. This is Part 2 of the "AI Math RPG" system. It handles the quiz judgment and status updates without using expensive AI tokens for basic math checks.

How it works

When a user submits their answer via an n8n Form, this workflow searches Google Sheets for their pending quest. It uses a fast and reliable IF node to check if the user's answer matches the correct answer generated previously. If correct, it updates the quest status to solved in Google Sheets to prevent infinite EXP farming, and then uses a Basic LLM Chain to generate an enthusiastic, RPG-style victory fanfare. If incorrect, it returns a friendly "try again" message.

How to set up

  1. Ensure you have set up Part 1 of this system (Generate AI math RPG quests from study logs).
  2. Connect your Google Sheets credential and replace ENTER_YOUR_SPREADSHEET_ID_HERE with your actual Sheet ID.
  3. Connect your OpenAI or OpenRouter credential in the LLM node.
  4. Open the "Quiz Answer Form" and enter your user ID and answer to test the battle!

Requirements

  • A Google account (for Google Sheets)
  • An OpenAI or OpenRouter API key

How to customize the workflow

You can easily customize the "Generate Victory Message" prompt to match different themes, like a sci-fi battle, a magic school, or historical events!

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - OpenRouter Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenRouter - lmChatOpenRouter
Config choices
Version 1

Block 2 - Quiz Answer Form

Type / Role
n8n-nodes-base.formTrigger - formTrigger
Config choices
Version 2.3

Block 3 - Return Miss Message

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 4 - Generate Victory Message

Type / Role
@n8n/n8n-nodes-langchain.chainLlm - chainLlm
Config choices
Version 1.7

Block 5 - Find Pending Quest

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Block 6 - Check Answer

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.3

Block 7 - Update Quest Status

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Block 8 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 9 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 10 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 11 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 12 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Judge AI math RPG answers with OpenAI/OpenRouter and update quests in Google Sheets
Complexity intermediate
Nodes 12
Categories Personal Productivity, Multimodal AI
Author TAKUTO ISHIKAWA
Published 20 Mar 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/14194/14194.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Judge AI math RPG answers with OpenAI/OpenRouter and update quests in Google Sheets do?

Judge AI math RPG answers and update quest status in Google Sheets Who it's for This template is for educators, parents, or self learners who want to gamify their study routines. This is Part 2 of ...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Personal Productivity, Multimodal AI use case.