npx skills add ...
npx skills add jezweb/claude-skills --skill elevenlabs-agents
Build conversational AI voice agents on the ElevenLabs platform. Configure agent + tools + knowledge base, integrate SDK (React / React Native / Swift / JS / server-side), test, deploy. Use whenever the user mentions ElevenLabs, building a voice agent, an AI phone system, an AI receptionist, conversational AI, or troubleshooting deprecated @11labs packages, webhook errors, CSP violations, localhost allowlist, or tool parsing errors.
npx skills add jezweb/claude-skills --skill elevenlabs-agents
Build a production-ready conversational AI voice agent. Produces a configured agent with tools, knowledge base, and SDK integration.
DEPRECATED: @11labs/react, @11labs/client -- uninstall if present.
Server-only warning: @elevenlabs/elevenlabs-js uses Node.js child_process and won't work in browsers. Use @elevenlabs/client for browser environments, or create a proxy server.
Dashboard: https://elevenlabs.io/app/conversational-ai -> Create Agent
CLI (Agents as Code):
Templates: default, minimal, voice-only, text-only, customer-service, assistant.
Configure:
Use the 6-component framework for effective agent prompts:
1. Personality -- who the agent is:
2. Environment -- communication context:
3. Tone -- speech patterns and formality:
4. Goal -- objectives and success criteria:
5. Guardrails -- boundaries and ethics:
6. Tools -- available functions and when to use them:
Client-side tools (run in browser):
Server-side tools (webhooks):
Use {{secret__key_name}} for API keys in webhook headers -- never hardcode.
MCP Tools -- CRITICAL COMPATIBILITY NOTE:
ElevenLabs labels their MCP integration as "Streamable HTTP" but does NOT support the actual MCP 2025-03-26 Streamable HTTP spec (SSE responses). ElevenLabs expects:
application/json), NOT SSE (text/event-stream)2024-11-05, NOT 2025-03-26What does NOT work:
createMcpHandler (returns SSE)McpServer.serve() (returns SSE)Content-Type: text/event-streamWorking MCP server pattern for ElevenLabs:
Upload documents for the agent to reference:
POST /v1/convai/knowledge-base/upload (multipart/form-data)React -- copy and customise assets/react-sdk-boilerplate.tsx:
System prompt references dynamic variables as {{user_name}}.
React Native -- see assets/react-native-boilerplate.tsx
Widget embed -- see assets/widget-embed-template.html
Swift -- see assets/swift-sdk-boilerplate.swift
CLI testing:
Test configuration:
Tool call testing:
API simulation:
CI/CD integration:
Multi-environment workflow:
Never expose API keys in client code. Use a server endpoint:
Dashboard: Agent -> Versions -> Create Branch. Compare metrics, promote winner.
Verify with HMAC SHA-256:
Model lineups and pricing rot fast — check the live list in the ElevenLabs dashboard (Agent → LLM dropdown) or docs before picking, and don't hardcode a model id you haven't verified this session. The durable picks: a current cheap-fast model for most agents (upgrade only where quality demands it), a long-context model when the knowledge base is large.
Key savings:
max_duration_seconds to prevent runaway conversationsEnvironment: ELEVENLABS_API_KEY for CI/CD.
For specialised use cases, see:
references/api-reference.md -- full REST API for programmatic agent managementreferences/compliance-guide.md -- GDPR, HIPAA, PCI DSS, data residencyreferences/workflow-examples.md -- multi-agent routing, escalation, multi-languageassets/react-sdk-boilerplate.tsx -- React integration templateassets/react-native-boilerplate.tsx -- React Native templateassets/swift-sdk-boilerplate.swift -- Swift/iOS templateassets/javascript-sdk-boilerplate.js -- Vanilla JS templateassets/widget-embed-template.html -- Embeddable widgetassets/system-prompt-template.md -- System prompt guideassets/agent-config-schema.json -- Config schema referenceassets/ci-cd-example.yml -- CI/CD pipeline template