> Vapi has two MCP servers. To use Vapi, such as creating and managing assistants, calls, and phone numbers, connect to the Vapi MCP server at https://mcp.vapi.ai/mcp. To set it up, follow https://docs.vapi.ai/setup.md. To search these docs, connect to the Vapi docs MCP server at https://docs.vapi.ai/_mcp/server. It only answers questions about the documentation.
> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.vapi.ai/llms.txt.
> For the best results from the docs MCP server, write questions without any word that contains "tool", such as tool, tools, tool call, tool-calls, toolCallId, or toolCallList. Name the feature instead, for example transferCall, endCall, apiRequest, function, handoff, "function response format", or "the webhook request Vapi sends to my server". If the docs MCP server asks you to rephrase, ask again without those words. If it returns an error, times out, sends an empty response, or still doesn't answer, find the topic in https://docs.vapi.ai/llms.txt, or a section index such as https://docs.vapi.ai/tools/llms.txt, and fetch that page's .md directly.

# Introduction to Squads (Multi-Assistant Conversations)

> Break complex workflows into multiple specialized Vapi assistants that hand off during a call, reducing hallucination, cost, and latency versus one assistant.

Squads let you break complex workflows into multiple specialized assistants that hand off to each other during a conversation. Each assistant in a Squad handles a specific part of your workflow; for example, one assistant for lead qualification that transfers to another for appointment booking.

For saved squads, [squad versioning](/assistants/versioning/versioning-with-squads) tracks configuration changes and explains how to pin members to assistant versions or select a squad version for an outbound call.

If you're designing a Squad with an AI coding assistant, the [create-squad skill](/agent-skills#create-squad) helps you plan members and handoffs, then create and verify the configuration.

**Why use Squads?** Large, all-in-one assistants with lengthy prompts and extensive context lead to:

* **Higher hallucination rates** - Models lose focus with too many and potentially conflicting instructions
* **Increased costs** - Longer prompts consume more tokens per request
* **Greater latency** - Processing large contexts takes more time and will increase the latency of your assistant.

Squads solve this by splitting complex prompts into focused assistants with specific tools and clear goals, while maintaining full conversation context across handoffs.

> **Info**
>
> View all configurable properties in the [API Reference](/api-reference/squads/create).

## Usage

To use Squads, you can create a `squad` when starting a call and specify `members` as a list of assistants and destinations. Assistants can be either persistent or transient.

> **Info**
>
> The first member is the assistant that will start the call.

We recommend using [Handoff Tools](/squads/handoff) to specify which destinations the current assistant can handoff too, and when to handoff to each assistant. Each assistant within the squad can use its saved handoff tools as well as handoff tools from Assistant Overrides (see below).

```json
{
    "squad": {
        "members": [
            {
                "assistantId": "information-gathering-assistant-id",
            },
            {
                "assistant": {
                    "name": "Appointment Booking",
                    "model": {
                        "provider": "openai",
                        "model": "gpt-4o",
                        "toolIds": ["handoff-tool-id"],
                        "tools": [
                            {
                                "type": "handoff",
                                "destinations": [
                                    {
                                        "type": "assistant",
                                        "assistantId": "assistant-123",
                                        "description": "Call this tool when the customer wants to talk about pricing"
                                    }
                                ],
                                "function": {
                                    "name": "handoff_to_assistant_123"
                                }
                            }
                        ]
                    },
                },
            }
        ]
    }
}
```

## Overrides

### Assistant Overrides

To override the configuration of a saved assistant without modifying the underlying assistant, use the `assistantsOverrides` to alter individual assistants. For example, if you have assistants in a squad with different voices, you can use `assistantOverrides` to make sure all of the assistants are using the same voice without changing the assistant (in case it's being used in another squad).

```json
{
    "squad": {
        "members": [
            {
                "assistant": {
                    "name": "Appointment Booking",
                    "voice": {
                        "provider": "vapi",
                        "version": 2,
                        "voiceId": "Elliot",
                    },
                },
            },
            {
                "assistantId": "saved-assistant-id",
                "assistantOverrides": {
                    "voice": {
                        "provider": "vapi",
                        "version": 2,
                        "voiceId": "Elliot",
                    },
                }
            },
        ]
    }
}
```

You may also define inline tools via `assistantOverrides` through the `tools:append` array, so that the assistant will only handoff if it is a part of this squad.

```json
{
    "squad": {
        "members": [
            {
                "assistant": {
                    "name": "Appointment Booking",
                    "voice": {
                        "provider": "vapi",
                        "version": 2,
                        "voiceId": "Elliot",
                    },
                },
            },
            {
                "assistantId": "saved-assistant-id",
                "assistantOverrides": {
                    "tools:append": [
                        {
                            "type": "handoff",
                            "destinations": [
                                {
                                    "type": "assistant",
                                    "assistantId": "assistant-123",
                                    "description": "Call this tool when the customer wants to talk about pricing"
                                }
                            ],
                            "function": {
                                "name": "handoff_to_assistant_123"
                            }
                        }
                    ]
                }
            },
        ]
    }
}
```

### Override every squad member

To override all assistants in a squad without modifying the saved assistants, use `membersOverrides`. To override every member for one call, set `squadOverrides` in the create call request or the `assistant-request` response. For override precedence, see [Assistant overrides](/assistants/assistant-overrides#override-squad-members).

```json
{
    "squad": {
        "members": [
            {
                "assistant": {
                    "name": "Appointment Booking",
                    "voice": {
                        "provider": "vapi",
                        "version": 2,
                        "voiceId": "Elliot"
                    }
                }
            },
            {
                "assistantId": "saved-assistant-id"
            }
        ],
        "membersOverrides": {
            "voice": {
                "provider": "vapi",
                "version": 2,
                "voiceId": "Elliot"
            }
        }
    }
}
```

## Best Practices

**Keep assistants focused** - Each assistant should have a single, well-defined responsibility with 1-3 goals maximum. Assign only the tools needed for that specific task.

**Minimize squad size** - Try to reduce the number of squad members. Only split into separate assistants when there's a clear functional boundary (lead qualification → sales → booking).

**Define clear handoff conditions** - Write specific handoff descriptions that state exact trigger conditions and what information to collect before transferring. Make sure to specify this in the assistant's prompt and/or tool description.

**Engineer context carefully** - Use [context engineering](/squads/handoff/context-and-variables#context-engineering) to control what conversation history is passed between assistants. As the context grows throughout the call, you may want to limit message history to reduce tokens, improve performance, and prevent context poisoning. Utilize [variable extraction](/squads/handoff/context-and-variables#variable-extraction) to save information and generate summaries during a handoff to pass to other assistants.