Skip to content

artubss/SKILLS-CLAUDE-CODE / claude-skills-main/claude-skills-main/plugins/integrations/skills/elevenlabs-agents

elevenlabs-agents

Verified

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.

assets/swift-sdk-boilerplate.swift

View on GitHub
import SwiftUI
import ElevenLabs

struct VoiceAgentView: View {
    @State private var isConnected = false
    @State private var transcript: [(role: String, text: String)] = []
    
    private let agentID = "your-agent-id"
    private let apiKey = "your-api-key" // Use environment variable in production
    
    var body: some View {
        VStack {
            Text("Voice Agent")
                .font(.largeTitle)
                .padding()
            
            HStack {
                Button("Start Conversation") {
                    startConversation()
                }
                .disabled(isConnected)
                
                Button("Stop") {
                    stopConversation()
                }
                .disabled(!isConnected)
            }
            .padding()
            
            Text("Status: \(isConnected ? "Connected" : "Disconnected")")
                .padding()
            
            ScrollView {
                ForEach(transcript.indices, id: \.self) { index in
                    let message = transcript[index]
                    HStack {
                        VStack(alignment: .leading) {
                            Text(message.role == "user" ? "You" : "Agent")
                                .font(.caption)
                                .fontWeight(.bold)
                            Text(message.text)
                        }
                        .padding()
                        .background(message.role == "user" ? Color.blue.opacity(0.1) : Color.gray.opacity(0.1))
                        .cornerRadius(8)
                        Spacer()
                    }
                    .padding(.horizontal)
                }
            }
        }
    }
    
    private func startConversation() {
        // Initialize ElevenLabs conversation
        // Implementation would use the ElevenLabs Swift SDK
        isConnected = true
    }
    
    private func stopConversation() {
        isConnected = false
    }
}

#Preview {
    VoiceAgentView()
}

// Note: This is a placeholder. Full Swift SDK documentation available at:
// https://github.com/elevenlabs/elevenlabs-swift-sdk
finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the workStars: 322kUpdated Claude CodeCodexVerifiedInstall
systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixesStars: 322kUpdated Claude CodeCodexVerifiedInstall
test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation codeStars: 322kUpdated Claude CodeCodexVerifiedInstall
skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.Stars: 198kUpdated Claude CodeCodexVerifiedInstall