Skip to main content

Synthesize and compare multiple LLM responses with OpenRouter council

Workflow preview

Workflow preview
100%
Synthesize and compare multiple LLM responses with OpenRouter council preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

This template adapts Andrej Karpathy’s LLM Council concept for use in n8n , creating a workflow that collects, evaluates, and synthesizes multiple large language model (LLM) responses to reduce ind...

Best for

  • Engineering automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.set, n8n-nodes-base.splitout, @n8n/n8n-nodes-langchain.chattrigger, n8n-nodes-base.httprequest, n8n-nodes-base.stickynote, n8n-nodes-base.aggregate, n8n-nodes-base.emailsend, n8n-nodes-base.code

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Ulf Morys.

Original n8n.io source

1.1 Workflow description

Title
Synthesize and compare multiple LLM responses with OpenRouter council
Workflow name
Synthesize and compare multiple LLM responses with OpenRouter council

This template adapts Andrej Karpathy’s LLM Council concept for use in n8n, creating a workflow that collects, evaluates, and synthesizes multiple large language model (LLM) responses to reduce individual model bias and improve answer quality.

🎯 The gist

This LLM Council workflow acts as a moderation board for multiple LLM “opinions”:

  • The same question is answered independently by several models.
  • All answers are anonymized.
  • Each model then evaluates and ranks all responses.
  • A designated Council Chairman model synthesizes a final verdict based on these evaluations.
  • The final output includes:
    • The original query
    • The Chairman’s verdict
    • The ranking of each response by each model
    • The original responses from all models

The goal is to reduce single‑model bias and arrive at more balanced, objective answers.

🧰 Use cases

This workflow enables several practical applications:

  • Receiving more balanced answers by combining multiple model perspectives
  • Benchmarking and comparing LLM responses
  • Exploring diverse viewpoints on complex or controversial questions

⚙️ How it works

  • The workflow leverages OpenRouter, allowing access to many LLMs through a single API credential.
  • In the Initialization node, you define:
    • Council member models: Models that answer the query and later evaluate all responses
    • Chairman model: The model responsible for synthesizing the final verdict
  • Any OpenRouter-supported model can be used: https://openrouter.ai/models
  • For simplicity:
    • Input is provided via a Chat Input trigger
    • Output is sent via an email node with a structured summary of the council’s results

👷 How to use

  • Select the LLMs to include in your council:
    • Council member models: Models that independently answer and evaluate the query. The default template uses:
      • openai/gpt-4o
      • google/gemini-2.5-flash
      • anthropic/claude-sonnet-4.5
      • perplexity/sonar-pro-search
    • Chairman model: Choose a model with a sufficiently large context window to process all evaluations and rankings.
  • Start the Chat Input trigger.
  • Observe the workflow execution and review the synthesized result in your chosen output channel.

⚠️ Avoid using too many models simultaneously. The total context size grows quickly (n responses + n² evaluations), which may exceed the Chairman model’s context window.

🚦 Requirements

  • OpenRouter API access configured in n8n credentials
  • SMTP credentials for sending the final council output by email (or replace with another output method)

🤡 Customizing this workflow

  • Replace the Chat Input trigger with alternatives such as Telegram, email, or WhatsApp.
  • Redirect output to other channels instead of email.
  • Modify council member and chairman models directly in the Initialization node by updating their OpenRouter model names.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Initialize Variables

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 2 - Split by Model

Type / Role
n8n-nodes-base.splitOut - splitOut
Config choices
Version 1

Block 3 - When chat message received

Type / Role
@n8n/n8n-nodes-langchain.chatTrigger - chatTrigger
Config choices
Version 1.4

Block 4 - Stage 1: Query Model Answers

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 5 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 7 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 8 - Stage 2: Query Model Answer Rankings

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 9 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 10 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 11 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 12 - Stage 3: Chairman Synthesis

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 13 - Stage 1: Extract Responses

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 14 - Stage 1: Aggregate Responses

Type / Role
n8n-nodes-base.aggregate - aggregate
Config choices
Version 1

Block 15 - Stage 2: Create Anonymized Responses

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 16 - Stage 2: Build Ranking Prompt

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 17 - Stage 2: Re-Add councilModels

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 18 - Stage 2: rankingPrompt per LLM

Type / Role
n8n-nodes-base.splitOut - splitOut
Config choices
Version 1

Block 19 - Stage 2: Extract Rankings

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 20 - Stage 3: Build ChairmanPrompt Part 1

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 21 - Stage 3: Build Chairman Prompt Part 2

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 22 - Stage 4: Format Output Part 1

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 23 - Stage 4: Format Output Part 2

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 24 - Stage 4: Send Result per Email

Type / Role
n8n-nodes-base.emailSend - emailSend
Config choices
Version 2.1

Showing the first 24 of 26 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Synthesize and compare multiple LLM responses with OpenRouter council
Complexity advanced
Nodes 26
Categories Engineering, AI Summarization
Author Ulf Morys
Published 30 Dec 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/12316/12316.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Synthesize and compare multiple LLM responses with OpenRouter council do?

This template adapts Andrej Karpathy’s LLM Council concept for use in n8n , creating a workflow that collects, evaluates, and synthesizes multiple large language model (LLM) responses to reduce ind...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Engineering, AI Summarization use case.