Templates / Compare GPT-4, Claude & Gemini Responses with Contextual AI's LMUnit Evaluation

Compare GPT-4, Claude & Gemini Responses with Contextual AI's LMUnit Evaluation

Unknown

by Jinash Rouniyar ✓ · 9,292 views · created 2025-12-09 · Engineering, AI Summarization

Unknown. This template uses community nodes we can't verify statically. Uses community nodes that can't be verified statically (unverified community packages are off by default in 3.0). Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 16 nodes and runs when a chat message arrives. Along the way it connects OpenAI, Google Gemini, Anthropic and Contextualai (community).

How it runs

Trigger: When a chat message arrives.

  1. OpenAI: uses OpenAI
  2. Gemini 2.5 Flash (Google Gemini): uses Google Gemini
  3. Claude 4.5 Sonnet (Anthropic): uses Anthropic
  4. Preprocess OpenAI Response (Edit Fields (Set)): sets 2 fields: provider, response
  5. Preprocess Gemini Response (Edit Fields (Set)): sets 2 fields: provider, response
  6. Preprocess Anthropic Response (Edit Fields (Set)): sets 2 fields: provider, response
  7. Combine responses (Merge): merges the data from its input branches
  8. Add unit tests to responses (Code): runs custom JavaScript code
  9. Iterate over each unit tests (Loop Over Items (Split in Batches)): loops over the items in batches
  10. Format Final Result (Code): runs custom JavaScript code

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

Services it uses

OpenAIGoogle GeminiAnthropicContextualai (community)

Before you upgrade to n8n 3.0

We can't fully verify this one: it relies on 1 community package, and n8n 3.0 turns unverified community packages off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).

  • Check that n8n-nodes-contextualai is verified or supports 3.0 (used in Run LMUnit).

Nodes used (11)

From the author

PROBLEM Evaluating and comparing responses from multiple LLMs (OpenAI, Claude, Gemini) can be challenging when done manually. - Each model produces outputs that differ in clarity, tone, and reasoning structure. - Traditional evaluation metrics like ROUGE or…

Excerpt from Jinash Rouniyar'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.