Templates / Evaluate tool usage accuracy in multi-agent AI workflows using evaluation nodes

Evaluate tool usage accuracy in multi-agent AI workflows using evaluation nodes

Needs changes

by Angel Menendez ✓ · 20,705 views · created 2025-07-01 · Engineering, AI Summarization

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-10-19.

What to replace before upgrading

Removed in 3.0Replace with
AI Agent v1 (old agent modes)
Search Agent (v1.9)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Nodes used (12)

CalculatorEvaluationAI AgentCall n8n WorkflowHTTP RequestOpenRouter Chat ModelEmbeddings OpenAIQdrant Vector Store

What it does

Who's it for ------------ This workflow is ideal for AI developers running multi-agent systems in n8n who need to quantitatively evaluate tool usage behavior. If you're building autonomous agents and want to verify their decisions against ground-truth expectations, this workflow gives you plug-and-play observability. What it does ------------ This template uses n8n's built-in Evaluation Trigger and Evaluation nodes to assess whether an AI agent correctly used all the expected tools. It supports: - Dataset-driven testing of agent behavior - Logging actual tools to compare them with the expected tools - Assigning performance metrics (toolcalled = true/false) - Persisting output back to Google Sheets for further debugging The workflow can be triggered by either the chat input or the dataset row evaluation. It routes through a multi-tool agent node powered by the best LLMs. The agent has access to tools such as web search, calculator, vector search, and summarizer tools. The workflow then aims to validate tool use decisions by extracting the intermediate steps from the agent (i.e., action + observation) and comparing the tools that were called with the expected tools. If the tools that were called during the workflow execution match, then it's a pass; otherwise, it's documented as a fail. The evaluation nodes take care of that process. How to set it up ---------------- 1. Connect your Google Sheets OAuth2 credential. Replace the document with your own test dataset. 2. Set your desired models and configure the different agent tools, such as the summarizer and vector store. The default vector store used is Qdrant, so the user must create this vector store with a few samples of queries + web search results. 3. Run from either the chat trigger or the evaluation trigger to test. Requirements ------------ - Google Sheets OAuth2 credential - OpenRouter / OpenAI credentials for AI agents and embeddings - Firecrawl and Qdrant credentials for web + vector search How to customize ---------------- - Edit the Search Agent system message to define tool selection behavior - Add more metric columns in the Evaluation node for complex scoring - Add new tool nodes and link them to the agent block - Swap in your own summarizer

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.