Skip to main content

Score customer support AI responses with GPT‐4 judge metrics

Workflow preview

Workflow preview
100%
Score customer support AI responses with GPT‐4 judge metrics preview
Open on n8n.io

1. Workflow Overview

Score open ended AI responses with a judge model. This template shows how to evaluate a customer support agent using a separate LLM that rates each response on correctness and helpfulness, going be...

Best for

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

Tools used

n8n-nodes-base.stickynote, @n8n/n8n-nodes-langchain.chattrigger, n8n-nodes-base.evaluationtrigger, n8n-nodes-base.code, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatopenai, n8n-nodes-base.evaluation, n8n-nodes-base.noop

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Score customer support AI responses with GPT‐4 judge metrics
Workflow name
Score customer support AI responses with GPT‐4 judge metrics

Score open-ended AI responses with a judge model. This template shows how to evaluate a customer support agent using a separate LLM that rates each response on correctness and helpfulness, going beyond what exact match scoring can capture.

What you'll do

Open the workflow and review the production path (chat trigger, AI Agent generates a support response, response returned to the user). Open the Evaluations tab and click Run Test to feed question + expected answer pairs through the AI Agent. Watch the judge model score each response on correctness (1-5) and helpfulness (1-5). Review per-test-case scores in the Evaluations tab alongside token usage and execution time.

What you'll learn

How LLM-as-a-Judge works and when it beats deterministic scoring How to wire a separate judge model into your evaluation path How to write a custom scoring prompt that returns a numeric score and a justification When to use n8n's built-in Correctness and Helpfulness metrics versus a custom judge

Why it matters

Customer-facing responses are subjective. A response can be technically accurate but tonally wrong, or polite but useless. LLM-as-a-Judge gives you a measurable signal for the kind of quality that matters but resists simple matching, so you can iterate on prompts with confidence instead of guesswork.

This template is a learning companion to the Production AI Playbook, a series that explores strategies, shares best practices, and provides practical examples for building reliable AI systems in n8n.

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 - Sticky Note

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

Block 2 - When chat message received

Type / Role
@n8n/n8n-nodes-langchain.chatTrigger - chatTrigger
Config choices
Version 1.1

Block 3 - When fetching a dataset row

Type / Role
n8n-nodes-base.evaluationTrigger - evaluationTrigger
Config choices
Version 4.6

Block 4 - Format eval input

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

Block 5 - AI Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 1.9

Block 6 - OpenAI Chat Model

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

Block 7 - Evaluating?

Type / Role
n8n-nodes-base.evaluation - evaluation
Config choices
Version 4.6

Block 8 - Return chat response

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

Block 9 - Judge - Score Response

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.8

Block 10 - Evaluation - Set Outputs

Type / Role
n8n-nodes-base.evaluation - evaluation
Config choices
Version 4.6

Block 11 - Set Metrics

Type / Role
n8n-nodes-base.evaluation - evaluation
Config choices
Version 4.6

Block 12 - Sticky Note2

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

Block 13 - Sticky Note3

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

Block 14 - Sticky Note4

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

3. Summary Table

Workflow Score customer support AI responses with GPT‐4 judge metrics
Complexity intermediate
Nodes 14
Categories Engineering, AI Summarization
Author Elvis Sarvia
Published 18 Apr 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/15134/15134.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 Score customer support AI responses with GPT‐4 judge metrics do?

Score open ended AI responses with a judge model. This template shows how to evaluate a customer support agent using a separate LLM that rates each response on correctness and helpfulness, going be...

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.