Benchmark LLM performance on legal documents with Google Sheets and OpenRouter
Ready for 3.0What this workflow does
This AI workflow has 15 nodes and runs manually, when you click “Execute workflow” (plus 1 other trigger). Along the way it connects Google Sheets, Google Drive 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
- Save Input/Output (Edit Fields (Set)): sets or maps fields
- Is PDF? (If): checks a condition and branches into true / false
- Merge: merges the data from its input branches
- Google Drive: download
- Limit: keeps the first few items
- Extract from File: extracts data from a file (pdf)
- Execute Subworkflow (HTTP Request): calls webhook-processor-production-48f8.up.railway.app (POST)
- Basic LLM Chain: sends a prompt to an LLM, with model: OpenRouter Chat Model; output parser: Structured Output Parser
…plus 1 more step. See the full node list below.
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 (13)
- Manual Trigger
n8n-nodes-base.manualTrigger - Webhook
n8n-nodes-base.webhook - Merge
n8n-nodes-base.merge - Google Sheets
n8n-nodes-base.googleSheets - If
n8n-nodes-base.if - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Google Drive
n8n-nodes-base.googleDrive - Extract from File
n8n-nodes-base.extractFromFile - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - OpenRouter Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenRouter - Limit
n8n-nodes-base.limit
From the author
This workflow demonstrates a simple way to run evals on a set of test cases stored in a Google Sheet. The example we are using comes from an info extraction task dataset, where we tested 6 different LLMs on 18 different test cases. This workflow extends the…