⚒️ Generate consensus answers with multiple AI models & peer review system

634 views · ⚒️ Engineering

Description

AI Council: Multi-Model Consensus with Peer Review

Inspired by Andrej Karpathy’s LLM Council, but rebuilt in n8n.

This workflow creates a “council” of AI models that independently answer your question, then peer-review each other’s responses before a final arbiter synthesizes the best answer.


Who is this for?


How it works

  1. Ask a Question — Submit your query via the Chat Trigger
  2. Individual Answers — Four different models (Gemini, Llama, Gemma, Mistral) independently generate responses
  3. Peer Review — Each model reviews ALL answers, identifying pros, cons, and overall assessment
  4. Final Synthesis — DeepSeek R1 analyzes all peer reviews and produces a refined, consensus-based final answer

Setup Instructions

Prerequisites

Steps

  1. Create OpenRouter credentials in n8n:
    • Go to Settings → Credentials → Add Credential
    • Select “OpenRouter” and paste your API key
  2. Connect all model nodes to your OpenRouter credential. In this example I used Gemini, Llama, Gemma, Mistral and Deepseek, but you can use whatever you want. You can also use the same models, but change their parameters. Play around to find out what suits you best.
  3. Activate the workflow and open the Chat interface to test

Customization Ideas

🔗 Nodes Used

AI Agent, Basic LLM Chain, Chat Trigger, OpenRouter Chat Model

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup