Package 

Class ConversationConfig


  • 
    public final class ConversationConfig
    
                        

    Configuration class for conversation sessions

    This class defines the parameters needed to start a conversation with an ElevenLabs agent. Exactly one of agentId, conversationToken, or signedUrl must be provided.

    Public Agents (no authentication required):

    • Use agentId only — works in both voice and text-only mode.

    • SDK fetches the per-session token from the public endpoint.

    Private Agents — voice (LiveKit/WebRTC):

    • Use conversationToken, generated on your backend with your API key.

    Private Agents — text-only (raw WebSocket):

    • Use signedUrl, returned by your backend's call to /v1/convai/conversation/get-signed-url. The SDK opens it verbatim.