Templates / Evaluation metric example: String similarity

Evaluation metric example: String similarity

Ready for 3.0

by David Roberts ✓ · 1,514 views · created 2025-05-21 · 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 9 nodes and runs when an HTTP GET request hits its webhook URL (plus 1 other trigger). Along the way it connects Evaluation and OpenAI.

How it runs

Trigger: When an HTTP GET request hits its webhook URL (plus 1 other trigger).

  1. Download image (HTTP Request): calls an HTTP API
  2. Match webhook format (Edit Fields (Set)): sets or maps fields
  3. Extract code from image (OpenAI): analyze (image)
  4. Evaluating? (Evaluation): check if evaluating
  5. Calc string distance (Code): runs custom JavaScript code
  6. Respond to Webhook: sends the response back to the webhook caller
  7. Set metrics (Evaluation): set metrics

Services it uses

EvaluationOpenAI

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 (8)

From the author

AI evaluation in n8n This is a template for n8n's evaluation feature. Evaluation is a technique for getting confidence that your AI workflow performs reliably, by running a test dataset containing different inputs through the workflow. By calculating a metric…

Excerpt from David Roberts'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.