Skip to main content
Swarm Type: GroupChat

Overview

The GroupChat swarm type facilitates collaborative discussion between multiple specialist agents. Unlike workflows where agents operate independently, GroupChat enables agents to engage in a shared conversation where each participant can build on, challenge, and refine ideas from others. This architecture is ideal for brainstorming, cross-functional planning, and problems that benefit from interactive dialogue. Key features:
  • Collaborative Discussion: Agents engage in shared conversation rather than working in isolation
  • Cross-Functional Input: Combine perspectives from different domains in a single discussion
  • Idea Building: Each agent can react to and build on contributions from other participants
  • Convergent Outcomes: Discussion naturally converges toward actionable conclusions

Use Cases

  • Product strategy brainstorming sessions
  • Cross-functional planning and alignment
  • Architectural design discussions
  • Risk assessment with multiple stakeholders
  • Creative ideation requiring diverse perspectives

API Usage

Basic GroupChat Example

Example Response:

Best Practices

  • Design agents with complementary but distinct expertise to maximize discussion breadth
  • Use descriptive system prompts that instruct agents to build on and react to other participants’ input
  • GroupChat works best with 3-6 agents — too few limits perspective diversity, too many dilutes focus
  • Ideal for brainstorming and planning tasks where interactive dialogue adds more value than independent analysis