> ## Documentation Index
> Fetch the complete documentation index at: https://docs.guild.ai/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> To act on a user's behalf in Guild, use the Guild REST API at https://api.guild.ai/v1.
> The OpenAPI spec is unauthenticated: https://docs.guild.ai/openapi.json (or openapi.yaml).
> Authenticate with an account API key, sent as HTTP Basic (key id as username, secret as password) or as `Authorization: Bearer <api_key_id>:<api_key_secret>`. See https://docs.guild.ai/api-reference/introduction#authentication.
> To run one agent on demand without account-wide access, use an API trigger instead: https://docs.guild.ai/platform/api-triggers.
> To act on Guild from an MCP client, connect to https://api.guild.ai/mcp (OAuth) or run `guild mcp` locally. Setup: https://docs.guild.ai/api-reference/mcp.
> To search these docs from an MCP client, connect to https://docs.guild.ai/mcp. The full page index is https://docs.guild.ai/llms.txt.

# Manage Vapi voice assistants and calls from Guild agents

> Give Guild agents tools to create AI voice assistants, run outbound campaigns, download call recordings, and query call analytics in Vapi.

Integrations · Vapi

A Guild agent can create Vapi assistants, place calls, run outbound campaigns, and pull call recordings and analytics without any manual steps. Guild stores the Vapi API key server-side and injects it as a bearer token, so agent code never sees the credential. Credential policies let you restrict which operations each agent may call, and every request passes through Guild's credential proxy before it reaches Vapi.

