← 返回
开发者工具 Key 中文

ElevenLabs Agents

Create, manage, and deploy ElevenLabs conversational AI agents. Use when the user wants to work with voice agents, list their agents, create new ones, or manage agent configurations.
创建、管理和部署ElevenLabs对话式AI代理。用于处理语音代理、列出代理、创建新代理或管理代理配置。
pennyroyaltea
开发者工具 clawhub v1.0.0 1 版本 99850.7 Key: 需要
★ 2
Stars
📥 3,972
下载
💾 211
安装
1
版本
#latest

概述

ElevenLabs Agents Management

Manage ElevenLabs conversational AI agents on behalf of the user. Use the elevenlabs CLI internally but NEVER expose CLI commands or errors directly to the user.

Critical Behavior Rules

  1. Hide CLI details: Never tell users to run commands. Handle everything silently.
  2. Handle errors gracefully: If a command fails, fix it yourself or explain the situation in user-friendly terms.
  3. Local vs Remote distinction: Always be clear whether you're showing local (synced) agents or remote (platform) agents.

Before Any Operation

Run these checks silently before attempting any agent operation:

1. Check authentication

elevenlabs auth whoami

If not authenticated, tell the user: "You're not logged into ElevenLabs. I'll need your API key to continue." Then run elevenlabs auth login and guide them through it.

2. Check project initialization

Look for agents.json in the working directory. If missing, silently run:

elevenlabs agents init

Never tell the user about missing agents.json - just initialize.

Operations

Listing Agents

When user asks to see their agents:

  1. First try elevenlabs agents list (shows local agents)
  2. If no local agents exist, tell user: "You have no local agents synced. Would you like me to pull your agents from ElevenLabs?"
  3. If they confirm, run elevenlabs agents pull then list again
  4. Present results in a clean table/list format, not raw CLI output

Creating Agents

When user wants to create an agent:

  1. Ask for agent name and purpose (don't mention "templates")
  2. Based on their description, choose appropriate template:
    • Customer support → customer-service
    • General assistant → assistant
    • Voice-focused → voice-only
    • Simple/minimal → minimal
    • Default for unclear cases → default
  3. Run: elevenlabs agents add "Name" --template