npx skills add https://github.com/vapiai/skills --skill create-workflow通过可视化基于节点的流程构建结构化对话工作流。工作流提供对对话步骤、分支逻辑和工具执行的确定性控制。
设置: 确保已设置
VAPI_API_KEY。如有需要,请参阅setup-api-key技能。
| 功能 | 助手 | 工作流 |
|---|---|---|
| 简单对话 | 最佳选择 | 过度设计 |
| 多步骤流程 | 通过良好提示可以工作 | 最佳选择 |
| 确定性流程 | 难以保证 | 内置 |
| 条件分支 | 依赖提示 | 可视化节点 |
| 复杂状态管理 | 困难 | 原生支持 |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
工作流最好在 Vapi 仪表板 的可视化编辑器中构建,地址为 https://dashboard.vapi.ai —— 但也可以通过 API 进行配置。
curl -X POST https://api.vapi.ai/call \
-H "Authorization: Bearer $VAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"workflowId": "your-workflow-id",
"phoneNumberId": "your-phone-number-id",
"customer": {
"number": "+11234567890"
}
}'
核心构建块 —— 助手在定义的边界内进行对话:
执行一个工具(API 调用、函数)并在后续节点中使用结果。
基于变量或对话状态对流程进行分支。
转移到另一个工作流、助手或电话号码。
[问候] → [收集日期] → [检查可用性(工具)] → [确认预订] → [道别]
↓ (不可用)
[建议替代方案] → [确认预订]
[介绍] → [询问预算] → [询问时间线] → [筛选(条件)]
↓ (合格)
[安排演示]
↓ (不合格)
[发送资源]
[问候] → [识别问题(条件)]
↓ (账单) ↓ (技术) ↓ (其他)
[账单流程] [技术支持流程] [一般帮助]
curl -X PATCH https://api.vapi.ai/phone-number/{id} \
-H "Authorization: Bearer $VAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"workflowId": "your-workflow-id"
}'
curl -X POST https://api.vapi.ai/call \
-H "Authorization: Bearer $VAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"workflowId": "your-workflow-id",
"phoneNumberId": "your-phone-number-id",
"customer": { "number": "+11234567890" }
}'
此技能仓库包含一个 Vapi 文档 MCP 服务器 (vapi-docs),它使您的 AI 代理能够访问完整的 Vapi 知识库。使用 searchDocs 工具来查找此技能未涵盖的任何内容 —— 高级配置、故障排除、SDK 详细信息等。
自动配置: 如果您克隆或安装了这些技能,MCP 服务器已通过 .mcp.json (Claude Code)、.cursor/mcp.json (Cursor) 或 .vscode/mcp.json (VS Code Copilot) 配置好。
手动设置: 如果您的代理没有自动检测到配置,请运行:
claude mcp add vapi-docs -- npx -y mcp-remote https://docs.vapi.ai/_mcp/server
有关所有支持的代理的完整设置说明,请参阅 README。
每周安装数
278
仓库
GitHub 星标数
22
首次出现
2026年2月23日
安全审计
安装于
cursor249
kimi-cli244
gemini-cli244
github-copilot244
amp244
codex244
Build structured conversation workflows with visual node-based flows. Workflows provide deterministic control over conversation steps, branching logic, and tool execution.
Setup: Ensure
VAPI_API_KEYis set. See thesetup-api-keyskill if needed.
| Feature | Assistant | Workflow |
|---|---|---|
| Simple conversations | Best choice | Over-engineered |
| Multi-step processes | Can work with good prompting | Best choice |
| Deterministic flow | Hard to guarantee | Built-in |
| Conditional branching | Prompt-dependent | Visual nodes |
| Complex state management | Difficult | Native support |
Workflows are best built in the Vapi Dashboard visual editor at https://dashboard.vapi.ai — but they can also be configured via API.
curl -X POST https://api.vapi.ai/call \
-H "Authorization: Bearer $VAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"workflowId": "your-workflow-id",
"phoneNumberId": "your-phone-number-id",
"customer": {
"number": "+11234567890"
}
}'
The core building block — the assistant has a conversation within defined boundaries:
Execute a tool (API call, function) and use the result in subsequent nodes.
Branch the flow based on variables or conversation state.
Transfer to another workflow, assistant, or phone number.
[Greeting] → [Collect Date] → [Check Availability (Tool)] → [Confirm Booking] → [Goodbye]
↓ (unavailable)
[Suggest Alternatives] → [Confirm Booking]
[Introduction] → [Ask Budget] → [Ask Timeline] → [Qualify (Condition)]
↓ (qualified)
[Schedule Demo]
↓ (not qualified)
[Send Resources]
[Greeting] → [Identify Issue (Condition)]
↓ (billing) ↓ (technical) ↓ (other)
[Billing Flow] [Tech Support Flow] [General Help]
curl -X PATCH https://api.vapi.ai/phone-number/{id} \
-H "Authorization: Bearer $VAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"workflowId": "your-workflow-id"
}'
curl -X POST https://api.vapi.ai/call \
-H "Authorization: Bearer $VAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"workflowId": "your-workflow-id",
"phoneNumberId": "your-phone-number-id",
"customer": { "number": "+11234567890" }
}'
This skills repository includes a Vapi documentation MCP server (vapi-docs) that gives your AI agent access to the full Vapi knowledge base. Use the searchDocs tool to look up anything beyond what this skill covers — advanced configuration, troubleshooting, SDK details, and more.
Auto-configured: If you cloned or installed these skills, the MCP server is already configured via .mcp.json (Claude Code), .cursor/mcp.json (Cursor), or .vscode/mcp.json (VS Code Copilot).
Manual setup: If your agent doesn't auto-detect the config, run:
claude mcp add vapi-docs -- npx -y mcp-remote https://docs.vapi.ai/_mcp/server
See the README for full setup instructions across all supported agents.
Weekly Installs
278
Repository
GitHub Stars
22
First Seen
Feb 23, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
cursor249
kimi-cli244
gemini-cli244
github-copilot244
amp244
codex244
AI Elements:基于shadcn/ui的AI原生应用组件库,快速构建对话界面
56,200 周安装