Collaboration Models
This document introduces the four collaboration models in Wegent, helping you choose the most suitable pattern for building your agent teams.
Collaboration Models Overviewβ
Collaboration models define how multiple Bots interact and work together within a Team. Choosing the right collaboration model can significantly improve team efficiency and task completion quality.
Four Collaboration Modelsβ
| Model | Icon | Characteristics | Use Cases |
|---|---|---|---|
| Pipeline | π | Sequential execution, linear flow | Code development workflow, content production pipeline |
| Route | π― | Intelligent routing, on-demand assignment | Customer service, problem classification |
| Coordinate | π₯ | Parallel coordination, result aggregation | Multi-perspective analysis, parallel task processing |
| Collaborate | π¬ | Free collaboration, shared context | Brainstorming, complex problem solving |
Selection Decision Treeβ
Start Model Selection
β
βββ Does task have fixed order?
β βββ Yes β Pipeline (Sequential Model)
β
βββ Need content-based task routing?
β βββ Yes β Route (Routing Model)
β
βββ Can tasks be parallelized?
β βββ Yes β Coordinate (Coordination Model)
β
βββ Need free discussion?
βββ Yes β Collaborate (Collaboration Model)
π Pipelineβ
Overviewβ
Pipeline is the simplest and most intuitive collaboration model. Bots execute sequentially in a predefined order, with each Bot's output becoming the input for the next, forming a complete processing pipeline.
Workflowβ
Task Input β Bot 1 β Bot 2 β Bot 3 β Bot 4 β Final Result
Core Featuresβ
- β Sequential Execution: Strictly follows defined order
- β Data Passing: Previous Bot's output automatically passes to next
- β Simple and Clear: Easy to understand and maintain
- β Error Isolation: Failures can be quickly localized
Use Casesβ
- Software Development Workflow: Requirements Analysis β Design β Implementation β Code Review β Testing
- Content Production Pipeline: Content Creation β Editing β Formatting β Quality Review
- Data Processing Pipeline: Data Collection β Data Cleaning β Data Transformation β Data Analysis
π― Routeβ
Overviewβ
Route model uses a Leader Bot to intelligently route tasks to the most suitable expert Bot based on task content. Ideal for scenarios requiring different handling paths based on varying conditions.
Workflowβ
Task Input β Leader Bot (Routing Decision)
βββ Frontend Issue β Frontend Bot
βββ Backend Issue β Backend Bot
βββ Database Issue β Database Bot
βββ DevOps Issue β DevOps Bot
β
Result
Core Featuresβ
- β Intelligent Routing: Leader Bot analyzes task and selects best expert
- β Specialized Roles: Each Bot focuses on specific domain
- β Flexible and Efficient: Dynamically selects execution path based on needs
- β Extensible: Easy to add new expert Bots
Use Casesβ
- Intelligent Customer Service: Customer Question β Classification β Technical Support/After-Sales/Sales
- Technical Support Platform: Technical Issue β Analysis β Frontend Expert/Backend Expert/Database Expert
- Content Distribution System: Content Submission β Classification β News/Tech/Entertainment Channel
π₯ Coordinateβ
Overviewβ
Coordinate model has a Leader Bot decompose tasks and assign them to multiple Bots for parallel processing, then collect and aggregate all Bot results to form the final comprehensive output.
Workflowβ
Task Input β Leader Bot (Task Decomposition)
βββ Analyst Bot βββ
βββ Data Bot ββββββΌβ Leader Bot (Result Aggregation) β Comprehensive Result
βββ Research Bot ββ
Core Featuresβ
- β Parallel Processing: Multiple Bots work simultaneously for efficiency
- β Task Decomposition: Leader breaks down complex tasks
- β Result Aggregation: Leader integrates multiple perspective outputs
- β Comprehensive and In-depth: Analyzes problems from multiple angles
Use Casesβ
- Market Research Analysis: Market Research Task β Competitor Analysis/User Research/Trend Analysis β Comprehensive Report
- Code Review: Code Review Task β Security Review/Performance Review/Code Quality β Review Report
- Content Creation: Article Topic β Material Collection/Case Study/Data Analysis β Complete Article
π¬ Collaborateβ
Overviewβ
Collaborate model allows all Bots to freely discuss and collaborate in a shared context, without fixed execution order or clear role divisions. All Bots can see each other's messages and respond based on the overall conversation.
Workflowβ
Task Input β Shared Context Space
β β β β
Bot 1 Bot 2 Bot 3 Bot 4
ββββββββββ΄βββββββββ΄βββββββββ
β
Collaborative Output
Core Featuresβ
- β Shared Context: All Bots see complete conversation history
- β Free Discussion: No fixed order, Bots can participate anytime
- β Collective Intelligence: Promotes creativity and multi-perspective thinking
- β Dynamic Interaction: Bots can respond to others' viewpoints
Use Casesβ
- Brainstorming Sessions: Creative Topic β Product Manager/Designer/Engineer/Marketing β Creative Solutions
- Technical Solution Design: Technical Challenge β Architect/Developer/DBA/DevOps β Technical Solution
- Complex Problem Diagnosis: System Issue β Backend/Frontend/DBA/DevOps β Root Cause
Model Comparisonβ
Feature Comparison Tableβ
| Feature | Pipeline | Route | Coordinate | Collaborate |
|---|---|---|---|---|
| Execution Order | Fixed sequence | Dynamic single path | Parallel execution | No fixed order |
| Bot Interaction | Unidirectional passing | Leader β Expert | Leader coordination | Full interaction |
| Context Sharing | Partial (sequential) | Independent context | Leader aggregation | Fully shared |
| Team Size | 3-6 Bots | 1 Leader + N experts | 1 Leader + 3-5 experts | 3-8 Bots |
| Execution Efficiency | Medium (serial) | High (single path) | High (parallel) | Medium (discussion) |
| Ease of Use | βββββ | ββββ | βββ | βββ |
| Flexibility | ββ | ββββ | ββββ | βββββ |
Selection Guideβ
- Standardized Process β Pipeline
- Need Specialized Division (Single Expert) β Route
- Need Specialized Division (Multiple Experts) β Coordinate
- Need Free Discussion β Collaborate
Best Practicesβ
General Recommendationsβ
- Start Simple: Prefer Pipeline or Route first, avoid over-engineering
- Control Team Size: Each model has recommended Bot count, too many reduces efficiency
- Clear Role Definition: Each Bot's responsibilities should be clear and specific
- Design Good Prompts: Good prompt structure includes role definition, responsibilities, input/output requirements
Key Points by Modelβ
| Model | Key Points |
|---|---|
| Pipeline | Control step count (β€6), single responsibility per step |
| Route | Clear routing rules, include default handling path |
| Coordinate | Leader needs strong aggregation capability, control parallel count (3-5) |
| Collaborate | Define clear goals, set discussion termination conditions |
Related Documentationβ
- Core Concepts - Understand Bot, Team, and other core concepts
- YAML Specification - Complete configuration format guide
- Collaboration Models Development Guide - Detailed configuration examples and real-world cases
Choosing the right collaboration model is key to success! π