QuivaWorks supports two types of multi-agent behaviour: assistant-to-assistant communication, where you explicitly link specialists together, and automatic sub-agents, where QuivaWorks handles tool-heavy or large-document tasks behind the scenes.Documentation Index
Fetch the complete documentation index at: https://docs.quiva.ai/llms.txt
Use this file to discover all available pages before exploring further.
Assistant-to-Assistant Communication
Any assistants in your account can be linked together. This lets one assistant delegate work to another — enabling you to build systems where a coordinator routes tasks to the right specialist.How It Works
When assistants are linked, the primary assistant can call another assistant as a tool. The called assistant receives the request, performs its task using its own instructions, knowledge, and integrations, and returns the result. Each assistant in a multi-agent system can have:- Different instructions and expertise
- Different knowledge sources
- Different integrations and tool access
- Different permission scopes
Setting Up Assistant-to-Assistant Links
- Open the assistant you want to use as the coordinator (the primary assistant that delegates work)
- Navigate to the Integrations tab
- Under Assistants, enable the specialists you want this assistant to be able to call
- In the coordinator’s instructions, describe when and how to delegate to each specialist
When to Use This Pattern
Specialist Routing
Specialist Routing
A coordinator receives requests and routes them to the right expert based on topic, intent, or complexity. Each specialist has deep knowledge in its domain.Example: A customer-facing assistant delegates product questions to a product expert, billing questions to a finance assistant, and technical questions to a support engineer assistant.
Sequential Processing
Sequential Processing
One assistant processes output from another in a pipeline. The first extracts or transforms data; the second makes decisions or generates the final output.Example: A data extraction assistant parses incoming documents, then passes structured data to an analysis assistant that generates the final report.
Parallel Research
Parallel Research
A coordinator dispatches multiple research tasks to different specialists simultaneously, then combines the results.Example: A due diligence assistant delegates financial analysis, legal review, and market analysis to three different specialists, then synthesises a summary.
Escalation Chains
Escalation Chains
When a front-line assistant encounters something outside its scope, it escalates to a more capable specialist rather than to a human.Example: A tier-1 support assistant handles common questions directly but escalates complex technical issues to a senior technical assistant before involving a human engineer.
Automatic Sub-Agents
For tool-heavy workflows or large document processing, QuivaWorks automatically uses sub-agents to prevent context window overload. This happens transparently — no configuration required.Context Window Management
Every AI model has a limit on how much context it can hold in a single interaction. When an assistant needs to use many tools or process a large document, the accumulated context can exceed this limit. QuivaWorks handles this automatically:Task Detection
QuivaWorks identifies that a task would exceed the context window — either because many tools will be called, or because a large document needs to be processed.
Sub-Agent Dispatch
Individual tool calls or document sections are handled by dedicated sub-agents. Each sub-agent works within its own context window.
Large Document Processing
When a large document is added to an assistant’s knowledge base, sub-agents index it in sections. At query time, a sub-agent retrieves the relevant sections and passes them to the main assistant. This enables accurate processing of:- Long technical documents and specifications
- Extensive legal contracts
- Large codebases
- Book-length research reports
Design Principles for Multi-Agent Systems
Give each assistant a clear, single responsibility
Give each assistant a clear, single responsibility
Specialist assistants work best when their scope is narrow and well-defined. A “Customer Support” assistant that tries to handle sales, billing, and engineering questions will be less effective than three focused specialists.
Write coordinator instructions explicitly
Write coordinator instructions explicitly
The coordinator needs clear guidance on when to delegate and when to handle requests directly. Include specific criteria: topic areas, complexity thresholds, or explicit trigger phrases.
Match tools and knowledge to the right specialist
Match tools and knowledge to the right specialist
Each specialist should only have access to the integrations and knowledge it actually needs. Keeping specialists focused makes them more accurate and easier to debug.
Test each specialist independently
Test each specialist independently
Before testing the full multi-agent system, test each specialist assistant on its own. It’s much easier to identify and fix issues in isolation than in a complex pipeline.
Use flows for structured pipelines
Use flows for structured pipelines
If you need deterministic, ordered processing across multiple assistants, build a Flow with multiple assistant steps rather than using assistant-to-assistant communication. Flows give you explicit control over data passing, branching, and error handling.
Multi-Agent vs. Flows
Both multi-agent systems and flows can orchestrate work across multiple assistants. Choose based on your needs:| Multi-Agent | Flows | |
|---|---|---|
| Routing logic | Assistant decides | Explicit conditions |
| Data passing | Via conversation | Via variable mapping |
| Error handling | Assistant handles | Explicit error steps |
| Best for | Dynamic, reasoning-based routing | Predictable, structured pipelines |
Next Steps
Tools & Connectors
Connect assistants to external systems via MCP
Flows Overview
Build structured pipelines with assistant steps
Capabilities
Built-in tools, image analysis, and file generation
Best Practices
Design patterns for effective assistants