Combine answers from OpenAI, Anthropic, Gemini and Groq into one consensus
Ready for 3.0What this workflow does
This AI workflow has 20 nodes and runs when a chat message arrives. Along the way it connects Groq Chat Model, Google Gemini Chat Model, Anthropic Chat Model and OpenAI Chat Model.
How it runs
Trigger: When a chat message arrives.
- Set User Prompt (Edit Fields (Set)): sets 1 field: userPrompt
- LLM4 (AI Agent): runs an AI agent, with model: Groq Chat Model
- LLM (AI Agent): runs an AI agent, with model: OpenAI Chat Model
- LLM2 (AI Agent): runs an AI agent, with model: Anthropic Chat Model
- LLM1 (AI Agent): runs an AI agent, with model: Google Gemini Chat Model
- Merge: merges the data from its input branches
- Parse & Validate Responses (Code): runs custom JavaScript code
- Similarity Analysis (Code): runs custom JavaScript code
- Confidence Calibration (Code): runs custom JavaScript code
- Check for Extreme Divergence (If): checks a condition and branches into true / false
…plus 5 more steps. See the full node list below.
Services it uses
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 (11)
- Groq Chat Model
@n8n/n8n-nodes-langchain.lmChatGroq - Chat Trigger
@n8n/n8n-nodes-langchain.chatTrigger - Chat
@n8n/n8n-nodes-langchain.chat - Code
n8n-nodes-base.code - Merge
n8n-nodes-base.merge - Edit Fields (Set)
n8n-nodes-base.set - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Anthropic Chat Model
@n8n/n8n-nodes-langchain.lmChatAnthropic - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - AI Agent
@n8n/n8n-nodes-langchain.agent - If
n8n-nodes-base.if
From the author
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…