Skip to content

Collaboration (Agent-to-Agent)

Overview

Agent-to-agent collaboration enables your agents to communicate and work together. This allows complex tasks to be divided and specialized agents to be deployed for specific subtasks.

What is Agent-to-Agent Collaboration?

Instead of using a single agent for all tasks, you can create teams of specialized agents that work together:

  • A coordinator agent receives requests and delegates them to specialized agents
  • Specialist agents handle specific tasks and return results
  • Agents can exchange information with each other and build upon each other's work

Use Cases

1. Task Specialization

Different agents take on different roles:

  • Sales Agent: Answers sales questions and creates quotes
  • Support Agent: Solves technical problems
  • Coordinator: Directs requests to the right specialist

2. Multi-Step Processes

Complex workflows are broken down into sub-steps:

  1. Request Agent collects information
  2. Analysis Agent evaluates the data
  3. Action Agent executes the appropriate measures

3. Quality Control

One agent reviews another's work:

  • Primary Agent creates a response
  • Quality Assurance Agent checks and improves the response

Configuration

Making an Agent Available as a Tool

To make an agent usable by other agents:

  1. Open the agent's settings
  2. Enable the option "Make available as tool"
  3. Define a clear description of when this agent should be used

Using an Agent in Other Agents

  1. Open the coordinating agent
  2. Switch to "Capabilities (Tools)"
  3. Add the other agent as a tool

Best Practices

Clear Task Separation

Define a clearly defined task for each agent. Overlaps lead to confusion.

Optimize Descriptions

An agent's description should clearly state when it should be used. This helps the coordinating agent make the right selection.

Limit Nesting

Avoid overly deep nesting (agent calls agent calls agent). This increases complexity and costs.

Avoid Infinite Loops

Ensure agents don't call each other in a loop.

Example: Customer Service Team

Coordinator Agent

You are a coordinator for our customer service team.

Your task:
- Analyze the customer request
- Direct it to the appropriate specialist:
  * Sales questions → Sales Agent
  * Technical problems → Support Agent
  * Billing questions → Accounting Agent

You don't answer questions yourself but delegate them intelligently.

Sales Agent

You are the sales specialist.

Tasks:
- Information about products and prices
- Creating quotes
- Answering purchase inquiries

Description as tool:
"Use this agent for all questions about products, prices, availability, and purchase interests."

Support Agent

You are the technical support specialist.

Tasks:
- Solving technical problems
- Help with setup
- Error diagnosis

Description as tool:
"Use this agent for technical problems, errors, setup help, and functionality questions."

Benefits of Collaboration

  • Specialization: Each agent can be optimally configured for its task
  • Clarity: Simpler prompts since each agent has only one role
  • Maintainability: Changes affect only the relevant agent
  • Scalability: New specialists can be easily added