Templates / Benchmark LLM performance on legal documents with Google Sheets and OpenRouter

Benchmark LLM performance on legal documents with Google Sheets and OpenRouter

Ready for 3.0

by Adam Janes ✓ · 860 views · created 2025-06-20 · Engineering, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What 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).

  1. Get Tests (Google Sheets): uses Google Sheets
  2. Keep Original Data (Edit Fields (Set)): sets or maps fields
  3. Save Input/Output (Edit Fields (Set)): sets or maps fields
  4. Is PDF? (If): checks a condition and branches into true / false
  5. Merge: merges the data from its input branches
  6. Google Drive: download
  7. Limit: keeps the first few items
  8. Extract from File: extracts data from a file (pdf)
  9. Execute Subworkflow (HTTP Request): calls webhook-processor-production-48f8.up.railway.app (POST)
  10. 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

Google SheetsGoogle DriveOpenRouter Chat Model

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)

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…

Excerpt from Adam Janes's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.