Automation library · AI assistants

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.

LargeCalls a model: MistralRetrieval

24 stepsLarge: read it before trusting it with anything live
1Branch: places the flow splits
5Loops or waits
1Service it connects to

The flow

Starts it 2Model 8Logic 12Service 2

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

  1. 1ScheduleSchedule triggerStarts it
  2. 2When clicking ‘Execute workflow’Manual triggerStarts it
  3. 3Email Trigger (IMAP)Email Read ImapService
  4. 4Mistral Cloud Chat ModelLm Chat Mistral CloudModel
  5. 5Simple MemoryMemory Buffer WindowModel
  6. 6JSON Output ParserOutput Parser StructuredModel
  7. 7Mistral Cloud Chat Model 2Lm Chat Mistral CloudModel
  8. 8JSON Output Parser 2Output Parser StructuredModel
  9. 9Simple Memory 2Memory Buffer WindowModel
  10. 10Configure Workflow ArgsGlobal ConstantsService
  11. 11Debate Actor AbstractionAgentModel
  12. 12Debate EnvironmentAgentModel
  13. 13Prepare InputSetLogic
  14. 14Wait 1WaitLogic
  15. 15If No More RoundsIfLogic
  16. 16Guarantee InputSetLogic
  17. 17Wait 2WaitLogic
  18. 18End of DebateNo OpLogic
  19. 19Update InputSetLogic
  20. 20Round LoopSplit In BatchesLogic
  21. 21Debate LoopSplit In BatchesLogic
  22. 22Split Out AI AgentsSplit OutLogic
  23. 23AggregateAggregateLogic
  24. 24Wait Before Sending AgentsWaitLogic

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.