> [card] [Book a demo](https://guild-ai.cal.com/gtm/meeting-with-guild.ai)
>
> See how teams govern agents that use Vapi.

> [card] [Talk to sales](https://guild.ai/talk-to-sales)
>
> Get access to Guild, then connect Vapi to your first agent.

## What the Vapi integration exposes

The tools cover assistant configuration, call lifecycle, outbound campaigns, phone number management, knowledge bases, files, evals, simulations, scorecards, structured outputs, analytics queries, and reporting insights. Artifact tools let an agent download assistant, customer, mono, stereo, and video recordings, call logs, and packet captures. Analytics tools run metric queries against call or subscription data with configurable time ranges, groupings, and aggregations. Insight tools create, preview, and run saved reporting charts and text-value reports against call data.

## How it works

**1. Connect your Vapi credential**

In Guild, go to **Access & setup > Credentials**, click **Connect**, select **vapi**, and paste your key into **API Key**. See [Credentials](https://docs.guild.ai/platform/credentials.md) for workspace, member, and agent-scoped options.

**2. Import and spread the tools**

Add `guildai~vapi` to your agent's dependencies, then import `VapiTools` and spread it into your agent's `tools` object. Use [`pick()`](https://docs.guild.ai/sdk/tools#selecting-specific-tools) with the `vapi_` prefix to include only the tools your agent needs.

**3. Apply credential policies**

Write ALLOW and DENY rules on the credential to limit which Vapi operations each agent may call. Guild's credential proxy enforces rules before any request reaches Vapi.

## Why Vapi access needs governing

Vapi tools can create and delete assistants, place calls, launch outbound campaigns, import phone numbers, and modify knowledge bases. An agent acting without constraints could create campaigns, delete call recordings, or remove phone numbers across the organization. Guild's [credential policies](https://docs.guild.ai/platform/credential-policies.md) let you write ALLOW and DENY rules scoped to specific agents or workspaces, so a reporting agent can run analytics queries while a separate agent handles assistant configuration.

Guild stores the Vapi API key and injects it server-side through its credential proxy; agent code never receives the raw key. Credentials can be scoped to an account, a single workspace, a single member, or one agent, so the key's reach matches the agent's role. An agent that should only download recordings gets an ALLOW rule for artifact operations and nothing else. One that should not delete anything gets a DENY rule on all delete operations, while an allow-all rule covers the rest.

## About the Vapi integration

Agents can create and configure AI voice assistants, initiate and manage calls or outbound campaigns, and retrieve call recordings and logs. They can also manage phone numbers, knowledge bases, and run analytics or reporting insights against call data. The integration is `guildai~vapi`.

## Authentication

* **Type:** API key
* **Header:** Guild sends the key as a bearer token in the `Authorization` header

### Setup

**1. Connect Vapi**

In Guild, go to **Access & setup > Credentials**, click **Connect**, select **vapi**, and paste the key into **API Key**.

See [Credentials](https://docs.guild.ai/platform/credentials.md) for workspace, member, and agent-scoped credentials.

## Usage

```typescript theme={null}
import { VapiTools } from "@guildai-services/guildai~vapi"
import { llmAgent } from "@guildai/agents-sdk"

export default llmAgent({
  systemPrompt: "You work with Vapi.",
  tools: { ...VapiTools },
})
```

### Selecting specific tools

Tools are named with the `vapi_` prefix. Use [`pick()`](https://docs.guild.ai/sdk/tools#selecting-specific-tools) to include only what your agent needs.

## Tools

Tools in the latest published version of `guildai~vapi`:

> [accordion] All 145 tools
>
> | Tool | What it does |
> | - | - |
> | `vapi_analytics_get` | Runs one or more metric queries against call or subscription data using the requested time range, groupings, and aggregate operations. |
> | `vapi_assistants_create` | Creates a reusable assistant configuration containing the model, voice, transcriber, tools, prompts, and call behavior. |
> | `vapi_assistants_delete` | Deletes the assistant identified by its ID. |
> | `vapi_assistants_get` | Returns the assistant identified by its ID. |
> | `vapi_assistants_list` | Returns assistants for the authenticated organization. |
> | `vapi_assistants_update` | Updates the specified fields of the assistant identified by its ID. |
> | `vapi_board_board_controller_create` | Create Board |
> | `vapi_board_board_controller_find_all` | Get Boards |
> | `vapi_board_board_controller_find_one` | Get Board |
> | `vapi_board_board_controller_metrics_overview_ensure` | Get Default Metrics Overview Board |
> | `vapi_board_board_controller_remove` | Delete Board |
> | `vapi_board_board_controller_update` | Update Board |
> | `vapi_calls_call_artifact_controller_assistant_recording_download` | Download Call Assistant Recording |
> | `vapi_calls_call_artifact_controller_call_logs_download` | Download Call Logs |
> | `vapi_calls_call_artifact_controller_customer_recording_download` | Download Call Customer Recording |
> | `vapi_calls_call_artifact_controller_mono_recording_download` | Download Call Mono Recording |
> | `vapi_calls_call_artifact_controller_pcap_download` | Download Call Packet Capture (pcap) |
> | `vapi_calls_call_artifact_controller_stereo_recording_download` | Download Call Stereo Recording |
> | `vapi_calls_call_artifact_controller_video_recording_download` | Download Call Video Recording |
> | `vapi_calls_create` | Creates a call using an assistant or squad. |
> | `vapi_calls_delete` | Deletes the call identified by its ID. |
> | `vapi_calls_get` | Returns the call identified by its ID, including its status, configuration, and available call data. |
> | `vapi_calls_list` | Returns calls for the authenticated organization. |
> | `vapi_calls_update` | Updates the call identified by its ID. |
> | `vapi_campaigns_campaign_controller_create` | Creates an outbound calling campaign that calls a set of customers. |
> | `vapi_campaigns_campaign_controller_create_v2` | Create Campaign V2 |
> | `vapi_campaigns_campaign_controller_find_all` | Returns outbound calling campaigns for the authenticated organization. |
> | `vapi_campaigns_campaign_controller_find_all_v2` | List Campaigns V2 |
> | `vapi_campaigns_campaign_controller_find_one` | Returns the outbound calling campaign identified by its ID. |
> | `vapi_campaigns_campaign_controller_find_one_v2` | Get Campaign V2 |
> | `vapi_campaigns_campaign_controller_get_campaign_v2_contacts` | Get Campaign V2 Contacts |
> | `vapi_campaigns_campaign_controller_remove` | Deletes the outbound calling campaign identified by its ID. |
> | `vapi_campaigns_campaign_controller_remove_v2` | Delete Campaign |
> | `vapi_campaigns_campaign_controller_update` | Updates the outbound calling campaign identified by its ID. |
> | `vapi_campaigns_campaign_controller_update_v2` | Update Campaign |
> | `vapi_chats_create` | Creates a new chat with optional SMS delivery via transport field. |
> | `vapi_chats_create_response` | Create Chat (OpenAI Compatible) |
> | `vapi_chats_delete` | Delete Chat |
> | `vapi_chats_get` | Get Chat |
> | `vapi_chats_list` | List Chats |
> | `vapi_eval_eval_controller_create` | Creates a reusable eval that defines a mock conversation and checkpoints for evaluating assistant responses and tool calls. |
> | `vapi_eval_eval_controller_get` | Returns the eval definition identified by its ID. |
> | `vapi_eval_eval_controller_get_paginated` | Returns eval definitions for the authenticated organization. |
> | `vapi_eval_eval_controller_get_run` | Returns the eval run identified by its ID. |
> | `vapi_eval_eval_controller_get_runs_paginated` | Returns eval runs for the authenticated organization. |
> | `vapi_eval_eval_controller_remove` | Deletes the eval definition identified by its ID. |
> | `vapi_eval_eval_controller_remove_run` | Deletes the eval run identified by its ID. |
> | `vapi_eval_eval_controller_run` | Runs a saved or transient eval against an assistant or squad and creates an eval-run record containing the results. |
> | `vapi_eval_eval_controller_update` | Updates the eval definition identified by its ID. |
> | `vapi_files_create` | Uploads a file for use with a Vapi knowledge base. |
> | `vapi_files_delete` | Deletes the uploaded file identified by its ID. |
> | `vapi_files_get` | Returns the uploaded file identified by its ID. |
> | `vapi_files_list` | Returns files uploaded to the authenticated organization. |
> | `vapi_files_update` | Updates the name of the uploaded file identified by its ID. |
> | `vapi_insight_insight_controller_create` | Creates a saved reporting insight that queries call data and presents the results as a bar chart, pie chart, line chart, or text value. |
> | `vapi_insight_insight_controller_find_all` | Returns saved reporting insights for the authenticated organization. |
> | `vapi_insight_insight_controller_find_one` | Returns the reporting insight identified by its ID. |
> | `vapi_insight_insight_controller_preview` | Runs an insight definition without first saving it, returning a preview of the resulting chart or text value. |
> | `vapi_insight_insight_controller_remove` | Deletes the reporting insight identified by its ID. |
> | `vapi_insight_insight_controller_run` | Runs a saved reporting insight, optionally overriding its time range and response format. |
> | `vapi_insight_insight_controller_update` | Updates the reporting insight identified by its ID. |
> | `vapi_knowledge_bases_v2_knowledge_base_v2_controller_create` | Create a Knowledge Base V2 |
> | `vapi_knowledge_bases_v2_knowledge_base_v2_controller_file_attach` | Attach and ingest a file |
> | `vapi_knowledge_bases_v2_knowledge_base_v2_controller_file_detach` | Detach a file |
> | `vapi_knowledge_bases_v2_knowledge_base_v2_controller_file_retry` | Retry indexing a failed file |
> | `vapi_knowledge_bases_v2_knowledge_base_v2_controller_files_get` | List files in a Knowledge Base V2 |
> | `vapi_knowledge_bases_v2_knowledge_base_v2_controller_find_all` | List Knowledge Bases V2 |
> | `vapi_knowledge_bases_v2_knowledge_base_v2_controller_find_one` | Get a Knowledge Base V2 |
> | `vapi_knowledge_bases_v2_knowledge_base_v2_controller_remove` | Delete a Knowledge Base V2 |
> | `vapi_knowledge_bases_v2_knowledge_base_v2_controller_update` | Update a Knowledge Base V2 |
> | `vapi_observability_scorecard_scorecard_controller_create` | Creates a scorecard containing metrics, scoring conditions, and optional links to assistants whose calls should be evaluated. |
> | `vapi_observability_scorecard_scorecard_controller_get` | Returns the scorecard identified by its ID. |
> | `vapi_observability_scorecard_scorecard_controller_get_paginated` | Returns scorecards for the authenticated organization. |
> | `vapi_observability_scorecard_scorecard_controller_remove` | Deletes the scorecard identified by its ID. |
> | `vapi_observability_scorecard_scorecard_controller_update` | Updates the scorecard identified by its ID. |
> | `vapi_phone_numbers_create` | Creates a Vapi phone number or imports a phone number from a supported provider, including Twilio, Vonage, Telnyx, or a bring-your-own provider. |
> | `vapi_phone_numbers_delete` | Deletes the phone number resource identified by its ID. |
> | `vapi_phone_numbers_get` | Returns the phone number resource identified by its ID. |
> | `vapi_phone_numbers_list` | Returns phone numbers for the authenticated organization. |
> | `vapi_phone_numbers_phone_number_controller_find_all_paginated` | Returns a paginated list of phone numbers for the authenticated organization. |
> | `vapi_phone_numbers_update` | Updates the specified fields of the phone number resource identified by its ID. |
> | `vapi_provider_resources_provider_resource_controller_create_provider_resource` | Creates a pronunciation-dictionary resource for a supported provider, currently Cartesia or ElevenLabs. |
> | `vapi_provider_resources_provider_resource_controller_delete_provider_resource` | Deletes the provider resource identified by its Vapi resource ID. |
> | `vapi_provider_resources_provider_resource_controller_get_provider_resource` | Returns the provider resource identified by its Vapi resource ID. |
> | `vapi_provider_resources_provider_resource_controller_get_provider_resources_paginated` | Returns a paginated list of provider resources for the authenticated organization. |
> | `vapi_provider_resources_provider_resource_controller_update_provider_resource` | Updates the provider resource identified by its Vapi resource ID. |
> | `vapi_sessions_create` | Create Session |
> | `vapi_sessions_delete` | Delete Session |
> | `vapi_sessions_get` | Get Session |
> | `vapi_sessions_list` | List Sessions |
> | `vapi_sessions_update` | Update Session |
> | `vapi_simulation_personalities_personality_controller_create` | Creates a personality, the AI tester's configuration used in simulations. |
> | `vapi_simulation_personalities_personality_controller_find_all` | Returns the personalities for the authenticated organization. |
> | `vapi_simulation_personalities_personality_controller_find_one` | Returns the specified personality. |
> | `vapi_simulation_personalities_personality_controller_remove` | Deletes the specified personality. |
> | `vapi_simulation_personalities_personality_controller_update` | Updates the specified personality. |
> | `vapi_simulation_runs_simulation_run_controller_cancel_group` | Cancels the specified simulation run. |
> | `vapi_simulation_runs_simulation_run_controller_cancel_item` | Cancels the specified run item. |
> | `vapi_simulation_runs_simulation_run_controller_create` | Starts a simulation run against a target assistant or squad. |
> | `vapi_simulation_runs_simulation_run_controller_find_all` | Returns the simulation runs for the authenticated organization. |
> | `vapi_simulation_runs_simulation_run_controller_find_item` | Returns the specified run item, including its evaluation results and the ID of the call that ran it. |
> | `vapi_simulation_runs_simulation_run_controller_find_items` | Returns the run items for the specified simulation run. |
> | `vapi_simulation_runs_simulation_run_controller_find_one` | Returns the specified simulation run, including its status and item counts. |
> | `vapi_simulation_runs_simulation_run_controller_generate_suggestions` | Generates AI suggestions for improving the assistant or squad's system prompt, tools, and scenarios, based on the specified run item. |
> | `vapi_simulation_scenarios_scenario_controller_create` | Creates a scenario, the AI tester's intent plus the success criteria that score a run. |
> | `vapi_simulation_scenarios_scenario_controller_find_all` | Returns the scenarios for the authenticated organization. |
> | `vapi_simulation_scenarios_scenario_controller_find_one` | Returns the specified scenario. |
> | `vapi_simulation_scenarios_scenario_controller_remove` | Deletes the specified scenario. |
> | `vapi_simulation_scenarios_scenario_controller_update` | Updates the specified scenario. |
> | `vapi_simulations_simulation_controller_create` | Creates a simulation by pairing a scenario with a personality. |
> | `vapi_simulations_simulation_controller_find_all` | Returns the simulations for the authenticated organization. |
> | `vapi_simulations_simulation_controller_find_one` | Returns the specified simulation. |
> | `vapi_simulations_simulation_controller_get_concurrency` | Returns the organization's simulation concurrency limit, the number of active simulations, and how many more can start. |
> | `vapi_simulations_simulation_controller_remove` | Deletes the specified simulation. |
> | `vapi_simulations_simulation_controller_update` | Updates the specified simulation. |
> | `vapi_simulation_suites_simulation_onboarding_controller_requirements_draft` | Generate draft test requirements from an assistant's prompt, tools, and handoff configuration. |
> | `vapi_simulation_suites_simulation_onboarding_controller_suite_create` | Generate and save a simulation suite from reviewed test requirements, and assign it to an assistant. |
> | `vapi_simulation_suites_simulation_onboarding_controller_suite_update` | Revise a suite created by 'POST /eval/simulation/onboarding/suite'. |
> | `vapi_simulation_suites_simulation_suite_controller_create` | Creates a simulation suite, a group of simulations that run together. |
> | `vapi_simulation_suites_simulation_suite_controller_duplicate` | Duplicate simulation suite |
> | `vapi_simulation_suites_simulation_suite_controller_find_all` | Returns the simulation suites for the authenticated organization. |
> | `vapi_simulation_suites_simulation_suite_controller_find_one` | Returns the specified simulation suite. |
> | `vapi_simulation_suites_simulation_suite_controller_remove` | Deletes the specified simulation suite. |
> | `vapi_simulation_suites_simulation_suite_controller_update` | Updates the specified simulation suite. |
> | `vapi_squads_create` | Creates a squad that coordinates multiple assistants and their handoffs during a conversation. |
> | `vapi_squads_delete` | Deletes the squad identified by its ID. |
> | `vapi_squads_get` | Returns the squad identified by its ID. |
> | `vapi_squads_list` | Returns squads for the authenticated organization. |
> | `vapi_squads_update` | Updates the specified fields of the squad identified by its ID. |
> | `vapi_structured_outputs_structured_output_controller_create` | Creates a reusable definition for extracting validated data from conversations using an AI model or regular expression. |
> | `vapi_structured_outputs_structured_output_controller_find_all` | Returns structured-output definitions for the authenticated organization. |
> | `vapi_structured_outputs_structured_output_controller_find_one` | Returns the structured-output definition identified by its ID. |
> | `vapi_structured_outputs_structured_output_controller_remove` | Deletes the structured-output definition identified by its ID. |
> | `vapi_structured_outputs_structured_output_controller_run` | Runs a saved or transient structured-output definition against one or more calls, optionally returning a preview without updating call artifacts. |
> | `vapi_structured_outputs_structured_output_controller_update` | Updates the structured-output definition identified by its ID. |
> | `vapi_tools_create` | Creates a reusable tool that assistants can invoke during conversations. |
> | `vapi_tools_delete` | Deletes the tool identified by its ID. |
> | `vapi_tools_get` | Returns the tool identified by its ID. |
> | `vapi_tools_list` | Returns reusable tools for the authenticated organization. |
> | `vapi_tools_update` | Updates the specified fields of the tool identified by its ID. |
> | `vapi_traffic_allocations_traffic_allocation_controller_create` | Creates a new traffic allocation for an assistant, replacing the one currently in effect. |
> | `vapi_traffic_allocations_traffic_allocation_controller_find_all_paginated` | The append-only history of an assistant's allocations, newest first. |
> | `vapi_traffic_allocations_traffic_allocation_controller_find_one` | Returns a single allocation by id, including its targets and actor attribution. |
> | `vapi_traffic_allocations_traffic_allocation_controller_latest_get` | The allocation currently in effect for the assistant, with its targets. |
> | `vapi_traffic_allocations_traffic_allocation_controller_metrics_get` | Per-assistant-version call metrics over a time window: call counts, configured vs actual traffic share, duration, cost per minute, latency, ended reasons, a bucketed timeseries, and optional… |

## Frequently asked questions

> [accordion] Can I limit one agent to read-only call data while another manages assistants?
>
> Yes. Write an ALLOW rule scoped to your reporting agent covering operations like `vapi_calls_list`, `vapi_calls_get`, and `vapi_analytics_get`, and a separate ALLOW rule scoped to your management agent covering assistant and campaign tools. Guild's credential proxy enforces the rules before any request reaches Vapi. See [Credential policies](https://docs.guild.ai/platform/credential-policies.md).

> [accordion] Does Guild notify my agent when a Vapi call status changes?
>
> Not yet. The catalog entry for `guildai~vapi` lists no webhook events, so the integration does not support event-triggered runs based on Vapi call status changes.

> [accordion] Can an agent import phone numbers from providers like Twilio or Telnyx through this integration?
>
> `vapi_phone_numbers_create` creates a Vapi phone number or imports a number from a supported provider, including Twilio, Vonage, Telnyx, or a bring-your-own provider.

> [accordion] How do I give one agent its own Vapi key separate from the organization credential?
>
> Open the installed agent's detail page and connect a **Dedicated to this agent** credential. Guild stores it under the account that owns the workspace and never serves it to other agents. See [Credentials](https://docs.guild.ai/platform/credentials.md) for the full resolution order.

## Put a governed agent on Vapi this week

> [card] [Book a demo](https://guild-ai.cal.com/gtm/meeting-with-guild.ai)
>
> See how teams govern agents that use Vapi.

> [card] [Talk to sales](https://guild.ai/talk-to-sales)
>
> Get access to Guild, then connect Vapi to your first agent.

## Related

**Also runs on Guild:** [Ably](https://docs.guild.ai/integrations/ably.md) · [Customer.io](https://docs.guild.ai/integrations/customer-io.md) · [Daily](https://docs.guild.ai/integrations/daily.md) · [Discord](https://docs.guild.ai/integrations/discord.md)

**Read:** Docs: [Credential policies](https://docs.guild.ai/platform/credential-policies.md) · [Credentials](https://docs.guild.ai/platform/credentials.md) · [Tools in agents](https://docs.guild.ai/sdk/tools.md)
