Templates / Evaluate AI prompts with OpenRouter LLM-as-judge and Notion reports

Evaluate AI prompts with OpenRouter LLM-as-judge and Notion reports

Ready for 3.0

by Salim BRAHMI ✓ · 18 views · created 2026-06-23 · 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 17 nodes and runs when someone submits an n8n form (“Evaluate AI prompt quality with LLM-as-Judge and save result”). Along the way it connects OpenRouter Chat Model and Notion.

How it runs

Trigger: When someone submits an n8n form (“Evaluate AI prompt quality with LLM-as-Judge and save result”).

  1. Set Notion IDs (Edit Fields (Set)): sets 2 fields: NOTION_PARENT_PAGE_ID, NOTION_DATABASE_ID
  2. Dataset Generator (AI Agent): runs an AI agent, with model: OpenAI Dataset Generator
  3. Flatten Dataset Code (Code): runs custom JavaScript code
  4. Batch Process Items (Loop Over Items (Split in Batches)): loops over the items in batches
  5. Collate Evaluation Results (Code): runs custom JavaScript code
  6. Upload Item to Notion (Notion): work with database page
  7. Prepare Evaluation Item (Code): runs custom JavaScript code
  8. Synthesis Agent (AI Agent): runs an AI agent, with model: OpenAI Synthesis Agent
  9. Answer Agent (AI Agent): runs an AI agent, with model: OpenAI Answer Agent
  10. Upload Report to Notion (Notion): uses Notion

…plus 2 more steps. See the full node list below.

Services it uses

OpenRouter Chat ModelNotion

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

From the author

Quick overview This workflow collects a prompt and model choice via an n8n Form, uses OpenRouter LLMs to generate an evaluation dataset, run the prompt against each test case, and grade the responses, then saves per-item results and a synthesized one-line…

Excerpt from Salim BRAHMI'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.