A library patron asks, “Can I pick up my reservation on Friday?” The automated desk promises the book will be ready, then forwards the message to renewals. The reply could send the patron to the library on an unverified promise, while the pickup staff never receive the request. A single answer-quality rating would give the librarian little help deciding which part of the workflow needs repair.
n8n's newly published guide describes ways to test applications that use large language models, from ordinary code checks to human review. Its existing evaluation tools let workflow builders rerun the same inputs after a change. A library desk provides a practical example: the routing decision determines which queue receives a request, while the reply determines what the patron believes. Each needs its own test before a revised prompt can be judged an improvement. [1] [2]
Give each row a job
A small table can hold the first set of test cases. One column contains each incoming message as a patron might write it; another records the queue that should receive it. This example uses three labels: pickup, renewal and clarification. A separate reference column describes what a good reply must convey, such as requesting a reservation reference before confirming collection. Two further columns hold the actual label and response. n8n supports both Data Tables and Google Sheets for these quick evaluations. [2]
The cases should ask different things of the workflow. A reader who wants to keep a borrowed book longer presents a straightforward renewal. A parent with a reservation number who asks where to collect a book presents a pickup. A short message such as “Can I have it until Friday?” is less clear: the librarian may need to know whether the person already has the book. The expected behavior belongs in the table before the model runs, so a persuasive first answer cannot quietly become the answer key.
Some messages reveal gaps in the library's policy. A patron might want to renew one book and collect another. If nobody has decided which desk handles mixed requests, the test author has no defensible label to enter. The person running the desk needs to settle that question before the case joins the dataset. A recorded rule then gives reviewers a stable reference when two prompt versions disagree, instead of leaving the result to whoever happens to read the spreadsheet.
Connect the evaluation to the real workflow
An Evaluation Trigger connects the dataset to the workflow, with each row supplying inputs for one execution. During setup, the builder can limit the maximum rows to one, execute the node and inspect the outgoing message and reference fields before running a model. The patron's question should map to the input the model normally receives. The expected label belongs only on the scoring side; including it in the prompt would allow the workflow to read the answer to its own test. [2]
The evaluation path should use the same processing steps as the normal trigger. If a live form names its field “message” and the spreadsheet uses “question,” both can map to a common field at the entrance. Two separate copies of the routing prompt create a risk that the test uses yesterday's configuration while patrons encounter today's. The evaluation node's Set Outputs operation belongs after the workflow has produced its label and reply, with each result mapped to the corresponding output column. [2]
One completed row can reveal a mapping problem before the builder runs the rest. An answer in the label column indicates that the fields need correcting. Blank outputs call for a look at the row's execution to find where the data disappeared. Once the fields line up, the full dataset gives the librarian a side-by-side view of each question, its reference and the actual result. A small quick-evaluation table remains manageable enough to inspect one case at a time. [2]
Choose a score that explains the failure
For routing, n8n’s Categorization metric checks for an exact match with the reference and returns one or zero. That is a useful definition when a downstream system requires an exact label. A response of “probably renewal” may communicate the right idea to a person while breaking the queue selector. A separate code check can flag labels outside the permitted set. If “pickup” passes that check but the reference says “renewal,” the reviewer should examine how the prompt interpreted “until Friday.” An invented fourth label instead points the reviewer toward the workflow's output constraints. [1] [3]
Replies allow more latitude. The phrases “Which reservation is this for?” and “Could you send the reservation number?” serve much the same purpose. Character-level String Similarity measures edit distance and can penalize legitimate wording changes. n8n’s AI-based Correctness metric instead compares meaning with a supplied answer on a scale of one to five. Helpfulness, also scored from one to five, considers how well the reply addresses the query. A confident promise of Friday collection might sound helpful while contradicting the information actually available. Those scores need separate review. [3]
Set Metrics runs after the outputs exist. n8n documents a Check If Evaluating operation for work that should run on the evaluation branch, including scoring that would add time or model calls to normal requests. From the Evaluations tab, Run Test lets the builder compare runs. A prompt revision should be tested against the same reference rows. If the library also changes its mixed-request policy that week, the test record should identify the changed expectation before anyone credits the prompt with an improvement. [3]
Read the rows behind the score
Two versions might each miss one case. The earlier one misroutes a mixed request but asks a sensible follow-up. Its replacement routes that request correctly and invents a pickup time for someone else. Their routing or overall averages can hide a trade a librarian would care about. The changed executions show what data the workflow actually received. No prompt can verify a collection time from a reservation system the workflow never consulted.
n8n’s guide also distinguishes tests run against a prepared dataset from evaluation of live behavior. A table can show whether a known defect comes back. It cannot reveal a request nobody thought to include. When staff encounter a new kind of failure, they can add a representative example with identifying details removed and a human-checked reference. In the Friday pickup example, the input deliberately omits the reservation status. When the revised workflow runs, the librarian should be able to find two things in the output row: the pickup queue and a reply that asks for the missing information before promising a collection time. [1] [4]
Sources
[1] n8n guide to LLM evaluation
[2] n8n documentation on quick evaluations
[3] n8n documentation on metrics-based evaluation
[4] n8n introduction to testing AI workflows
Have a correction or a useful perspective?
Get in touch with the publication.


