Skip to main content

Combine answers from OpenAI, Anthropic, Gemini and Groq into one consensus

Workflow preview

Workflow preview
100%
Combine answers from OpenAI, Anthropic, Gemini and Groq into one consensus preview
Open on n8n.io

1. Workflow Overview

Stop trusting one model. Let multiple LLMs show you where they agree and where they don't. Ask the same question to multiple LLMs and get one answer you can actually trust. Instead of hoping one mo...

Best for

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

Tools used

n8n-nodes-base.stickynote, @n8n/n8n-nodes-langchain.lmchatgroq, @n8n/n8n-nodes-langchain.chattrigger, @n8n/n8n-nodes-langchain.chat, n8n-nodes-base.code, n8n-nodes-base.merge, n8n-nodes-base.set, @n8n/n8n-nodes-langchain.lmchatgooglegemini

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Combine answers from OpenAI, Anthropic, Gemini and Groq into one consensus
Workflow name
Combine answers from OpenAI, Anthropic, Gemini and Groq into one consensus

Stop trusting one model. Let multiple LLMs show you where they agree and where they don't.

Ask the same question to multiple LLMs and get one answer you can actually trust. Instead of hoping one model gets it right, this workflow sends your question to four models at once, compares what they say, and catches the ones that sound confident but are probably wrong.

This is not a "chain models together" template. Instead of trusting one model's answer, it makes multiple models prove they agree by checking every answer against the others and showing you exactly how much they align.

How it works

The workflow runs in four stages:

  1. Ask in parallel: Your question goes to four LLMs at the same time. Each model answers on its own and reports how confident it is. No model sees what the others said.
  2. Compare answers: A similarity engine checks how much the answers actually agree. It uses two different methods (Jaccard and Cosine) plus extra checks for short answers. So if one model says "4" and another says "The answer is 4," both get credit for agreeing.
  3. Calibrate confidence: This is the key part. The system looks at what each model claims versus what the others actually said. A model saying it is 95% sure while everyone else disagrees? Its confidence gets cut. A model that is unsure but matches what the group said? Its confidence goes up. Overconfident outliers are usually the first sign of a hallucination.
  4. Deliver the result: If models agree, you get a single weighted answer with a visual bar showing how strong the agreement is. If they properly disagree, the system switches to peer review mode and shows every answer so you can decide for yourself.

Key Benefits

  • Catches hallucinations with maths, not prompts. An overconfident model that disagrees with the group gets its score reduced automatically.
  • Three clear tiers. Strong agreement gets a green label. Partial agreement gets yellow. Weak agreement gets orange. You always know how much to trust the response.
  • Works with any LLM you want. Default setup uses OpenAI, Anthropic, Gemini, and Groq. Swap any of them or add more.
  • Tells you when a model fails. If one provider is down or not set up yet, the response says so instead of breaking silently.

Setup

  • Add your API credentials.
  • Activate the workflow and open the production chat URL.
  • Type any question and wait for the consensus analysis

Who this is for

  • AI engineers comparing model reliability across different providers
  • Product teams that need dependable AI answers for things users will see
  • Researchers looking at how different LLMs handle the same question
  • Anyone who has been burned by one model confidently making things up

Required APIs & Credentials

Add credentials for the LLM providers you want to use. The default setup includes OpenAI, Anthropic, Google Gemini, and Groq, but you can swap or remove any of them.

How to customise it

  • Swap models: Replace any LLM node with a different provider. Add more branches if you want and update the Merge node input count.
  • Adjust the calibration: Open the Confidence Calibration node and change what counts as overconfident, underconfident, or divergent.
  • Change the agreement tiers: In the Format Chat Message node, the defaults are green at 70%, yellow at 40%, orange below that.
  • Use a different trigger: Replace the chat trigger with a webhook, Slack command, or scheduled trigger.
  • Send the output somewhere: The structured JSON from Format Final Output works with Google Sheets, databases, dashboards, or any other workflow.

Known limitations

This workflow picks the answer most models agree on. That works well for factual questions. But if three models share the same wrong answer and one model gets it right, the correct answer gets penalised for being the outlier. For trick questions or topics where popular knowledge is wrong, keep that in mind.

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 - Sticky Note

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

Block 2 - Groq Chat Model3

Type / Role
@n8n/n8n-nodes-langchain.lmChatGroq - lmChatGroq
Config choices
Version 1

Block 3 - Sticky Note5

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

Block 4 - Sticky Note6

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

Block 5 - Sticky Note7

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

Block 6 - When chat message received

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

Block 7 - Chat

Type / Role
@n8n/n8n-nodes-langchain.chat - chat
Config choices
Version 1.3

Block 8 - Parse & Validate Responses

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 9 - Similarity Analysis

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 10 - Confidence Calibration

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 11 - Weighted Consensus

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 12 - Peer Review Fallback

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 13 - Format Output (chat message)

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 14 - Format Final Output

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 15 - Sticky Note8

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

Block 16 - Merge All 4 LLMs

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3

Block 17 - Set User Prompt

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

Block 18 - Google Gemini Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - lmChatGoogleGemini
Config choices
Version 1

Block 19 - Anthropic Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatAnthropic - lmChatAnthropic
Config choices
Version 1.3

Block 20 - OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.3

Block 21 - LLM1

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 3.1

Block 22 - LLM2

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 3.1

Block 23 - LLM3

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 3.1

Block 24 - LLM4

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 3.1

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

3. Summary Table

Workflow Combine answers from OpenAI, Anthropic, Gemini and Groq into one consensus
Complexity advanced
Nodes 25
Categories Engineering, AI Summarization
Author Mychel Garzon
Published 30 Mar 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/14497/14497.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 Combine answers from OpenAI, Anthropic, Gemini and Groq into one consensus do?

Stop trusting one model. Let multiple LLMs show you where they agree and where they don't. Ask the same question to multiple LLMs and get one answer you can actually trust. Instead of hoping one mo...

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.