# Simulate debates between AI agents with Mistral: n8n workflow

> Started by a clock, and works across Email. It puts Mistral behind a retrieval step, so answers are drawn from documents you supply rather than from the...

Source: https://millionrounds.com/workflow/simulate-debates-between-ai-agents-with-mistral (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [AI assistants](https://millionrounds.com/workflows?category=AI+assistants#library)

# Simulate debates between AI agents with Mistral

Started by a clock, and works across Email. It puts Mistral behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 24 steps, 1 branch, 5 loops or waits: large, and worth reading before you trust it with anything live.

Large Calls a model: Mistral Retrieval

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fsimulate-debates-between-ai-agents-with-mistral)

**24 steps** Large: read it before trusting it with anything live

**1** Branch: places the flow splits

**5** Loops or waits

**1** Service it connects to

## The flow

Starts it 2 Model 8 Logic 12 Service 2

The steps in the order they run, from what starts it.

- 1 **Schedule** Schedule trigger *Starts it*
- 2 **When clicking ‘Execute workflow’** Manual trigger *Starts it*
- 3 **Email Trigger (IMAP)** Email Read Imap *Service*
- 4 **Mistral Cloud Chat Model** Lm Chat Mistral Cloud *Model*
- 5 **Simple Memory** Memory Buffer Window *Model*
- 6 **JSON Output Parser** Output Parser Structured *Model*
- 7 **Mistral Cloud Chat Model 2** Lm Chat Mistral Cloud *Model*
- 8 **JSON Output Parser 2** Output Parser Structured *Model*
- 9 **Simple Memory 2** Memory Buffer Window *Model*
- 10 **Configure Workflow Args** Global Constants *Service*
- 11 **Debate Actor Abstraction** Agent *Model*
- 12 **Debate Environment** Agent *Model*
- 13 **Prepare Input** Set *Logic*
- 14 **Wait 1** Wait *Logic*
- 15 **If No More Rounds** If *Logic*
- 16 **Guarantee Input** Set *Logic*
- 17 **Wait 2** Wait *Logic*
- 18 **End of Debate** No Op *Logic*
- 19 **Update Input** Set *Logic*
- 20 **Round Loop** Split In Batches *Logic*
- 21 **Debate Loop** Split In Batches *Logic*
- 22 **Split Out AI Agents** Split Out *Logic*
- 23 **Aggregate** Aggregate *Logic*
- 24 **Wait Before Sending Agents** Wait *Logic*

## How it's built

- **Starts on:** A clock
- **Steps:** 24, with 1 branch, 5 loops or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Email
- **Model:** Mistral
- **Retrieval:** Answers are drawn from documents you supply, not from the model alone

## Questions

What does it need to run?

An n8n account, plus your own Email account, and a key for Mistral. You connect your own accounts after importing it; none are included.

What starts it?

It starts on a clock.

Does it use AI?

Yes. It calls Mistral. Its answers draw on documents you give it, not on the model alone. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 24 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 24 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fsimulate-debates-between-ai-agents-with-mistral)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Email](https://millionrounds.com/workflows?service=Email#library)

## Workflows like it

Also ai assistants, with the same services where possible, closest in size first.

- [**Generate a weekly meal plan in Tandoor with OpenAI** 22 steps · calls a model · Email](https://millionrounds.com/workflow/generate-a-weekly-meal-plan-in-tandoor-with-openai)
- [**Trip concierge with OpenRouter** 22 steps · calls a model · Email, n8n data table](https://millionrounds.com/workflow/trip-concierge-with-openrouter)
- [**Cybersecurity Intelligence: Create Daily Digest & Viral Topics** 21 steps · calls a model · Baserow, Email](https://millionrounds.com/workflow/cybersecurity-intelligence-create-daily-digest-and-viral-top)
- [**Parse Gmail inbox and transform into Todoist tasks with OpenAI** 21 steps · calls a model · Email, Gmail](https://millionrounds.com/workflow/parse-gmail-inbox-and-transform-into-todoist-tasks-with-open)
- [**Validate academic promotion decisions with OpenAI and Gmail** 21 steps · calls a model · Email, n8n data table](https://millionrounds.com/workflow/validate-academic-promotion-decisions-with-openai-and-gmail)
- [**Triage and reply to email threads with OpenAI and IMAP** 19 steps · calls a model · Email, Gmail](https://millionrounds.com/workflow/triage-and-reply-to-email-threads-with-openai-and-imap)
