Templates / Debate and validate chat answers with GPT‑5, Claude Sonnet and Claude Opus

Debate and validate chat answers with GPT‑5, Claude Sonnet and Claude Opus

Ready for 3.0

by Huseyin Hobek ✓ · 35 views · created 2026-09-22 · Internal Wiki, AI Chatbot

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 19 nodes and runs when a chat message arrives. Along the way it connects OpenAI Chat Model, Anthropic Chat Model and Google Gemini Chat Model.

How it runs

Trigger: When a chat message arrives.

  1. Set debate settings (Edit Fields (Set)): sets 7 fields: question, domain, maxRounds…
  2. Debater (AI Agent): runs an AI agent, with model: Debater model: OpenAI
  3. Reviewer (AI Agent): runs an AI agent, with model: Reviewer model: Anthropic
  4. Parse verdict (Code): runs custom JavaScript code
  5. Reviewer agrees? (If): checks a condition and branches into true / false
  6. Judge (AI Agent): runs an AI agent, with model: Judge model: Google Gemini
  7. Rounds left? (If): checks a condition and branches into true / false
  8. Parse decision (Code): runs custom JavaScript code
  9. Add reviewer feedback (Code): runs custom JavaScript code
  10. Judge approved? (If): checks a condition and branches into true / false

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

Services it uses

OpenAI Chat ModelAnthropic Chat ModelGoogle Gemini Chat Model

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 (9)

From the author

Quick overview Ask a question in chat and get an answer that survived review: one model drafts it, a second challenges it, and a third rules on the result, either approving the answer or replacing it with its own corrected version. How it works 1. Receives a…

Excerpt from Huseyin Hobek'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.