Vapi connector

Manage Vapi voice assistants and function-calling tools, and read call history, from AgentRuntime workflows.

On this page

Vapi is a platform for building voice AI assistants that talk on the phone. The vapi connector lets a workflow list, read, create, update, and delete your Vapi assistants and function-calling tools, and read your call history and phone numbers. Use it to keep assistant prompts under version control, audit what is live, and report on calls.

Prerequisites

  • A Vapi account.
  • A Vapi private API key. The connector sends it as a Bearer token.
  • The project_contributor role or higher in your project.

Get your Vapi API key

  1. Sign in to the Vapi dashboard.
  2. Open the section where Vapi lists your API keys.
  3. Copy your private key. Do not use a public key.

Vapi's own documentation describes where API keys live in the dashboard and how to create new ones.

Connect in AgentRuntime

  1. Add the connector

    Click MCP in the sidebar, click Add connectors, find vapi, select it, and click Add to workspace.

  2. Open Instance config

    Open the new instance. On Instance config, under Profiles for this connector, click New profile and enter a Display name.

  3. Enter the API key

    In the credentials section, choose Type secrets on this screen and paste your key into api_key. Leave api_base empty to use https://api.vapi.ai.

  4. Make the profile active

    Set Status to Active — can be used in workflows, click Save, then click Use this profile for workflows.

  5. Test it in a workflow

    In Workflow Studio, add a connector tool step for this instance and choose vapi_list_assistants. Run it. The result lists your assistants with their id and name.

To reuse the same key on several instances, create a connection first: on Connections, click New custom connection, give it a Display name, click Add field, and enter api_key as the Key and your private key as the Value. Then on Instance config choose Use a saved connection. The connection's key names must match the keys in Configuration.

See Connections and MCP instances for more.

Note

This connector does not start outbound calls or manage phone numbers. Do those in Vapi. The tools below cover assistants, function-calling tools, call history, and listing phone numbers.

What you can build

  • Assistant inventory. Run vapi_list_assistants on a schedule, compare it with the list you expect, and alert on any difference.
  • Prompt backup. Fetch each assistant with vapi_get_assistant, store raw_json in your own system, and keep a history of changes.
  • Prompt rollout. After a release is approved, apply the new wording with vapi_update_assistant.
  • Call reporting. Run vapi_list_calls, then use an LLM step to summarize recent activity for your team.

Tools

Assistants

ToolWhat it does
vapi_list_assistantsLists assistants (limit, default 50, up to 100). Returns count and items with id and name
vapi_get_assistantReturns one assistant by assistant_id, with id, name, and the full configuration in raw_json
vapi_create_assistantCreates an assistant (name required; optional instructions, first_message, extra_json). Writes data
vapi_update_assistantUpdates an assistant (assistant_id required, plus at least one field to change). Writes data
vapi_delete_assistantDeletes an assistant by assistant_id. Permanent

Function-calling tools

ToolWhat it does
vapi_list_toolsLists your Vapi function-calling tool definitions
vapi_get_toolReturns one tool by tool_id
vapi_create_toolCreates a tool from a JSON object in body_json. Writes data
vapi_update_toolUpdates a tool (tool_id and a JSON object of fields in body_json). Writes data
vapi_delete_toolDeletes a tool by tool_id. Permanent

Calls and phone numbers

ToolWhat it does
vapi_list_callsLists recent calls (limit, default 10, up to 100). Returns count and raw_json
vapi_list_phone_numbersLists the phone numbers in your Vapi account

extra_json and body_json take a JSON object as text. For vapi_create_assistant and vapi_update_assistant, extra_json is merged into the request, so you can set fields such as the voice or toolIds. When you pass instructions, the assistant's model is set to OpenAI gpt-4o. To use a different model, put a model object in extra_json.

Example

Fetch an assistant's configuration for an audit trail:

{
  "id": "vapi_audit",
  "type": "mcp",
  "name": "Get Vapi assistant config",
  "tool_name": "vapi_get_assistant",
  "tool_args": {
    "assistant_id": "{{input.assistant_id}}"
  },
  "timeout_s": 30
}

Studio fills in instance_id when you pick the instance. Later steps read {{steps.vapi_audit.result.raw_json}}.

Configuration

KeyRequiredDefaultDescription
api_keyYesnoneYour Vapi private API key
api_baseNohttps://api.vapi.aiThe Vapi API address

Troubleshooting

IssueFix
resolved config is missing api_keyThe active profile has no key. Add api_key, save, and click Use this profile for workflows
Vapi API error 401Vapi rejected the key. Copy your private key again and check it belongs to the right Vapi account
Vapi API error 404 on a get, update, or deleteThe ID does not exist in this Vapi account. Run vapi_list_assistants or vapi_list_tools to find the right one
provide at least one field to updatevapi_update_assistant needs name, instructions, first_message, or extra_json besides the ID
extra_json must be valid JSONSend a JSON object, for example {"voice": {...}}, as a string
Slow runs or rate-limit errorsThe connector retries a few times when Vapi asks it to slow down. Space out scheduled runs
Edit this pageagentruntime-io/agentruntime-docs