Skip to main content

Automate LLM testing with GPT-4 judge & Google Sheets tracking

Workflow preview

Workflow preview
100%
Automate LLM testing with GPT-4 judge & Google Sheets tracking preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

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

Best for

  • Engineering automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.merge, @n8n/n8n-nodes-langchain.outputparserstructured, n8n-nodes-base.googlesheets, n8n-nodes-base.stickynote, n8n-nodes-base.limit, n8n-nodes-base.set, n8n-nodes-base.httprequest, n8n-nodes-base.webhook

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Automate LLM testing with GPT-4 judge & Google Sheets tracking
Workflow name
Automate LLM testing with GPT-4 judge & Google Sheets tracking

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 Reference Answer fields from the spreadsheet to mark each LLM response as Pass/Fail
  • The results are logged into a separate sheet in the same Sheets file.

Set up steps:

  • Add your credentials for Google Sheets and OpenRouter (or replace the OpenRouter node with your favourite chat model).
  • Make a copy of the example Sheet to populate it with you own test data.
  • Run the workflow with the Execute Workflow button next to the Manual Trigger node.

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 - Merge

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.1

Block 2 - Structured Output Parser

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.2

Block 3 - Update Results

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

Block 4 - Sticky Note4

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

Block 5 - Sticky Note8

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

Block 6 - Sticky Note9

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

Block 7 - Sticky Note15

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

Block 8 - Sticky Note16

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

Block 9 - Limit

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

Block 10 - Extract Data

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 11 - Get Tests

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

Block 12 - Execute Subworkflow

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 13 - Webhook

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

Block 14 - Basic LLM Chain

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

Block 15 - OpenRouter Chat Model

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

Block 16 - Keep Original Data

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 17 - Manual Trigger

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

3. Summary Table

Workflow Automate LLM testing with GPT-4 judge & Google Sheets tracking
Complexity advanced
Nodes 17
Categories Engineering, AI Summarization
Author Adam Janes
Published 16 Jul 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/6041/6041.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 Automate LLM testing with GPT-4 judge & Google Sheets tracking do?

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

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 Engineering, AI Summarization use case.