Group Chat

A shared thread. Everyone speaks.

Agents communicate in a shared conversation space, building upon each other's inputs in a round-robin, random, or simultaneous manner.

Level
03 · Multi-Agent
Also known as
Multi-Agent Chat, Round-Robin Conversation, Shared Conversation
Trade-off
Rich interaction is gained against high token costs and difficult flow control.
Native in
AutoGen / AG2, Microsoft Agent Framework, Google ADK, LangGraph
The mental model

A shape you can draw on a napkin.

Agents broadcast into a shared conversation thread. Turns are round-robin or dynamic, but every message is visible to all.

Agent 1Agent 2Agent 3Agent 4
Walk it through

A real run, step by step.

TaskProduct, engineering and legal discuss one feature: saving a payment card for one-click checkout.
Illustrative run.
TurnSpeakerMessageBuilds on
1ProductProposes saving the card after the first purchaseThe task
2EngineeringStore a token from the payment provider, never the card numberTurn 1
3LegalNeeds explicit consent and a way to delete the cardTurns 1 and 2
4ProductRevised proposal: opt-in checkbox, token only, “remove card” in the accountTurns 2 and 3
5ManagerAll three agree. The chat endsThe whole thread
What this shows: legal could react to engineering because every message is visible to everyone. Nobody had to route it. That is also the cost: each speaker reads the whole thread again, so the tokens grow with every turn, and without a manager or a round limit the chat has no reason to end.
In code

The pattern in code.

Plain Pythonpython
def group_chat(agents, task, max_rounds=3):
    thread = [("user", task)]  # one shared thread, visible to all
    for _ in range(max_rounds):
        # round-robin; a manager could pick the speaker
        for name, agent in agents.items():
            # every agent reads the whole thread
            thread.append((name, agent(thread)))
        if manager_says_done(thread):
            break
    return summarize(thread)
Fit

Use it, or not.

When to reach for it

  • Perspectives must be visibly merged.
  • Discussion is part of the solution process.
  • Roles need to interact flexibly.

When it backfires

  • A deterministic flow is required.
  • The token budget is heavily restricted.
  • Responsibilities must remain strictly isolated.
Pitfalls

Two ways this pattern will hurt you.

Token budget explodes with every broadcast

Each agent sees the full history of every other agent. After 10 turns, every message carries 10 prior responses.

Countermeasure

Use a rolling summary window. Keep only the last K messages or a compressed narrative of earlier turns.

One agent dominates the conversation

An eager agent replies to every message, crowding out quieter specialists. The final answer reflects one voice.

Countermeasure

Implement turn-taking rules or a speaking budget per agent. Require explicit mentions to invite a response.

Threat exposure

What this pattern exposes

Adopting this pattern opens these attack surfaces. Each links to its entry in the threat model.

Full threat model →
Framework support

Where Group Chat is native.

Search

Search patterns, frameworks, and pages.