Evaluation metric example: String similarity
Ready for 3.0What 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).
- Download image (HTTP Request): calls an HTTP API
- Match webhook format (Edit Fields (Set)): sets or maps fields
- Extract code from image (OpenAI): analyze (image)
- Evaluating? (Evaluation): check if evaluating
- Calc string distance (Code): runs custom JavaScript code
- Respond to Webhook: sends the response back to the webhook caller
- Set metrics (Evaluation): set metrics
Services it uses
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)
- Edit Fields (Set)
n8n-nodes-base.set - Webhook
n8n-nodes-base.webhook - Evaluation Trigger
n8n-nodes-base.evaluationTrigger - Respond to Webhook
n8n-nodes-base.respondToWebhook - Evaluation
n8n-nodes-base.evaluation - OpenAI
@n8n/n8n-nodes-langchain.openAi - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest
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…