← 返回
开发者工具 Key

Voice.Ai Voice Agents

Create, manage, and deploy Voice.ai conversational AI agents. Use when the user wants to work with voice agents, list their agents, create new ones, or manage agent configurations.
创建、管理和部署 Voice.ai 对话式 AI 智能体。适用于用户操作语音智能体、列出、创建新智能体或管理配置的场景。
gizmogremlin
开发者工具 clawhub v0.1.4 1 版本 99829.1 Key: 需要
★ 3
Stars
📥 2,860
下载
💾 120
安装
1
版本
#latest

概述

Voice.ai Agents

Build the best conversational AI voice agents with Voice.ai's Agent API.

✨ Features

  • Agent Management - Create, update, and delete voice agents
  • One-Click Deploy - Deploy agents for phone calls instantly
  • Knowledge Base - RAG-powered agents with custom knowledge
  • MCP Integration - Connect agents to external tools via MCP
  • Phone Numbers - Manage inbound/outbound phone numbers
  • Analytics - Track call history and agent performance

⚙️ Configuration

Get Your API Key

  1. Go to Voice.ai Developer Dashboard
  2. Sign in or create an account
  3. Generate a new API key
  4. Copy and save it securely

Set Up Authentication (3 Methods)

Method 1: Environment Variable (Recommended)

export VOICE_AI_API_KEY="your-api-key-here"

Method 2: .env File

# Create .env file in project root
echo 'VOICE_AI_API_KEY=your-api-key-here' >> .env

Method 3: OpenClaw Config

{
  "skills": {
    "voice.ai-voice-agents": {
      "api_key": "your-api-key-here"
    }
  }
}

🔐 Before Any Operation

> Important: Always verify authentication before running any commands.

# 1. Check if API key is set
echo $VOICE_AI_API_KEY

# 2. Test connection (list agents)
node scripts/agent.js list

# 3. If errors, re-export your key
export VOICE_AI_API_KEY="your-api-key-here"

Silent Initialization

The SDK automatically initializes when you run any command. No manual setup required after setting the API key.

🚀 Quick Start

export VOICE_AI_API_KEY="your-api-key"

# Create an agent
node scripts/agent.js create --name "Support Bot" --prompt "You are a helpful assistant"

# List all agents
node scripts/agent.js list

# Deploy an agent
node scripts/agent.js deploy --id <agent_id>

🤖 Agent Configuration

ParameterDefaultDescription
-----------------------------------------------------------------------
llm_modelgemini-2.5-flash-liteLLM model for responses
llm_temperature0.7Response creativity (0-2)
max_call_duration900Max call length in seconds
allow_interruptionstrueLet users interrupt agent
auto_noise_reductiontrueFilter background noise

🎙️ TTS Voice Settings

ParameterDefaultDescription
------------------------------------------------------
voice_id-Voice ID for agent speech
modelautoTTS model (auto-selected)
languageenLanguage code
temperature1.0Voice expressiveness (0-2)
top_p0.8Sampling parameter (0-1)

🌍 Supported Languages

auto, en, ca, sv, es, fr, de, it, pt, pl, ru, nl

💻 CLI Usage

# Create a new agent
node scripts/agent.js create --name "My Agent" --prompt "System prompt here" --greeting "Hello!"

# List all agents
node scripts/agent.js list

# Get agent details
node scripts/agent.js get --id <agent_id>

# Update an agent
node scripts/agent.js update --id <agent_id> --prompt "New prompt"

# Deploy an agent
node scripts/agent.js deploy --id <agent_id>

# Pause an agent
node scripts/agent.js pause --id <agent_id>

# Delete an agent
node scripts/agent.js delete --id <agent_id>

🤖 OpenClaw Integration

JSON Configuration

{
  "name": "voice.ai-voice-agents",
  "enabled": true,
  "config": {
    "api_key": "${VOICE_AI_API_KEY}",
    "default_model": "gemini-2.5-flash-lite",
    "auto_deploy": false
  }
}

Chat Triggers

OpenClaw automatically activates this skill when you mention:

  • "voice agent", "voice bot", "phone agent"
  • "create agent", "deploy agent", "list agents"
  • "Voice.ai", "voice ai"

🗣️ User-Friendly Language

When User Says...Skill Does...
----------------------------------
"Create a support agent"Creates agent with support-focused prompt
"Show my agents"Lists all agents with status
"Deploy the agent"Deploys agent for phone calls
"Update the greeting"Updates agent greeting message
"Delete the test agent"Deletes specified agent
"What agents do I have?"Lists agents in friendly format
"Make an FAQ bot"Creates agent with FAQ template
"Connect to my MCP server"Configures MCP integration

📁 Project Files

voice-ai-agents/
├── SKILL.md                    # This documentation
├── voice-ai-agents.yaml        # Skill configuration
├── voice-ai-agents-sdk.js      # JavaScript SDK
└── scripts/
    └── agent.js                # CLI tool
FilePurpose
---------------
SKILL.mdDocumentation and OpenClaw skill definition
voice-ai-agents.yamlAPI config, models, defaults
voice-ai-agents-sdk.jsFull SDK with all API methods
scripts/agent.jsCommand-line interface

❌ Error Handling

ErrorCauseSolution
------------------------
401 UnauthorizedInvalid or missing API keyCheck VOICE_AI_API_KEY is set correctly
403 ForbiddenAPI key lacks permissionsGenerate new key with proper scopes
404 Not FoundAgent ID doesn't existRun list to get valid agent IDs
429 Too Many RequestsRate limit exceededWait 60 seconds and retry
500 Server ErrorVoice.ai API issueCheck status page
ENOTFOUNDNetwork errorCheck internet connection
Agent not deployedAgent exists but not activeRun deploy --id

Graceful Error Messages

The SDK provides user-friendly error messages:

❌ Authentication failed. Please check your API key.
   Get one at: https://voice.ai/app/dashboard/developers

❌ Agent "support-bot" not found. 
   Run 'node scripts/agent.js list' to see available agents.

❌ Rate limit reached. Please wait 60 seconds before retrying.

📝 Triggers

These phrases activate the Voice.ai Agents skill in OpenClaw:

CategoryTrigger Phrases
---------------------------
Create"create voice agent", "make a phone bot", "new agent"
List"show agents", "list my agents", "what agents exist"
Deploy"deploy agent", "activate agent", "start the bot"
Update"update agent", "change prompt", "edit greeting"
Delete"delete agent", "remove bot", "destroy agent"
Info"agent details", "show agent", "get agent info"

🔗 MCP Server Integration

Connect your agent to external tools:

const agent = await client.createAgent({
  name: "MCP Agent",
  config: {
    prompt: "You can use tools to help users",
    mcp_servers: [{
      name: "my-tools",
      url: "https://my-server.com/mcp",
      auth_type: "bearer_token",
      auth_token: "secret"
    }]
  }
});

📚 Knowledge Base (RAG)

Add custom knowledge to your agent:

# Create agent with knowledge base
node scripts/agent.js create --name "FAQ Bot" --kb-id 123

🔗 Links

📋 Changelog

VersionDateChanges
------------------------
1.0.02026-01-31Initial release with full agent management

Made with ❤️ by Nick Gill

版本历史

共 1 个版本

  • v0.1.4 当前
    2026-03-28 12:35 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,834
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 672 📥 324,406
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 68 📥 180,374