Automate LLM testing with GPT-4 judge & Google Sheets tracking
Ready for 3.0What this workflow does
This AI workflow has 12 nodes and runs manually, when you click “Execute workflow” (plus 1 other trigger). Along the way it connects Google Sheets and OpenRouter Chat Model. It also calls webhook-processor-production-48f8.up.railway.app over HTTP.
How it runs
Trigger: Manually, when you click “Execute workflow” (plus 1 other trigger).
- Get Tests (Google Sheets): uses Google Sheets
- Keep Original Data (Edit Fields (Set)): sets or maps fields
- Extract Data (Edit Fields (Set)): sets or maps fields
- Limit: keeps the first few items
- Merge: merges the data from its input branches
- Basic LLM Chain: sends a prompt to an LLM, with model: OpenRouter Chat Model; output parser: Structured Output Parser
- Execute Subworkflow (HTTP Request): calls webhook-processor-production-48f8.up.railway.app (POST)
- Update Results (Google Sheets): append or update
Services it uses
HTTP calls to: webhook-processor-production-48f8.up.railway.app
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 (10)
- Merge
n8n-nodes-base.merge - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Google Sheets
n8n-nodes-base.googleSheets - Limit
n8n-nodes-base.limit - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - Webhook
n8n-nodes-base.webhook - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - OpenRouter Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenRouter - Manual Trigger
n8n-nodes-base.manualTrigger
From the author
How it works - The workflow loads a list of test cases from a Google Sheet (previous results stored from an LLM) - For each test case, we execute a call to an LLM judge in parallel (using HTTP Request + Webhook nodes) - The judge uses the Input, Output, and…