Judge AI math RPG answers with OpenAI/OpenRouter and update quests in Google Sheets
Ready for 3.0What this workflow does
This AI workflow has 7 nodes and runs when someone submits an n8n form (“AI Math RPG - Attack (Answer) Form”). Along the way it connects OpenRouter Chat Model and Google Sheets.
How it runs
Trigger: When someone submits an n8n form (“AI Math RPG - Attack (Answer) Form”).
- Find Pending Quest (Google Sheets): uses Google Sheets
- Check Answer (If): checks a condition and branches into true / false
- Update Quest Status (Google Sheets): update
- Return Miss Message (Code): runs custom JavaScript code
- Generate Victory Message (Basic LLM Chain): sends a prompt to an LLM, with model: OpenRouter Chat Model
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (6)
- OpenRouter Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenRouter - n8n Form Trigger
n8n-nodes-base.formTrigger - Code
n8n-nodes-base.code - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Google Sheets
n8n-nodes-base.googleSheets - If
n8n-nodes-base.if
From the author
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…