跳至主要内容
小龙虾小龙虾AI
🤖

Vapi AI

Manage Vapi voice assistants, calls, phone numbers, tools, and webhooks via the Vapi REST API or CLI for voice agent operations and integrations.

下载875
星标0
版本0.1.0
AI 智能体
安全通过
🔗API

技能说明

Vapi (vapi.ai) — OpenClaw Skill

Use this skill when you need to manage Vapi voice agents (assistants), calls, phone numbers, tools, and webhooks from an OpenClaw agent.

This skill is API-first (Vapi REST) and optionally integrates with the Vapi CLI for MCP docs / local workflows.

What you can do

  • Create/update/list assistants
  • Start/inspect/end calls
  • Manage phone numbers
  • Create/manage tools (function calling)
  • Configure webhooks and inspect events

Required secrets

Set one of:

  • VAPI_API_KEY (recommended) — Vapi dashboard API key.

How to provide the key (recommended)

  • Store as a Gateway secret/env var (preferred), or
  • Export in your shell before running helper scripts.

Never paste the key into public logs.

Endpoints

Base URL:

  • https://api.vapi.ai

Auth:

  • Authorization: Bearer $VAPI_API_KEY

API reference:

Tooling options

This skill supports both approaches; you can decide later per deployment.

  • Set VAPI_MODE=api to prefer REST (default)
  • Set VAPI_MODE=cli to prefer the Vapi CLI (interactive)

Option A — REST via helper script (works everywhere)

This repo includes a tiny Node helper:

  • skills/vapi/bin/vapi-api.mjs

Examples:

# list assistants
VAPI_API_KEY=... node skills/vapi/bin/vapi-api.mjs assistants:list

# create assistant
VAPI_API_KEY=... node skills/vapi/bin/vapi-api.mjs assistants:create \
  --name "Claw Con Concierge" \
  --modelProvider openai --model gpt-4o-mini \
  --voiceProvider 11labs --voiceId rachel

# start an outbound call (example shape; see swagger for required fields)
VAPI_API_KEY=... node skills/vapi/bin/vapi-api.mjs calls:create \
  --assistantId asst_xxx \
  --to "+14155551234" \
  --from "+14155559876"

Option B — Vapi CLI (good for interactive ops)

If VAPI_MODE=cli, prefer using the CLI for management tasks and fall back to REST if the CLI isn’t installed.

Docs:

Install:

curl -sSL https://vapi.ai/install.sh | bash
vapi login

Option C — MCP docs server for your IDE

This improves IDE assistance (Cursor/Windsurf/VSCode):

vapi mcp setup

Agent usage guidance

When the user asks for Vapi changes:

  1. Clarify scope: assistants vs phone numbers vs webhooks vs tool calls.
  2. Prefer read-only queries first (list/get) before destructive changes.
  3. When creating an assistant, ask for:
    • assistant name
    • model provider/model
    • voice provider/voice id
    • tools/function calling needs
    • webhook URL (if using server events)
  4. When initiating calls, confirm:
    • to/from numbers
    • assistantId
    • compliance constraints (recording, consent)

Files in this skill

  • skills/vapi/SKILL.md — this file
  • skills/vapi/bin/vapi-api.mjs — minimal REST helper

Sources

如何使用「Vapi AI」?

  1. 打开小龙虾AI(Web 或 iOS App)
  2. 点击上方「立即使用」按钮,或在对话框中输入任务描述
  3. 小龙虾AI 会自动匹配并调用「Vapi AI技能完成任务
  4. 结果即时呈现,支持继续对话优化

相关技能